Magento Fedex运送方式货币 [英] Magento Fedex Shipping Method Currency

查看:103
本文介绍了Magento Fedex运送方式货币的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用基本货币的magento网站,显示的是IDR,但联邦快递的运费是按美元价格计算的.

I have magento site with base currency and display is IDR, but the Fedex shipping was calculated the USD price.

如何在IDR中设置Fedex显示货币?

How can I set the Fedex display currency in IDR?

任何帮助将不胜感激

谢谢

推荐答案

,您会找到fedex开发人员手册.有关费率服务的第36页,它为您的问题提供了解决方案.

on fedex.com/us/developer/ you will find the fedex developer manual. on page 36 for rate services it offers a solution for your question.

RequestedShipment/Preferred Currency:可选字段-指示呼叫者请求在所有返回的货币值中使用的货币(可能的话).

RequestedShipment/ Preferred Currency: optional field - indicates the currency the caller requests to have used in all returned monetary values (when a choice is possible).

      <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>

其他信息:

检查app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php.该文件中定义了magento显示运费的方式.如您所见,getxmlquote调用了getcurrencycode来显示货币.另一方面,该文件版本1.7中没有显示您需要IDR的货币.检查是否在商店中定义了IDR,并将IDR添加到以下数组:

check app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php . the way magento display shiiping costs is defined in that file. as you can see getcurrencycode is called by getxmlquote to display the currency. on the other hand in that file version 1.7 is not displaying the currency you need IDR. check if you have IDR defined in your store and IDR added to the following array:

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的转换,则必须检入该数组.我专注于此解决方案,因为到目前为止,我检查了magento在报价时显示基本货币,因此在配置文件中必须缺少某些内容才能进行运输. 希望对您有帮助.

more precisely, you have to check in that array if a conversion like IDR to IDN is neccesary. im focusing on this solution because as far i checked magento displays the base currency when quote, consequently something must be missing in config files for shipping. hope it helps.

这篇关于Magento Fedex运送方式货币的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆