Jump to content

[1.6.0.9] Adding unit price without discount on product.tpl


stanleyek18

Recommended Posts

Hello!

 

I am struggling to insert unit price without discount on product.tpl. It is essential to show older unit price before calculated discount to my clients.

I have made it on product-list.tpl where I can show both unit prices - before and after discount.

But on product.tpl this seems to be far more complex.

 

Can you help me with that? Anyone done this before?

 

Thanks for your help :-)

Link to comment
Share on other sites

Thanks for answer!
 
I am showing unit price on product.tpl with this code:

{if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
{math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price}
<p class="unit-price"><span id="unit_price_display" class="price">{convertPrice price=$unit_price}</span>

Which variable should I change?

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