Exemple #1
0
 /**
  * Add a rate to the result
  *
  * @param Mage_Shipping_Model_Rate_Result_Abstract|Mage_Shipping_Model_Rate_Result $result
  */
 public function append($result)
 {
     if ($result instanceof Mage_Shipping_Model_Rate_Result_Abstract) {
         $this->_rates[] = $result;
     } elseif ($result instanceof Mage_Shipping_Model_Rate_Result) {
         $rates = $result->getAllRates();
         foreach ($rates as $rate) {
             $this->append($rate);
         }
     }
     return $this;
 }