Jump to content

Product category in products-comparison.tpl


BazzQc
 Share

Recommended Posts

Hi,

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 1.6.1.15 - Theme: Zero (zro03)

Share this post


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

×
×
  • Create New...

Important Information

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