Jump to content

[SOLVED]Adding text label "MRP" next to Price


Recommended Posts

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

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'}

  • Like 1
Link to comment
Share on other sites

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] Topic
If, 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

  • 4 years later...

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...