Jump to content
hamsn

[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)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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 by hamsn (see edit history)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Hello, Vekia Prestashop Legend,

Where I should paste which piece of code in product.tpl.

Please explain.

Thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More