Link to Google Maps Prestashop

Hello Alvaro.

If it does not appear, it must be due to a problem in the module, the capture that happens to you is from the documentation that is in prestashop, if the api can be added in the module code, we cannot know it since we cannot download and review it for I told you that the best solution is to discuss it with the developers.

What you tell us about adding the key is for the map that is shown in the directions of the store.
You can find that file in controller -> front -> StoresController.php
You will see a line similar to this:

$this->addJS(‘http’.((Configuration::get(‘PS_SSL_ENABLED’) && Configuration::get(‘PS_SSL_ENABLED_EVERYWHERE’)) ? ‘s’ : ”).’://maps.google.com /maps/api/js?sensor=true&region=’.substr($default_country->iso_code, 0, 2));

adding your Api key to the url in the following way &key=APIKEYVAAQUIPARAQUEGOOGLELALEA

It would be something like this:

$this->addJS(‘http’.((Configuration::get(‘PS_SSL_ENABLED’) && Configuration::get(‘PS_SSL_ENABLED_EVERYWHERE’)) ? ‘s’ : ”).’://maps.google.com /maps/api/js?sensor=true&key=APIKEYHERE&region=’.substr($default_country->iso_code, 0, 2));

All the best

AnswerQuote

Answered : 05/13/2017 8:10 pm

See also  put products randomly
Loading Facebook Comments ...
Loading Disqus Comments ...