I have created a catalog price rule in Magento adminarea.

For ex. Product A's price is 100 and after applying the catalog price rule, its price becoming 80.

I am trying to fetch the price 80 programmatically but the below code is returning original price only i.e. 100.


I got the discounted price by below code:

$price = $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue();

You can get the discounted price after applying the rule as follows:

   $discounted_price = Mage::getModel('catalogrule/rule')->calcProductPriceRule($product

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.