cong2013 Posted November 12, 2013 Share Posted November 12, 2013 Hi, Enabeling "force SSL on all pages" lead to the problem that the google-map at the storelocator stopped working. There is only an empty <div id="map"></div> instead of the map. With SSL=enabled and "force SSL on all pages"=disabled the storelocator works fine. I would desperately need help with this issue, our shop will go online end of month. Thanks and best regards, Christian Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2013 Share Posted November 12, 2013 open file: controllers/front/storesController.php find code: public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_.'stores.css'); if (!Configuration::get('PS_STORES_SIMPLIFIED')) $this->addJS(_THEME_JS_DIR_.'stores.js'); $default_country = new Country((int)Configuration::get('PS_COUNTRY_DEFAULT')); $this->addJS('http://maps.google.com/maps/api/js?sensor=true®ion='.substr($default_country->iso_code, 0, 2)); } change line: $this->addJS('http://maps.google.com/maps/api/js?sensor=true®ion='.substr($default_country->iso_code, 0, 2)); to $this->addJS('https://maps.google.com/maps/api/js?sensor=true®ion='.substr($default_country->iso_code, 0, 2)); 1 Link to comment Share on other sites More sharing options...
cong2013 Posted November 13, 2013 Author Share Posted November 13, 2013 (edited) $this->addJS('https://maps.google.com/maps/api/js?sensor=true®ion='.substr($default_country->iso_code, 0, 2)); Hi Vekia, Thanks a lot! Its working as long as I don't enable CCC for javascript. I'v cleared all caches both at the BO and by ftp (cache + /mytheme/cache) and set forced compilation. Maybe there is a peace of code in the CCC that stripes out https ?? Best regards, Christian Edited November 13, 2013 by cong2013 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 weirdy, can you please share url to your website with CCC turned on>? Link to comment Share on other sites More sharing options...
cong2013 Posted November 13, 2013 Author Share Posted November 13, 2013 weirdy, can you please share url to your website with CCC turned on>? The site is still in maintaince mode, if you want to take a look I would need your IP (PM) www.ural-shop.com Link to comment Share on other sites More sharing options...
Cedric31 Posted February 19, 2015 Share Posted February 19, 2015 (edited) Hello, I have a same problem, i use prestashop 1.5.6.1 and i change a code in file controllers/front/storesController.php but i can't display a map. How do you make for resolved your problem ? Thanks for return Edited February 19, 2015 by Cedric31 (see edit history) 1 Link to comment Share on other sites More sharing options...
crochead Posted October 13, 2016 Share Posted October 13, 2016 Me too, using pretashop version 1.6.1.5. How was the problem resolved???? Is there any code in the CCC that is part of the problem???? Link to comment Share on other sites More sharing options...
crochead Posted November 4, 2016 Share Posted November 4, 2016 Hey all, I was able to get my stores up on the SSL by disabling the module. Front office Features Google Maps fix - Store locator v1.0.0 - by Mijn Presta https://mosquitocoilholder.boycott-big-box.com.au/stores it seemed to be putting the api key in the wrong place - see my post here https://www.prestashop.com/forums/topic/539319-store-map-error-missing-api-key/ Link to comment Share on other sites More sharing options...
Recommended Posts