Prestashop: remove google maps from order page in backoffice

https://www.prestashop.com/forums/topic/336592-remove-google-maps-from-order-page-in-16-slowing-down-crashing-siteserver/

Put the modified file in the override/controllers/admin
After that, you need to trigger the regeneration of the /cache/class_index.php file. This is done simply by deleting the file. It is the same when manually removing an override: in order to reinstate the default behavior, you must delete the /cache/class_index.php file.

QN: Anyone know the best way to remove the google maps module lookup for the customers address in the order page in 1.6. Or a way to remove google maps all together from prestashop. We have a user in china that cannot access the order page whenever the china government tries to block google and its services (they do that every time something sensitive comes up in western news).
ANS:

controllers/admin/AdminOrdersController.php

find and then comment out as follows:

public function setMedia()
{
parent::setMedia();

$this->addJqueryUI(‘ui.datepicker’);
$this->addJS(_PS_JS_DIR_.’vendor/d3.v3.min.js’);
// $this->addJS(‘https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false’);

if ($this->tabAccess[‘edit’] == 1 && $this->display == ‘view’)
{
$this->addJS(_PS_JS_DIR_.’admin_order.js’);
$this->addJS(_PS_JS_DIR_.’tools.js’);
$this->addJqueryPlugin(‘autocomplete’);
}
}

This entry was posted in ecommerce and tagged , , . Bookmark the permalink.

Comments are closed.