1

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.

$product->getPrice();
$product->getFinalPrice();
2

I got the discounted price by below code:

$price = $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue();
|improve this answer|||||
1

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

   $discounted_price = Mage::getModel('catalogrule/rule')->calcProductPriceRule($product
   ->setStoreId(1)
   ->setCustomerGroupId($grup),
   $product->getPrice()
   );
|improve this answer|||||

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.