spiralciric Posted November 28, 2016 Share Posted November 28, 2016 Prestashop 1.6 This is the example of the problem: I'm selling shoes, I want for every shoe manufacturer to display the table that links internal shoe size with shoe number, Every manufacturer is in separate category. Vekia posted this code to be added in product.tpl: if (Tools::getValue('id_product')==5){ $this->l('write something for product 5');} I've tried it, and it does not work. I thought I would get from this code to the one I want by changing id_product to id_category, but even the original code does not work. Any idea? Thanks! Link to comment Share on other sites More sharing options...
spiralciric Posted December 8, 2016 Author Share Posted December 8, 2016 (edited) Never mind, I've solved it myself. If someone needs this too, ask for a solution. The results can be seen in my shop: Nero Online Shop Edited December 8, 2016 by spiralciric (see edit history) 1 Link to comment Share on other sites More sharing options...
Soyons Solidaire Posted December 13, 2016 Share Posted December 13, 2016 Hello , Why you did not create an attribute...? Link to comment Share on other sites More sharing options...
spiralciric Posted December 14, 2016 Author Share Posted December 14, 2016 I don't see how attributes would solve the problem. I've edited product.tpl instead and chose for default category id to display some text, for next default category id different text, etc. 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