Jump to content

Repeating text for some products


Recommended Posts

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 by tuatara (see edit history)
Link to comment
Share on other sites

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

  • 2 years later...
×
×
  • Create New...