Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Get Product Final Price After Applying Catalogue Rules Promotions
 
aumento
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2010-09-30
Cairo, Egypt
 

Hi,

I am creating a small script that retrieves all my products and exports them to csv file. I’m trying to get each product final price after applying any Catalogue Price Rules that are related to it, but am not sure how to do this,what am getting right now is product price before the discounts, my code goes like this:

$_taxHelper  Mage::helper('tax');
$product Mage::getModel('catalog/product');
$product->load(5);
$product_data['price'$_taxHelper->getPrice($product$product->getFinalPrice());

Any help appreciated.
Thanks.

--
Yehia A.Salam

 
Magento Community Magento Community
Magento Community
Magento Community
 
TonyHou
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2011-01-30
New Zealand
 

You need this before you get the final price:

Mage::app()->loadAreaPart(Mage_Core_Model_App_Area::AREA_FRONTEND,Mage_Core_Model_App_Area::PART_EVENTS);
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top