This topic contains 2 replies, has 2 voices, and was last updated by Sofia Moss Sofia Moss 6 years, 5 months ago.

Regions filter

  • In the stand alone version I have changed the the “Google Maps Region” admin setting from “World Wide (Default) to “New Zealand” but still see a World Wide Regions filter in the store finder? I would have thought by changing these settings the regions would change to as defined in the file /includes/geoipregionvars.php starting on line 3007 through to line 3025?

    Apologies,
    I figured it out

    Sofia Moss
    StaffSuper ContributorUser Level

    No worries, to limit the search within a particular region only, for standalone version, you can edit

    themes/meta.php or themes/meta_mobile.php file and edit from:

    <script src="https://maps.googleapis.com/maps/api/js?<?php echo $google_api_key; ?>libraries=geometry,places"></script>

    to:

    <script src="https://maps.googleapis.com/maps/api/js?<?php echo $google_api_key; ?>region= NZ&libraries=geometry,places"></script>

    * Example above is using New Zealand as the region

    Cheers,
    Sofia

The topic ‘Regions filter’ is closed to new replies.