stanleyek18 Posted September 18, 2016 Share Posted September 18, 2016 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 More sharing options...
shokinro Posted September 18, 2016 Share Posted September 18, 2016 On product detail page, have you tried to use {$product->base_price} instead of {$product->price}? {$product->price} should be the price after discount and {$product->base_price} is the original price. Link to comment Share on other sites More sharing options...
stanleyek18 Posted September 18, 2016 Author Share Posted September 18, 2016 (edited) 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 September 18, 2016 by stanleyek18 (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