/** * Add website ids to rules data * * @return Mage_Rule_Model_Resource_Rule_Collection_Abstract */ protected function _afterLoad() { parent::_afterLoad(); if ($this->getFlag('add_websites_to_result') && $this->_items) { foreach ($this->_items as $item) { $item->afterLoad(); } } return $this; }