Magento Paypal 与基础货币 INR 的问题

2021-12-29 00:00:00 php magento paypal

在 Magento 中有什么方法可以将 Paypal 与基础货币 INR 集成在一起吗?我尝试了以下解决方案

Is there any way in Magento where I can integrate Paypal with base currency INR? I have tried the following solutions

1) Inchoo

2) Magentocommerce

推荐答案

从此博客:

转到app/code/core/Mage/Paypal/Model/Config.php

Go to app/code/core/Mage/Paypal/Model/Config.php

更改此数组:

protected $_supportedCurrencyCodes = array('AUD', 'CAD', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MXN','NOK', 'NZD', 'PLN', 'GBP', 'SGD', 'SEK', 'CHF', 'USD', 'TWD', 'THB');

protected $_supportedCurrencyCodes = array('AUD', 'CAD', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MXN','NOK', 'NZD', 'PLN', 'GBP', 'SGD', 'SEK', 'CHF', 'USD', 'TWD', 'THB','INR');

转到app/code/core/Mage/Paypal/Model/Standard.php

Go to app/code/core/Mage/Paypal/Model/Standard.php

然后改变这个函数:

   公共函数canUseForCurrency($currencyCode){返回 $this->getConfig()->isCurrencyCodeSupported($currencyCode);}

   public function canUseForCurrency($currencyCode) { return $this->getConfig()->isCurrencyCodeSupported($currencyCode); }

   公共函数canUseForCurrency($currencyCode){if($currencyCode == 'INR'){$currencyCode = '美元';}返回 $this->getConfig()->isCurrencyCodeSupported($currencyCode);}

   public function canUseForCurrency($currencyCode) { if($currencyCode == 'INR') { $currencyCode = 'USD'; } return $this->getConfig()->isCurrencyCodeSupported($currencyCode); }

我还发现了一个付费扩展程序,MageOXY paypal 所有货币 确保解决问题.

I also found a paid extension, MageOXY paypal all currencies which assuring to solve the problem.

相关文章