Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

User denied the request for Geolocation

WCMp Advanced Frontend Manager

Resolved
Viewing 17 reply threads
  • Author
    Posts
    • #112924
      verde
      Participant

      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

    • #112991

      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.

      >> https://multivendorx.com/support-forum/topic/map-default-spot-map-when-no-geolocation-allowed-or-found/

      — 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,

    • #113016
      verde
      Participant

      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

    • #113104

      Hi,
      You have to change the latitude and longitude

      center: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,

    • #113127
      verde
      Participant

      could you be more specific pls? where am I expected to change latitude and longitude? is there any guidelines to set geolocation?
      thanks

    • #113174

      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 longitude

      center:new google.maps.LatLng( 22.5726,88.3639 ),
      Copy

      here.

      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,

    • #113348
      verde
      Participant

      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

    • #113398
      tomhunter197023
      Participant

      Thank you sharing the valuable information with us.
      Please keep us posted for more updates regarding to this topic.

      Upsers

    • #113429

      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-92768

      Regards,

    • #113680
      verde
      Participant

      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

    • #113717

      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/
      Copy

      Regards,

    • #113760
      verde
      Participant

      when I try to minimize I’m returned with:
      // Error : Unexpected token keyword «function», expected punc «,»
      // Line : 93
      // Col : 8

      error seems to be on: function handleLocationError(browserHasGeolocation, infoWindow, pos, error) {

    • #113936

      Hi,
      Seems like some Syntax Errors.
      Kindly checkout the code you added,

    • #114274
      verde
      Participant

      17 days and the problem is still there. is there any other path to solve the problems? thanks

    • #114335

      @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.

    • #114521
      verde
      Participant

      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/product

      regards

    • #114641

      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?

    • #118734

      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.

Viewing 17 reply threads

The topic ‘User denied the request for Geolocation’ is closed to new replies.