Jump to content

Prestashop 1.6 hook Products in the same category module into the left column


Recommended Posts

Hi,

 

I would like to hook "Products in the same category" module into the left column. I added the following code

 

public function hookLeftColumn($params)
{
return $this->hookProductFooter($params);
}
 
in productscategory.php. After module reset and transplant, that module doesn't show up in the left column although the Modules/Positions admin page shows that it has been hooked into displayLeftcolumn.
 
Am I missing something? Please help and thank you in advance.
 
Prestashop version 1.6.0.9
 
Regards.
Link to comment
Share on other sites

Hi vekia,

 

Thanks for your reply. The category, information boxes, etc., show correctly in the left column on product page.  However, in Themes' Advanced settings - Appearance of columns, there is no "Products in the same category" option for us to select.

 

Is it due to the controller? Is so, which file should I try to edit?

Edited by sinoland (see edit history)
Link to comment
Share on other sites

to decide if you want to display products category on some pages - you have to use exceptions tool, not a theme settings feature.

go to modules > positions and search for "displayLeftColumn" modules list, when you click on "edit" button near module on that list, you will see tool to define exceptions

Link to comment
Share on other sites

Hi Vekia,
 
It was a fresh installation of Prestashop 1.6.0.9 and there are no "Exceptions". The results that I'd like to achieve are that the same category's products are to be displayed as a text list in the left column. Wonder why the code change that I mentioned in post #1 and the controller override (see below) work for Prestashop 1.5.5.0 but not for Prestashop 1.6.0.9
 
Demo URL: http://ps1562.sinoland.net/index.php?id_product=5&controller=product
Prestashop version: 1.5.5.0
 

Edited by sinoland (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...