User denied the request for Geolocation
Home / Topic / WCMp Advanced Frontend Manager / User denied the request for Geolocation
WCMp Advanced Frontend Manager
User denied the request for Geolocation Open
Tagged: geolocation vendorslist
- This topic has 16 replies, 4 voices, and was last updated 1 month ago by
NerdySupportExpert Moumita.
-
AuthorPosts
-
-
January 4, 2021 at 3:20 PM #112924
verde
Participantas [wcmp_vendorslist] is called up then an error is often answered: User denied the request for Geolocation.
is there a way to set a pre-defined geographic area if the error comes up. let’s say: if user denied geolocation then the adress is set to Italy.
besides, there is a way to condition the shortcode [wcmp_vendorslist] to some parameteres: categories or products?
thanks -
January 5, 2021 at 5:34 PM #112991
abhirup
ModeratorHi,
our replies are inline:-
— as [wcmp_vendorslist] is called up then an error is often answered: User denied the request for Geolocation.
is there a way to set a pre-defined geographic area if the error comes up. let’s say: if user denied geolocation then the adress is set to Italy.— there is a way to condition the shortcode [wcmp_vendorslist] to some parameteres: categories or products?
>> By default WCMp vendor list shortcode orderby parameter are three types registered, category , name.
If you want to change the flow then you have add custom code on your end.Regards,
-
January 5, 2021 at 7:03 PM #113016
verde
Participantthe reminder link should be ok. can you give me some hints on where to make these changes? is there another link on how to fix codes? thanks
-
January 6, 2021 at 7:38 PM #113104
abhirup
ModeratorHi,
You have to change the latitude and longitudecenter:new google.maps.LatLng( 22.5726,88.3639 ),
Copy>>is there another link on how to fix codes?
— Can you please tell me which code do you want to fix.Regards,
-
January 6, 2021 at 11:12 PM #113127
verde
Participantcould you be more specific pls? where am I expected to change latitude and longitude? is there any guidelines to set geolocation?
thanks -
January 7, 2021 at 7:00 PM #113174
abhirup
ModeratorHi,
I have share the link where you can get the code for default position if user will denied the request for geolocation. So you have to follow the procedure and where to add the code. then you have to add your default location latitude and longitudecenter:new google.maps.LatLng( 22.5726,88.3639 ),
Copyhere.
Kindly follow this thread using this link – https://wc-marketplace.com/support-forum/topic/map-default-spot-map-when-no-geolocation-allowed-or-found/#post-92768
Regards,
-
January 9, 2021 at 9:08 PM #113348
verde
Participantbetter safe than sorry: I have to eliminate these rows:
handleLocationError(true, infoWindow, map.getCenter(), error);
});
} else {
// Browser doesnt support Geolocation
handleLocationError(false, infoWindow, map.getCenter(), -1);and put the code in the link.
correct?
thanks -
January 11, 2021 at 11:02 AM #113398
tomhunter197023
ParticipantThank you sharing the valuable information with us.
Please keep us posted for more updates regarding to this topic. -
January 11, 2021 at 7:11 PM #113429
abhirup
ModeratorHi,
kindly follow the below thread where you can find where to add the code. Please read the thread carefully.
https://wc-marketplace.com/support-forum/topic/map-default-spot-map-when-no-geolocation-allowed-or-found/#post-92768Regards,
-
January 14, 2021 at 2:19 PM #113680
verde
Participantgood morning, I changed the code but it doesn’t fix. error showing yet: “user denied the request for geolocation”.
to be clear: I changed the following path (in the rows 47-51) : wcmarketplace/dc-woocommerce-multi-vendor/assets/frontend/js/vendor-list.js -
January 14, 2021 at 7:12 PM #113717
abhirup
ModeratorHi,
By default WCMp use the vendor-list.min.js for reduce loading time. You can check this file on the same location. So you need to copy the entire code form the vendor-list.js file and minify the js using below website then copy the minified output code and paste it in the vendor-list.min.js file. Remove the browser cache and check.https://javascript-minifier.com/
CopyRegards,
-
January 15, 2021 at 1:54 PM #113760
verde
Participantwhen I try to minimize I’m returned with:
// Error : Unexpected token keyword «function», expected punc «,»
// Line : 93
// Col : 8error seems to be on: function handleLocationError(browserHasGeolocation, infoWindow, pos, error) {
-
January 18, 2021 at 5:49 PM #113936
abhirup
ModeratorHi,
Seems like some Syntax Errors.
Kindly checkout the code you added, -
January 22, 2021 at 8:24 PM #114274
verde
Participant17 days and the problem is still there. is there any other path to solve the problems? thanks
-
January 23, 2021 at 9:04 PM #114335
NerdySupportExpert Moumita
Keymaster@verde, can you please share a temporary admin and ftp access of your staging site, so we can check.
While sharing the access don’t forget to mark the response as private.
-
January 27, 2021 at 4:46 PM #114521
verde
Participantgood morning, I was setting some ssl issues and it looks that part of denial request was linked to ssl issues. now it’s gonna work properly.
however, I wonder if you got some plan to fix the code you mentioned in some of your future reviews.
beside, is there any way to filter by category/product? I mean if it is possible to have a dropdown on category/productregards
-
January 28, 2021 at 11:22 PM #114641
NerdySupportExpert Moumita
KeymasterHi our replies are inline:
1. I wonder if you got some plan to fix the code you mentioned in some of your future reviews.
>> are you referring to the syntax code, in that case please share the access as requested earlier.
– beside, is there any way to filter by category/product? I mean if it is possible to have a dropdown on category/product
>> may I know which page are you referring here and who will filter the product?
-
-
AuthorPosts
Please LOGIN to reply to this topic