Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    There aren’t “many” errors. It’s asking for an API key. Google Maps doesn’t work without one.

    Thread Starter koreyrjm

    (@koreyrjm)

    I had the Google Maps API key in. And still do.

    I ended up doing 2 things…

    1. Added $location_search .= '<script>$("#location_search_form").submit(function(e){e.preventDefault();});</script>'; After the form to search via zipcode.
    2. Commented wp_enqueue_script( 'simplemap-google-api', SIMPLEMAP_MAPS_JS_API . http_build_query( $url_params, '', '&' ) );

    Otherwise it would always submit the form, and never return results.

    Plugin Contributor Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    There definitely isn’t an API key showing in the source code.
    Also, you’re running an old version of SimpleMap and an extremely old version of WordPress (3.8.3 is three years old). You should update both.

    Thread Starter koreyrjm

    (@koreyrjm)

    I believe the reason the API key doesn’t show is because the tag that IS being used. (Not commented) does not pull the API key correctly. Because I do have an API key in the Options. (First input of Map Configuration in the Simplemap options.)

    As for the Version of WP, I do know it is outdated, but I am not allowed to update it.. (Company Request.) And the SM version I’m running is only a single version old..

    Technically it is working correctly now that I made the changes noted above… But without them, the plugin would not display the locations.

    Plugin Contributor Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Commenting out the enqueueing of the main Google Maps API javascript call will absolutely break the map. That’s what sends the API key, along with other information.
    That’s literally the most important code in the plugin. It can not work without it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Store Location Plugin seems to not work’ is closed to new replies.