在 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.
这篇关于Magento Paypal 与基础货币 INR 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!