Jump to content

Product Comparison for specific categories


Recommended Posts

Hi there,

 

Not all my categories have compareable products, for example "accesories", where all accesories are different and it is irrelevant to compare.

 

On the other hand, the Prestashop compare feature will be very powerful in some of my other categories with very similar products.

 

Is there a way I can activate the comparison feature for some categories and disable it for others?

 

Thank you,

 

Pietro.

Link to comment
Share on other sites

you can add this code in the product-comparassion tpl file of your theme (at the beginning and ending). This exaplme shows the category 1 and 2 with the comparasion

 

{if $category->id_category eq "1" or $category->id_category eq "2"}

 

the compare code here

 

{/if}

Link to comment
Share on other sites

×
×
  • Create New...