Store Locator And Google Map Error

Hi all

I have recently been getting a greyed map on my store locator page. I believe I have done everything required by Google, namely sign up for billing and get a new key, but it is still greyed.

Wondering if anyone knows of any code that needs to be updated as well?

This is the code Google supplied, but I'm not sure where it should be placed:


Please see attached pics.

Using version 4.2.3

Thanks in advance : )

google maps error 1.jpg

google maps error 2.jpg

js/addons/store_locator/google.js

try to replace

other_params: "sensor=false&language=" + options.language,

with

other_params: "sensor=false&language=" + options.language + "&api_key=YOUR_API_KEY_HERE",

Do not forget to clear cache then

(!) Not tested

js/addons/store_locator/google.js

try to replace

other_params: "sensor=false&language=" + options.language,

with

other_params: "sensor=false&language=" + options.language + "&api_key=YOUR_API_KEY_HERE",

Do not forget to clear cache then

(!) Not tested

Thanks for the suggestion. I made the change as described however I am still getting a greyed map. Although the Google API checker is now showing that the map is successsfully being called (see pic). Cache has been cleared.

maps.jpg

.

It is required to examine issue on your server. Try to contact CS-Cart support team