tuatara Posted March 5, 2014 Share Posted March 5, 2014 (edited) Can anyone help me with this? For legal reasons (in my country) some products need to have a warning text. Like Li-ion batteries.In the past i used a module for this, but this is no longer available and supported ...With that i created the warning text once and put it in a variable.And i only had to put the variable under the products that needed that text. That way i only had to type the multiple text lines once.And there was only one location were the text had edit if it had to change. So my question is:Is there a way to put text in a variable, and use the variable to print the text under the products where this is needed? Thanks for your help .. Tuatara Edited March 5, 2014 by tuatara (see edit history) Link to comment Share on other sites More sharing options...
waldiPL Posted March 5, 2014 Share Posted March 5, 2014 i use for this module called product page content blocks i've got option to define there custom texts for products Link to comment Share on other sites More sharing options...
vekia Posted March 5, 2014 Share Posted March 5, 2014 you can do it in several ways, with module like waldiPL mentioned above, or also with modification with product.tpl file if i were you i will use module (much easier to use). if you want to manual modification, open product.tpl file and add there if condition like: if (Tools::getValue('id_product')==5){ $this->l('write something for product 5'); } you have to repeat this code for all products, for which you want to display text. this is why it's a bit impractical Link to comment Share on other sites More sharing options...
spiralciric Posted November 24, 2016 Share Posted November 24, 2016 (edited) Can we do that , but instead of id_product, use category? Also, regarding the SEO, will not this repeating of text hurt our Google visibility? Edited November 24, 2016 by spiralciric (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts