/** * Add customer group ids and website ids to rule data after load * * @param Mage_Core_Model_Abstract $object * * @return Mage_SalesRule_Model_Resource_Rule */ protected function _afterLoad(Mage_Core_Model_Abstract $object) { $object->setData('customer_group_ids', (array) $this->getCustomerGroupIds($object->getId())); $object->setData('website_ids', (array) $this->getWebsiteIds($object->getId())); parent::_afterLoad($object); return $this; }
/** * Add customer segment ids to rule * * @param Mage_Core_Model_Abstract $object * @return Mage_Core_Model_Resource_Db_Abstract */ protected function _afterLoad(Mage_Core_Model_Abstract $object) { $object->setData('customer_segment_ids', $this->getCustomerSegmentIds($object)); return parent::_afterLoad($object); }