gregultra Posted December 5, 2013 Share Posted December 5, 2013 Everything is in the title. I can hide it, but it disappear on the manufacturer page as well, and i don't want this.Seems like manufacturer and manufacturer-list have the same ID... Link to comment Share on other sites More sharing options...
vekia Posted December 5, 2013 Share Posted December 5, 2013 how you hide left column? with css styles? Link to comment Share on other sites More sharing options...
gregultra Posted December 5, 2013 Author Share Posted December 5, 2013 well yes, like i did everywhere else : display:none. Link to comment Share on other sites More sharing options...
vekia Posted December 5, 2013 Share Posted December 5, 2013 take a look: controllers/front/ManufacturersController.php public function initContent() { parent::initContent(); if (Validate::isLoadedObject($this->manufacturer) && $this->manufacturer->active && $this->manufacturer->isAssociatedToShop()) { $this->productSort(); $this->assignOne(); $this->setTemplate(_PS_THEME_DIR_.'manufacturer.tpl'); } else { $this->assignAll(); $this->display_column_left = false; $this->setTemplate(_PS_THEME_DIR_.'manufacturer-list.tpl'); } } i added $this->display_column_left = false; to section related to manufacturer-list.tpl enjoy! Link to comment Share on other sites More sharing options...
gregultra Posted December 5, 2013 Author Share Posted December 5, 2013 It doesn't work version 1.5.6.0, if that can help. Link to comment Share on other sites More sharing options...
vekia Posted December 5, 2013 Share Posted December 5, 2013 oops! by bad the same file, use this code: if (isset($_GET['id_manufacturer'])) { $this->display_column_left = true; } else { $this->display_column_left = false; } in init() function: /** * Initialize manufaturer controller * @see FrontController::init() */ public function init() { parent::init(); if (isset($_GET['id_manufacturer'])) { $this->display_column_left = true; } else { $this->display_column_left = false; } effect: and left column on manufacturer page: 1 Link to comment Share on other sites More sharing options...
gregultra Posted December 5, 2013 Author Share Posted December 5, 2013 it works, thank you so much Link to comment Share on other sites More sharing options...
vekia Posted December 5, 2013 Share Posted December 5, 2013 you're welcome thread marked as [solved] with regards, Milos 1 Link to comment Share on other sites More sharing options...
Bhodi Posted August 20, 2014 Share Posted August 20, 2014 Why all this, when there is funktion for it in: preferenses-themes Link to comment Share on other sites More sharing options...
MarysWebLab Posted May 3, 2016 Share Posted May 3, 2016 Vekia's trick works like a charm! Though, in some themes, you may have issue with the width of the center column. In my case I found a "dirty" solution by adding a <style> inside the manufacturers-list.tpl <style> .show-left-column #center_column { width: 100%!important; } </style> @Bhodi The issue is that when you select to activate a column for the manufacturers on the template settings, you enable the column for both, manufacturers-list and single manufacturer, pages. The goal with this trick is to have a column enabled ONLY on the single manufacturer page and NOT on the manufacturers-list. But I agree with you that for all the other pages, you don't need css, or any other coding... Just to set the columns properly (as long as the theme selected supports it!) Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2016 Share Posted May 3, 2016 but it is worth to mention that is for non-bootstrap themes :-) Link to comment Share on other sites More sharing options...
Pyssou Posted July 26, 2018 Share Posted July 26, 2018 Hello Vekia I am using prestashop 1.7 and I want to show the left column on the manufacturer listing. Should I add inside controllers/front/listing/ManufacturerController.php ? $this->display_column_left = true; Actually, my main issues is when I try to clic on pagination like 2,3... on the listing of product of a specific manufacturer, nothing happens. I saw it is because of the faceted module that is not on the left column because on my category listing, the pagination works. Thank you for your help Link to comment Share on other sites More sharing options...
KeenGamer Posted September 19, 2018 Share Posted September 19, 2018 Just a reminder to this topic where Vekia surprisingly reacts. If you wish to buy anything from mypresta.eu, be sure that his support is non-existent and communication is absolutely zero. 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