web design, England, Britain, UK, belgium
 

Wrong currency symbol shown in VirtueMart Paypal checkout - Joomla & VirtueMart Tips & How To's

Wrong currency symbol shown in VirtueMart Paypal checkout. How to fix the wrong currency symbol in the VirtueMart 1.1 Paypal checkout.

Home Joomla VirtueMart Tips Wrong currency symbol shown in VirtueMart Paypal checkout

Thu

10

Dec

Wrong currency symbol shown in VirtueMart Paypal checkout
  • VirtueMart 1.1

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.



Joomla VirtueMart Euro Order Joomla VirtueMart Paypal Order Currency Symbol


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 = "";
if ($_SESSION['product_currency'] == "EUR" )
{
$currencysymbol = "EUR";
}
elseif ($_SESSION['product_currency'] == "GBP" )
{
$currencysymbol = "GBP";
}
else
{$currencysymbol = "USD";}
and then find the line -->
"currency_code" => $_SESSION['vendor_currency'],
and change to -->
"currency_code" => $currencysymbol,


Joomla VirtueMart Paypal Order Correct Currency
Last Updated on Tuesday, 15 December 2009 12:55
 
VirtueMart
Your Cart is currently empty.



Wrong currency symbol shown in VirtueMart Paypal checkout|Joomla & VirtueMart Tips & How To's



Wrong currency symbol shown in VirtueMart Paypal checkout. How to fix the wrong currency symbol in the VirtueMart 1.1 Paypal checkout.


currency, virtuemart, currencysymbol, store, symbol, default, paypal, code, session, passed, product, payment, eur, gbp, change, vendor, add, tab, right, configuration, php, usd, elseif, line, tag, entry, opening, joomla, completely, ignored, module, multi, integration, actually, major, bug, solution, forums, components, list

|

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.