/** * Don't add item to the collection if only fixed are allowed and its carrier is not fixed * * @param Mage_Sales_Model_Quote_Address_Rate $rate * @return Mage_Sales_Model_Mysql4_Quote_Address_Rate_Collection; */ public function addItem(Varien_Object $rate) { if ($this->_allowFixedOnly && (!$rate->getCarrierInstance() || !$rate->getCarrierInstance()->isFixed())) { return $this; } return parent::addItem($rate); }
public function addItem(Varien_Object $item) { /** @var $item Payone_Core_Model_Domain_Config_PaymentMethod */ $item->afterLoadPrepareData(); return parent::addItem($item); }
/** * Overload default addItem method to set environment for the rules * * @param Mage_Rule_Model_Abstract $rule * @return Mage_Rule_Model_Mysql4_Rule_Collection */ public function addItem(Varien_Object $rule) { $rule->setEnv($this->getEnv())->setIsCollectionValidated(true); parent::addItem($rule); return $this; }
public function addItem(Varien_Object $item) { $item->setStoreIds(explode(',', $item->getStoreIds())); return parent::addItem($item); }