/** * Retrieve collection of quote shipping rates * * @return Mage_Eav_Model_Entity_Collection_Abstract */ public function getShippingRatesCollection() { if (is_null($this->_rates)) { $this->_rates = Mage::getModel('sales/quote_address_rate')->getCollection()->setAddressFilter($this->getId()); if ($this->getQuote()->hasNominalItems(false)) { $this->_rates->setFixedOnlyFilter(true); } if ($this->getId()) { foreach ($this->_rates as $rate) { $rate->setAddress($this); } } } return $this->_rates; }