Public Member Functions | |
collectRates (Mage_Shipping_Model_Rate_Request $request) | |
getAllowedMethods () | |
Protected Attributes | |
$_code = 'pickup' |
Definition at line 28 of file Pickup.php.
collectRates | ( | Mage_Shipping_Model_Rate_Request $ | request | ) |
Enter description here...
Mage_Shipping_Model_Rate_Request | $data |
Reimplemented from Mage_Shipping_Model_Carrier_Abstract.
Definition at line 41 of file Pickup.php.
00042 { 00043 if (!$this->getConfigFlag('active')) { 00044 return false; 00045 } 00046 00047 $result = Mage::getModel('shipping/rate_result'); 00048 00049 if (!empty($rate)) { 00050 $method = Mage::getModel('shipping/rate_result_method'); 00051 00052 $method->setCarrier('pickup'); 00053 $method->setCarrierTitle($this->getConfigData('title')); 00054 00055 $method->setMethod('store'); 00056 $method->setMethodTitle(Mage::helper('shipping')->__('Store Pickup')); 00057 00058 $method->setPrice(0); 00059 $method->setCost(0); 00060 00061 $result->append($method); 00062 } 00063 00064 return $result; 00065 }
getAllowedMethods | ( | ) |
Get allowed shipping methods
Implements Mage_Shipping_Model_Carrier_Interface.
Definition at line 72 of file Pickup.php.
00073 { 00074 return array('pickup'=>Mage::helper('shipping')->__('Store Pickup')); 00075 }
$_code = 'pickup' [protected] |