Slammer Posted October 28, 2010 Share Posted October 28, 2010 I sell gloves - I need to change the Quantity: label to Pair: on one select product where it is not clear that it is sold in pairs.Example:Quantity: 1and I want it to readPair: 1How do I change it?Thanks in Advance,Jv Link to comment Share on other sites More sharing options...
tomerg3 Posted October 28, 2010 Share Posted October 28, 2010 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 More sharing options...
Slammer Posted October 28, 2010 Author Share Posted October 28, 2010 Thanks for the quick reply - but I only want to change it on 1 product.Can I do that? Link to comment Share on other sites More sharing options...
tomerg3 Posted October 28, 2010 Share Posted October 28, 2010 Edit /themes/prestashop/product.tplReplace {l s='Quantity :'} With {if $product->id|intval == 1}{l s='Pair :'}{else}{l s='Quantity :'}{/if} Replace 1 with the product ID that should say Pair Link to comment Share on other sites More sharing options...
Slammer Posted October 28, 2010 Author Share Posted October 28, 2010 AWESOME!!Thanks, tomerg3Would you like to code a PayPal Website Payment Pro module for me? For hire, of course. Link to comment Share on other sites More sharing options...
tomerg3 Posted October 28, 2010 Share Posted October 28, 2010 Email me and we can talk about the details. Link to comment Share on other sites More sharing options...
Hepmi Posted February 8, 2014 Share Posted February 8, 2014 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 More sharing options...
bigkana Posted March 12, 2015 Share Posted March 12, 2015 (edited) 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 March 12, 2015 by bigkana (see edit history) 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