Page 1 of 1

Fix for duplicated Categories showing in footer block...

PostPosted: Mon Mar 04, 2013 6:43 pm
by Terry
In PrestaShop 1.5x (at least through version 1.5.3) categories will be duplicated in the footer Category block is a customer logs in and belongs to multiple customer groups.

To fix this, edit the file "/modules/blockcategories/blockcategories.php". Find the following line:

SELECT c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite

and add the word "distinct" as shown below:

SELECT distinct c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite

Then save the file.

This will eliminate the display of duplicate categories in the footer.

Hope that helps...