Jump to content

(Solved) How do I change "Quantity:" to "Pair:" only for a single product


Recommended Posts

You can Translate / Rename any text in Prestashop using the Translation engine.

Tools->Translations->Front Office Translations (or Module Translations)-> and click on the flag (for rename, click your own flag, for translation, click on any other flag)

Now look for the right section and enter the new text

Link to comment
Share on other sites

  • 3 years later...

Edit /themes/prestashop/product.tpl

 

Replace

<label>{l s='Quantity :'}</label>

With

<label>{if $product->id|intval == 1}{l s='Pair :'}{else}{l s='Quantity :'}{/if}</label>
Replace 1 with the product ID that should say Pair

 

and for more IDs?

Link to comment
Share on other sites

  • 1 year later...

and for more IDs?

 

<label>{if $product->id|intval == 1}{l s='Pair :'}{else}{l s='Quantity :'}{/if}</label>

 

changing the "==" to "<" or ">" worked for me. so the example of "intval < 5" will change the  "l s='Pair" into the first 5

or more precisely any IDs lower than 5.

Edited by bigkana (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...