Fix for duplicated Categories showing in footer block...

In this board, we will periodically list various tips and tricks we find that may help in your use of PrestaShop. This will also include tips on the use of Agile modules. If you have a great tip, fix, or workaround for a PrestaShop feature, feel free to post it here...

Fix for duplicated Categories showing in footer block...

Postby Terry » Mon Mar 04, 2013 6:43 pm

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...
Like us on FaceBook ~ Follow us on Twitter ~ Tutorial videos on YouTube
Terry
 
Posts: 125
Joined: Mon Oct 22, 2012 12:49 am

Return to Tips and Tricks for PrestaShop and Agile Modules

Who is online

Users browsing this forum: No registered users and 1 guest