slawekmoskal Posted May 13, 2019 Share Posted May 13, 2019 (edited) Hi. Prestashop 1.7.4. My product belongs to two category - ID=10 and ID=510. If the product belongs to category ID = 510, I want to display something extra. ID = 510 is not a default category. {if $product.id_category == 510 }, {if $id_category == 510 } - did not work. Anyone have any idea? Edited May 13, 2019 by slawekmoskal (see edit history) Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted May 13, 2019 Share Posted May 13, 2019 Hi.. in which page you need to check the conditions ? try this {if $product.id_category eq 510 } Thanks Link to comment Share on other sites More sharing options...
slawekmoskal Posted May 13, 2019 Author Share Posted May 13, 2019 root/my_template/templates/catalog/_partials/miniatures/product.tpl product.tpl template an product from category id=56 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