Example #1
0
 /**
  * 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);
 }