jimmyc Posted June 10, 2014 Share Posted June 10, 2014 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). Any assistance on how to safely do so would be helpful. Thanks. Link to comment Share on other sites More sharing options...
El Patron Posted June 10, 2014 Share Posted June 10, 2014 Hi JimmyC.. 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'); } } 2 Link to comment Share on other sites More sharing options...
jimmyc Posted June 10, 2014 Author Share Posted June 10, 2014 (edited) Worked Like a charm. Line 304 for me. Thanks so much El Patron. Lifesaver! Edited June 12, 2014 by jimmyc (see edit history) 1 Link to comment Share on other sites More sharing options...
magpole Posted April 26, 2015 Share Posted April 26, 2015 We are using prestashop 1.6.0.11. Can't find the code in controllers/admin/AdminOrdersController.php or other code about google map. Please help. Thanks Link to comment Share on other sites More sharing options...
totomato Posted June 5, 2015 Share Posted June 5, 2015 Hi, commenting the line as El Patron suggested removes the ability to see your client's location on the edit order page (admin view). To remove Google maps from the front-end, while keeping the fonctionnality in the back-end, you'd better move the line into the "if" just after : {code} $this->addJqueryUI('ui.datepicker'); $this->addJS(_PS_JS_DIR_.'vendor/d3.v3.min.js'); if ($this->tabAccess['edit'] == 1 && $this->display == 'view') { $this->addJS('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false'); $this->addJS(_PS_JS_DIR_.'admin/orders.js'); $this->addJS(_PS_JS_DIR_.'tools.js'); $this->addJqueryPlugin('autocomplete'); } {/code} 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now