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.

Share this post


Link to post
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}

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More