WCMp Advanced Frontend Manager
Tagged: geolocation vendorslist
-
AuthorPosts
-
-
January 4, 2021 at 3:20 PM #112924verdeParticipant
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.
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 #112991MVX Support NinjaKeymaster
Hi,
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 #113016verdeParticipant
the 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 #113104MVX Support NinjaKeymaster
Hi,
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 #113127verdeParticipant
could 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 #113174MVX Support NinjaKeymaster
Hi,
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://multivendorx.com/support-forum/topic/map-default-spot-map-when-no-geolocation-allowed-or-found/#post-92768
Regards,
-
January 9, 2021 at 9:08 PM #113348verdeParticipant
better 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 #113398tomhunter197023Participant
Thank 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 #113429MVX Support NinjaKeymaster
Hi,
kindly follow the below thread where you can find where to add the code. Please read the thread carefully.
https://multivendorx.com/support-forum/topic/map-default-spot-map-when-no-geolocation-allowed-or-found/#post-92768Regards,
-
January 14, 2021 at 2:19 PM #113680verdeParticipant
good 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 #113717MVX Support NinjaKeymaster
Hi,
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 #113760verdeParticipant
when 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 #113936MVX Support NinjaKeymaster
Hi,
Seems like some Syntax Errors.
Kindly checkout the code you added, -
January 22, 2021 at 8:24 PM #114274verdeParticipant
17 days and the problem is still there. is there any other path to solve the problems? thanks
-
January 23, 2021 at 9:04 PM #114335NerdySupportExpert MoumitaKeymaster
@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 #114521verdeParticipant
good 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 #114641NerdySupportExpert MoumitaKeymaster
Hi 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?
-
April 2, 2021 at 2:45 PM #118734MVX Support NinjaKeymaster
We have not received any update from you for a long. Hope this ticket is already been resolved.
We are now closing this ticket. Kindly create a new one if you need any further help.
-
-
AuthorPosts
The topic ‘User denied the request for Geolocation’ is closed to new replies.