Problém vyriešený. Návod aj pre ostatných ->
V kóde "
YOUR_API_KEY" nahraďte
svojim API Kĺúčom.
controllers/admin/AdminOrdersController.php
ORIGINÁL:
Kód:
$this->addJS('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false');
UPAVENÝ:
Kód:
$this->addJS('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=YOUR_API_KEY');
controllers/front/StoresController.php
ORIGINÁL:
Kód:
$this->addJS('http'.((Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE')) ? 's' : '').'://maps.google.com/maps/api/js?sensor=true®ion='.substr($default_country->iso_code, 0, 2));
UPAVENÝ:
Kód:
$this->addJS('http'.((Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE')) ? 's' : '').'://maps.google.com/maps/api/js?sensor=true&key=YOUR_API_KEY®ion='.substr($default_country->iso_code, 0, 2));
themes/default-bootstrap/js/stores.js
ORIGINÁL:
Kód:
var html = '<b>'+name+'</b><br/>'+address+(has_store_picture === 1 ? '<br /><br /><img src="'+img_store_dir+parseInt(id_store)+'.jpg" alt="" />' : '')+other+'<br /><a href="http://maps.google.com/maps?saddr=&daddr='+latlng+'" target="_blank">'+translation_5+'<\/a>';
UPAVENÝ:
Kód:
var html = '<b>'+name+'</b><br/>'+address+(has_store_picture === 1 ? '<br /><br /><img src="'+img_store_dir+parseInt(id_store)+'.jpg" alt="" />' : '')+other+'<br /><a href="http://maps.google.com/maps?saddr=&key=YOUR_API_KEY&daddr='+latlng+'" target="_blank">'+translation_5+'<\/a>';
ADMIN/themes/default/template/controllers/orders/helpers/view/view.tpl
ORIGINÁL:
Kód:
url: 'http://maps.google.com?q={$addresses.delivery->address1|urlencode},{$addresses.delivery->postcode|urlencode},{$addresses.delivery->city|urlencode}{if ($addresses.delivery->id_state)},{$addresses.deliveryState->name|urlencode}{/if},{$addresses.delivery->country|urlencode}'
UPAVENÝ:
Kód:
url: 'http://maps.google.com?key=YOUR_API_KEY&q={$addresses.delivery->address1|urlencode},{$addresses.delivery->postcode|urlencode},{$addresses.delivery->city|urlencode}{if ($addresses.delivery->id_state)},{$addresses.deliveryState->name|urlencode}{/if},{$addresses.delivery->country|urlencode}'
ZDROJ:
http://blog.belvg.com/how-to-fix-google ... ashop.html