hamsn Posted October 14, 2013 Share Posted October 14, 2013 (edited) Hello, I am using Prestashop 1.5.4.1 with default theme. Consider this product example for what I am going to ask: http://afmas.com/presta/index.php?id_product=8&controller=product I am using a dicounted price rule, but before 197.34 I want to have a text label saying "Selling Price", that is, I want it to display like this:Selling Price: ₹197.34 Same for the original price: Original Price: ₹299.00 I am not good at PHP, and I looked into the product.tpl, there are various conditions for taxes and custom price rules, so if someone could guide me to a simple edit, it will be great. Thank you for your time, Regards. Edited October 14, 2013 by hamsn (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 14, 2013 Share Posted October 14, 2013 hello, in this case you have to edit product.tpl file located in your theme directory before price code (<span id="our_price_display">{convertPrice price=$productPrice}</span>) add this: {l s='Selling Price'} and before old price (<span id="old_price_display">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}</span>) add {l s='Original Price'} 1 Link to comment Share on other sites More sharing options...
hamsn Posted October 14, 2013 Author Share Posted October 14, 2013 (edited) Thank you so much vekia, Prestashop Legend! I fixed it with your help. Marking the topic as solved. Edit: How do I close the topic? Edited October 14, 2013 by hamsn (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 14, 2013 Share Posted October 14, 2013 you can't close topic (you haven't got rights to close threads) but of course you can mark own posts as solved here is an instruction: [sOLVED] TopicIf, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution.Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED].To mark a topic as [solved] :- Edit the first post of your topic by clicking on the "Edit" button,- Click on the "Use full editor" button,- Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. Link to comment Share on other sites More sharing options...
hamsn Posted October 14, 2013 Author Share Posted October 14, 2013 (edited) Thanks again vekia! Topic has been marked as SOLVED. Edited October 14, 2013 by hamsn (see edit history) Link to comment Share on other sites More sharing options...
AbuHasnain Posted July 24, 2018 Share Posted July 24, 2018 Hello, Vekia Prestashop Legend, Where I should paste which piece of code in product.tpl. Please explain. Thanks 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