示例#1
0
文件: Fedex.php 项目: sshegde123/wmp8
 public function __construct()
 {
     parent::__construct();
     $wsdlBasePath = Mage::getModuleDir('etc', 'Mage_Usa') . DS . 'wsdl' . DS . 'FedEx' . DS;
     $this->_shipServiceWsdl = $wsdlBasePath . 'ShipService_v10.wsdl';
     $this->_rateServiceWsdl = $wsdlBasePath . 'RateService_v10.wsdl';
     $this->_trackServiceWsdl = $wsdlBasePath . 'TrackService_v5.wsdl';
 }
示例#2
0
 /**
  * Processing additional validation to check is carrier applicable.
  *
  * @param Mage_Shipping_Model_Rate_Request $request
  * @return Mage_Shipping_Model_Carrier_Abstract|Mage_Shipping_Model_Rate_Result_Error|boolean
  */
 public function proccessAdditionalValidation(Mage_Shipping_Model_Rate_Request $request)
 {
     // zip code required for US
     $this->_isZipCodeRequired = $this->_isUSCountry($request->getDestCountryId());
     return parent::proccessAdditionalValidation($request);
 }
示例#3
0
 /**
  * Get Container Types, that could be customized for UPS carrier
  *
  * @return array
  */
 public function getCustomizableContainerTypes()
 {
     $result = array();
     $containerTypes = $this->getCode('container');
     foreach (parent::getCustomizableContainerTypes() as $containerType) {
         $result[$containerType] = $containerTypes[$containerType];
     }
     return $result;
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->_shipServiceWsdl = Mage::getModuleDir('etc', 'Mage_Usa') . DS . 'wsdl' . DS . 'FedEx' . DS . 'ShipService_v9.wsdl';
     $this->_rateServiceWsdl = Mage::getModuleDir('etc', 'Mage_Usa') . DS . 'wsdl' . DS . 'FedEx' . DS . 'RateService_v9.wsdl';
 }