Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1262633

    Hello,

    While I appreciate your compliance to GDPR with regard to Google Maps cookie consent, I’m running a website in a very localized context in the USA (real estate property locator), and I don’t have GDPR concerns here (it only applies to 13 countries in the EU iirc). I am using do_shortcode('[av_google_map']) to dynamically display a property’s location via PHP plugin. But I can’t find a hook or variable that lets me switch off the consent requirement. The map’s container just shows the “Maps were disabled by the visitor on this site. Click to open the map in a new window.” which doesn’t apply to me. I ended up having to “display” the message so that my visitors have an option to view the map. This is NOT ideal.

    Please advise.

    Thanks!

    #1263312

    Hey,

    Thanks for contacting us!

    If you do not have GDPR concerns, you can go to Enfold theme options > Privacy and Cookies > Cookie Handling, click “Show advanced options” to display advanced options and select “Use as a simple message bar without cookie logic” in “Select use of the message bar” field – https://imgur.com/a/hbifdDx :)

    Best regards,
    Yigit

    #1263344

    Legally I’m afraid, that if visitors from one of the countries in which the GDPR (DSGVO – for German speaking countries) is valid can reach your website – this website must also comply with the laws.

    So if I now search for a property in this region, and I come to your site, the site would not comply with the law even though it is located in the USA.

    #1263516

    Hello Yigit – that does not work. The map does not load because I’m using a direct shortcode call via PHP, and I need to be able to instruct Enfold to bypass the check. Here’s my code:

    echo do_shortcode('[av_google_map height="400px" zoom="13" saturation="" hue="" zoom_control="aviaTBzoom_control" maptype_control="dropdown" maptype_id="" custom_class="" av_uid="av-k2kfwniz"]
    [av_gmap_location address="'.$address["street_address"].($address["address_line_2"]?", ".$address["address_line_2"]:NULL).'" city="'.$address["city"].'" country="USA" long="'.$address["lng"].'" lat="'.$address["lat"].'" marker="211" imagesize="40" av_uid="av-6uitn"]<strong>'. get_the_title($property->ID) . '</strong><br />' . $address["street_address"].($address["address_line_2"]?", ".$address["address_line_2"]:NULL) . '<br />'.$address['city'].', ' . $address['state'] .' ' . $address['zip'] . '[/av_gmap_location][/av_google_map]');
    #1264234

    Bump (sorry for the bump – client needs this resolved)

    #1264262

    Hi,

    Thank you for the update.

    This might not be working correctly because the site still contains an older version of the theme, v4.7.4. Please upgrade the theme to version 4.7.6.4, then toggle the Performance > File Compressions settings afterwards.

    You might also have to add this filter to allow shortcode execution outside the Advance Layout Builder.

    function avf_custom_exec_sc_only_mod( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake )
    {
    	return true;
    }
    
    add_filter( 'avf_alb_exec_sc_only', 'avf_custom_exec_sc_only_mod', 10, 6 );
    

    Best regards,
    Ismael

    #1264307

    Hello Ismael,

    Still no joy :-(

    Any additional recommendations greatly appreciated.

    Thanks!

    #1264939

    Hi,

    Thank you for the inquiry.

    The site is still using an older version of the theme, v.4.7.4. You may need to upgrade it to v4.7.6.4. Please post the FTP and WP login details in the private field if the issue persists after the update.

    Best regards,
    Ismael

    #1265035

    Version 4.7.4 is not showing up as available in the Theme Update area, nor through the Envato Market plugin – in both areas it appears as up-to-date. Any idea when 4.7.4 will be added to the Envato Market repository?

    #1265507

    Hi,

    Thank you for the update.

    The latest version is actually v4.7.6.4, which is now available on Themeforest. Please download it from the site or from your accounts panel and try to update the theme manually via FTP. The following documentation should help in case you are not familiar updating through FTP.

    // https://kriesi.at/documentation/enfold/theme-update/#update-via-ftp

    Best regards,
    Ismael

    #1265546

    Still no joy. I cleared the server cache as well, and am viewing incognito. The map simply won’t load when it used to prior to the cookie update. Is there a way that I can copy the necessary file over to my child theme and disable the cookie consent that way?

    • This reply was modified 4 years ago by betaphase.
    #1265972

    Hi,

    Thank you for the update.

    Have you tried to disable the cache and minification plugins? The header and the rest of the scripts are currently minified and it is possible that the site is still using the outdated version of the scripts.

    Please post the login details in the private field so that we could check the site further. Make sure that the Appearance > Editor panel is accessible so that we could edit the files when necessary.

    Best regards,
    Ismael

    #1267429

    As it turns out, the owner of the website forgot to generate the lat/long coordinates after they added the real estate property. No coordinates = map fail, BUT – the Enfold theme was reporting that the user hadn’t allowed cookies. Thus the rabbit-hole investigation into cookie consent. Apologies for the inconvenience and the round-around. You may close this thread now. Thanks for your time.

    #1267603

    Hi betaphase,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Google Maps Shortcode issue in a non-GDPR country’ is closed to new replies.