i m trying to display price in subtotal before shopping cart price rule aaplied.but it always give nothing when print my code.i m use below code to display price in cart.

echo Mage::getModel('catalogrule/rule')->calcProductPriceRule($_item->getProduct(),$_item->getProduct()->getPrice());

enter image description here


You can get direct price as below. Above function might give you price after catalog rule applied on it.

  <?php echo $_item->getProduct()->getFinalPrice(); ?>
| improve this answer | |
  • sorry but it gives 4408.90 not 4326.75 – Zaheerabbas Dec 9 '15 at 13:34

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.