VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: pcsma on May 21, 2009, 21:53:21 PM

Title: currency_code change in the system from MXP to MXN Mexican Pesos for Paypal
Post by: pcsma on May 21, 2009, 21:53:21 PM
Hi I am running Joomla 1.5 and VM 1.1.3 the VM cannot communicate with Paypal (get an error message) due to a difference in the currency_code. In the VM system is stated as MXP and Paypal accepts MXN (for Mexican New Pesos). I changed the code directly in the payment method code for paypal:


"currency_code" => $_SESSION['MXN'],

It works fine but I would like to change the code information in the root code but I can find the file. Does anybody know were can I find the file that holds the list of currency codes to change this?

Thanks
Fred
Title: Re: currency_code change in the system from MXP to MXN Mexican Pesos for Paypal
Post by: pcsma on May 22, 2009, 02:51:28 AM
...........
It needs to be changed at the Data Base jos_vm_currency` just go the the data base administration open the jos_vm_currency and change the value form MXP to MXN

good luck
Title: Re: currency_code change in the system from MXP to MXN Mexican Pesos for Paypal
Post by: ferbarber on January 16, 2010, 22:33:04 PM
This is a weird solution for VirtueMart 1.1.4, but it works:

1. Go to VirtueMart Component.
2. Select Admin>List Currencies.
3. Locate the entry "Mexican Peso".
4. Edit the entry to "Mexican Pesos" (in plural, without quotes) and code MXN.
5. Save your changes.

Everything should work fine!