Jump to content

How to get base price


scratcha

Recommended Posts

Hi Guys,

got a simple problem. On my site I have manually added some code to display the RRP of my products. This is worked out in the following manner:

RRP = (product_price / 0.9)

The actual code for this is as follows:

{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)/0.9|string_format:"%.2f"}



My problem is that if a discount is applied to a product, the RRP calcuation is incorrect, because the product_price being used is the new, discounted price, as opposed to the original base price.

Can anyone advise me as to how I can correct my code so as to use the BASE product price, and not the price after discount etc?

Many thanks in advance,
Ross

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