getConfigFlag('active')) { return false; } $result = Mage::getModel('shipping/rate_result'); if (!empty($rate)) { $method = Mage::getModel('shipping/rate_result_method'); $method->setCarrier('pickup'); $method->setCarrierTitle($this->getConfigData('title')); $method->setMethod('store'); $method->setMethodTitle(Mage::helper('shipping')->__('Store Pickup')); $method->setPrice(0); $method->setCost(0); $result->append($method); } return $result; } /** * Get allowed shipping methods * * @return array */ public function getAllowedMethods() { return array('pickup'=>Mage::helper('shipping')->__('Store Pickup')); } }