Esempio n. 1
0
 public function getEstimateRates()
 {
     if (!Mage::helper('udsplit')->isActive()) {
         return parent::getEstimateRates();
     }
     if (empty($this->_rates)) {
         $groups = $this->getAddress()->getGroupedAllShippingRates();
         foreach ($groups as $cCode => $rates) {
             foreach ($rates as $i => $rate) {
                 if ($rate->getUdropshipVendor() || $rate->getCarrier() == 'udsplit' && $rate->getMethod() == 'total') {
                     unset($groups[$cCode][$i]);
                 }
                 if (empty($groups[$cCode])) {
                     unset($groups[$cCode]);
                 }
             }
         }
         $this->_rates = $groups;
     }
     return $this->_rates;
 }
Esempio n. 2
0
 public function getEstimateRates()
 {
     $rates = parent::getEstimateRates();
     unset($rates['nypwidget']);
     return $rates;
 }