Don 10. Dez |
|
This is actually a major bug in the VirtueMart Paypal integration. In a multi-currency store the currency symbol is completely ignored by the Paypal payment module and is passed as the VirtueMart store default currency symbol I found this solution in the VirtueMart Forums. In a multicurrency VirtueMart store, even if you are checking out in a non-default currency the currency symbol passed is always the default currency symbol. From the backend of your Joomla installation go to Components-->VirtueMart then Store-->List Payment Methods. Click on the Paypal entry and go to the Configuration tab. Add the code below right at the top just after the opening php tag. $currencysymbol = "";and then find the line --> "currency_code" => $_SESSION['vendor_currency'],and change to --> "currency_code" => $currencysymbol,
|
| Zuletzt aktualisiert am Dienstag, 15. Dezember 2009 um 12:55 Uhr |
































If you bother to give a suggestion, make it as clear as possible
I had the same problem, but I have now fixed the Paypal script.
Use the following code:
$dbsi = new ps_DB;
$q_si = "SELECT order_currency FROM #__vm_orders ";
$q_si .= "WHERE #__vm_orders.order_id='$order_id'";
$dbsi->query($q_si);
$order_currency = $dbsi->f("order_currency");
then on the array, change the following code
"currency_code" => $order_currency,