Jump to content

Adding extra word to Product name


glebwe

Recommended Posts

Hi,

 

i have to add extra word to product name. for example.

 

Original product name: "Perfume 1"

in Category: "Perfume for woman"

 

i need that the new product name will be: Woman: Perfume

 

e..g. I have to add at the beginning of the product name (Perfume) additional word  that depend on category name.

 

i was able to do it with Product listing template,

 

<a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
{if ($product.id_category_default) == 17}<span style="color:#FF0000;"><b>Tester: </b></span>{/if}
{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
</a>

 

but the name does not stays on product page and on invoice.so i understand that i have do it globally: change $product->name to $product->name + "some word"

 

Please help.

Thank you

Edited by glebwe (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...