Engine23
blogBannerImage
By Engine23

Magento - get the total value in dollars for reward points

When designing a page in magento and you want to display the Reward Dollars for a customer by using their id number here is how:

$customer = Mage::getModel('customer/customer')->load($customer_id);
 $balance = Mage::getModel('enterprise_reward/reward')
 ->setCustomer($customer)
 ->setWebsiteId(Mage::app()->getWebsite()->getId())
 ->loadByCustomer()
 ->getCurrencyAmount();