NicePack Posted October 15, 2014 Share Posted October 15, 2014 Hi, I'm using P1.6 and I've seen that it's back office allows me to show "Our Stores" page in two different ways: 1) A list of my saved stores -or- 2) A Google Map with a search box with my stores located in there. And if I search some location it shows a list with the stores in location. But is there a way (or module) to show both map and list without searching? I've seen that in stores.tpl there's an If statement that chooses between map or "list" I tried to merge all code lines oustside list but it doesn't work. It have priority what I've chosen in the backoffice options. If it's usefull some example I would do something like this: http://www.lamallorquina.es/en/content/6-shops (also in this example you can pick the name of a shop and it shows in the map but I think that this is a futur problem that I'll have to fight ) Any suggestion? Thanks! Link to comment Share on other sites More sharing options...
NicePack Posted October 16, 2014 Author Share Posted October 16, 2014 Ok, if I'm not wrong it seem that I must change something in StoresControlles.php. I've seen this code: public function initContent() { parent::initContent(); if (Configuration::get('PS_STORES_SIMPLIFIED')) $this->assignStoresSimplified(); else $this->assignStores(); $this->context->smarty->assign(array( 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), 'defaultLat' => (float)Configuration::get('PS_STORES_CENTER_LAT'), 'defaultLong' => (float)Configuration::get('PS_STORES_CENTER_LONG'), 'searchUrl' => $this->context->link->getPageLink('stores'), 'logo_store' => Configuration::get('PS_STORES_ICON') )); $this->setTemplate(_PS_THEME_DIR_.'stores.tpl'); } I think that if I Kill this If statement and assing $this->assignStores(); I'll get one unique result. But don't know how to get map and stores list in assignStores() function Well to be fair I'm not sure if that's the solution. I'll keep looking for it. Link to comment Share on other sites More sharing options...
cistech Posted October 30, 2014 Share Posted October 30, 2014 Hi NicePack. Looking for the same solution I came here. Have you found a working solution already? Thanks in advance. Regards, JP Link to comment Share on other sites More sharing options...
Martina-27 Posted May 16, 2015 Share Posted May 16, 2015 Hello, who has the solution ? Link to comment Share on other sites More sharing options...
juanmagimz Posted May 19, 2016 Share Posted May 19, 2016 Anyone find a solution?? cheers Link to comment Share on other sites More sharing options...
Gian Luca Posted August 27, 2016 Share Posted August 27, 2016 Take a look here https://www.prestashop.com/forums/topic/197522-unir-muestra-simplificada-de-pagina-de-localizacion-de-la-tienda-con-mapa-de-google/ Link to comment Share on other sites More sharing options...
Gian Luca Posted August 30, 2016 Share Posted August 30, 2016 Hi there... I have find this very helpful blog! ...work for me! http://arnaud-merigeau.fr/tuto-personnaliser-la-page-magasins-dans-prestashop/ PS 1.6.0.9 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