2013-08-25 115 views

回答

0

上fedex.com/us/developer/你会发现联邦快递开发商手册。关于费率服务,它为您的问题提供了解决方案。

RequestedShipment/Preferred Currency:可选字段 - 表示调用者请求在所有返回的货币值中使用的货币(可以选择时)。

 <xs:element name="PreferredCurrency" type="xs:string" minOccurs="0"> 
     <xs:annotation> 
      <xs:documentation>This attribute indicates the currency the caller requests to have used in all returned monetary values (when a choice is possible).</xs:documentation> 
     </xs:annotation> 
     </xs:element> 

附加信息:

检查应用程序/代码/核心/法师/ USA /型号/运输/电信/ Fedex.php。 magento显示shiiping费用的方式在该文件中定义。正如您所见,getcurrencycode由getxmlquote调用以显示货币。另一方面在该文件版本1.7不显示您需要IDR的货币。检查是否已IDR在您的商店定义IDR添加到下面的数组:

public function getCurrencyCode() 
    { 
     $codes = array(
      'DOP' => 'RDD', // Dominican Peso 
      'XCD' => 'ECD', // Caribbean Dollars 
      'ARS' => 'ARN', // Argentina Peso 
      'SGD' => 'SID', // Singapore Dollars 
      'KRW' => 'WON', // South Korea Won 
      'JMD' => 'JAD', // Jamaican Dollars 
      'CHF' => 'SFR', // Swiss Francs 
      'JPY' => 'JYE', // Japanese Yen 
      'KWD' => 'KUD', // Kuwaiti Dinars 
      'GBP' => 'UKL', // British Pounds 
      'AED' => 'DHS', // UAE Dirhams 
      'MXN' => 'NMP', // Mexican Pesos 
      'UYU' => 'UYP', // Uruguay New Pesos 
      'CLP' => 'CHP', // Chilean Pesos 
      'TWD' => 'NTD', // New Taiwan Dollars 
     ); 
     $currencyCode = Mage::app()->getStore()->getBaseCurrencyCode(); 
     return isset($codes[$currencyCode]) ? $codes[$currencyCode] : $currencyCode; 
    } 

更准确地说,你有一个数组中,以检查是否像IDR转换到IDN是neccesary。我专注于这个解决方案,因为迄今为止,我检查magento时报价显示基本货币,因此一些配置文件中必须缺少运输。 希望它有帮助。

+1

那么,我该怎么做? – adisPaul

+0

检查附加信息@adisPaul –