scratcha Posted April 18, 2011 Share Posted April 18, 2011 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 More sharing options...
scratcha Posted April 18, 2011 Author Share Posted April 18, 2011 Not to worry, I got it sorted. For anyone else reading this, the function i was looking for was $product->getPriceWithoutReduct() 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