diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl index 4e9be3149..6922cff6d 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -787,9 +787,6 @@
{$addresses.delivery->other}
{/if} -
-
-
{/if} @@ -837,9 +834,6 @@
{$addresses.invoice->other}
{/if} -
-
-
@@ -1418,9 +1412,6 @@ {* Apply javascript for the page *} {/block} diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 4c1574b5e..b67bb86d9 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -321,10 +321,7 @@ public function setMedia() $this->addJqueryUI('ui.datepicker'); $this->addJS(_PS_JS_DIR_.'vendor/d3.v3.min.js'); - $api_key = (Configuration::get('PS_API_KEY')) ? 'key=' . Configuration::get('PS_API_KEY') . '&' : ''; - $protocol = (Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE')) ? 'https' : 'http'; - $this->addJS($protocol . '://maps.google.com/maps/api/js?' . $api_key); - + if ($this->tabAccess['edit'] == 1 && $this->display == 'view') { $this->addJS(_PS_JS_DIR_.'admin/orders.js'); $this->addJS(_PS_JS_DIR_.'tools.js');