• Hello,

    there are 101 lcations on a customer website. The store locator map show on the first load way more locations in the cluster markers. After any zoom the numbers seem to get correct.

    Borlbas Cookie is blocking the content until the user allows the plugin the run. This might be the problem. Is there any function similar to the one from the settings page “Load locations on page load” that I could manualy trigger with the borlabs consent?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi there, thanks for reaching out.

    I am sorry but I cannot find the store locator in the mentioned address (https://www.bag-taeterarbeit.de/beratungsstellen/). Can you please lead me to the URL where the actual store locator has been published so I can take a look? Many thanks!

    Thread Starter cschintlholzer

    (@cschintlholzer)

    Hello,

    The url ist correct: https://www.bag-taeterarbeit.de/beratungsstellen/

    The Store locator is blocked by Borlabs cookies and is only visible after you acceptet the borlabs message regarding google maps. It is the button after “Beratungsstellensuche”.

    Thanks for the help!

    Oh, ok, I see, sorry about that, I don’t speak a word of German and I was confused.

    I could see what you mention about the numbers in the clusters, it is weird…

    What happens if you disable clustering for a moment? Do the markers in the map, in the initial map load, correspond to your settings then?

    By the way, what are your settings for the “Number of locations to show” in the Wp Store Locator settings page?

    Thread Starter cschintlholzer

    (@cschintlholzer)

    Hello,

    when clusters is disabled the markers seem to be correct and the are no duplications in the html code.

    The Number of locations to show is set to 200. If I reduce it to a lower number (like 10) the map zooms in to the start loaction and creates cluster around the start location, but the numbers are wrong aswell. (It seems to show 3 times the original amount of locations.) With the clusters disabled the markers are shown correctly.

    And, just to confirm this is an issue related to the Borlabs plugin… what happens if you disable momentarily the Borlabs plugin? Does the same thing occur with the numbers in the clusters? Many thanks!

    Thread Starter cschintlholzer

    (@cschintlholzer)

    Hello,

    yes.. When the WPSL shotrcode is not blocked by Borlabs it is working.

    The page is build with Elementor. And the shortcode is [borlabs_cookie_blocked_content type=”wpstorelocator”][wpsl][/borlabs_cookie_blocked_content] as shown in the borlabs tutorial here:
    https://borlabs.io/plugin-presentation-wp-store-locator/
    We are using Borlabs Version 2.2.67.

    And I just checked on another page we are currently building with the Bricks builder. It has the same problem, but with Borlabs Version 3.0.11.

    Hi again,

    To be honest this is a puzzling issue. I am going to try and replicate it in our test server, and I’ll let you know what I find out, so hold on ??

    Best regards,

    Hi again,

    I just wanted to give you a quick catch-up on this. I have been able to reproduce your issue in our test server, so it is time now for us to investigate the issue. Apologies, we’ll keep you posted when we have some more new info.

    Best regards,

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @cschintlholzer are you comfortable with code? I found the issue, and if you’re comfortable with code, then I can explain what to change ( it’s just one line ). Otherwise it will be in an update soon ??

    • This reply was modified 5 months, 2 weeks ago by Tijmen Smit.
    Thread Starter cschintlholzer

    (@cschintlholzer)

    Hello, yes I’m fine with code editing. What’s the fix?

    Thank you for your effort ??

    Plugin Author Tijmen Smit

    (@tijmensmit)

    1. Open the inc/class-borlabs-cookies.php in the wp-store-locator folder.
    2. Go to line 131 and look for ‘wpsl_get_gmap_api_params(?“browser_key”?)’
    3. Replace it with ‘wpsl_get_gmap_api_params( “browser_key”, false, ” )’

    Let me know if that fixes it for you.

    Thread Starter cschintlholzer

    (@cschintlholzer)

    Hello,

    I inserted the code in inc/class-borlabs-cookie.php starting at line 129:

    BorlabsCookieHelper()->updateBlockedContentTypeJavaScript(
    ‘wpstorelocator’,
    ‘var myScriptTag = document.createElement(“script”); myScriptTag.type = “text/javascript”; myScriptTag.src = “https://maps.google.com/maps/api/js’ . wpsl_get_gmap_api_params( “browser_key”, false, ” ) .'”;jQuery(“body”).append(myScriptTag);’,
    ‘wpslBorlabsCallback();’,
    $wpsl_data[‘settings’]
    );

    But the problems remains.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.