magento sweet积分插件 获得订单消耗的积分
$order_object = Mage::getModel('sales/order')->load("order_id");
注:order_id 是订单号后面的数字;
$res['points_spend']=Mage::helper('rewards')->getPointsString($order_object->getTotalSpentPoints());
$order_object = Mage::getModel('sales/order')->load("order_id");
注:order_id 是订单号后面的数字;
$res['points_spend']=Mage::helper('rewards')->getPointsString($order_object->getTotalSpentPoints());