BazzQc Posted November 30, 2017 Share Posted November 30, 2017 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) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now