Jump to content

Product category in products-comparison.tpl


Recommended Posts


On my website, every product without img will display the img of the default_category instead.

I figured out how to do it everywhere except in products-comparison.tpl. I cant figure out a way to get the product default_category. I think its  because products-comparison.tpl works only with the infos you should need which exclude the product category. So $product in this page doesnt have any category set.

I have some ideas but i'm not sure which one would be the best.

Create a new function to retrieve an id_category from an id_product? Something like getCategory(id_product) ? Where?


Any suggestions? Thanks!


Prestashop - Theme: Zero (zro03)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...