From 00ea2743d9f8eb7c4a94c81f758bd5b5d0521e19 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 9 Mar 2022 20:17:48 +0530 Subject: [PATCH 1/2] Remove unused maps api on orders page --- .../controllers/orders/helpers/view/view.tpl | 60 ------------------- controllers/admin/AdminOrdersController.php | 5 +- 2 files changed, 1 insertion(+), 64 deletions(-) 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 d300dc815..5e69126b4 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -1418,9 +1418,6 @@ {* Apply javascript for the page *} {/block} diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 15157bf43..940e26438 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -354,10 +354,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'); From 622aaade32748fb4c9ba012e97d704c53d6cbe36 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 12 Apr 2022 17:58:58 +0530 Subject: [PATCH 2/2] Remove map container html on order detail page at back office --- .../template/controllers/orders/helpers/view/view.tpl | 6 ------ 1 file changed, 6 deletions(-) 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 5e69126b4..93ada0816 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} -
-
-