VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ronin75 on November 15, 2011, 21:57:08 PM

Title: currency converter
Post by: ronin75 on November 15, 2011, 21:57:08 PM
good day
i am from South Africa. PayPal unfortunately does not yet accept the ZAR which leaves us with somewhat of  a frustration when it comes  to payment processing. i have joomla 1.7.2 with virtuemart 1.9.8M. the currency converter is converting the pricing from ZAR to USD, but it pulls the ZAR amount with a $ dollar sign through when proceeding to the paypal site.how do i prevent  it from doing this and just usee the converted amount?

kind rergards

Title: Re: currency converter
Post by: Milbo on November 15, 2011, 22:52:41 PM
Edit the currency
Title: Re: currency converter
Post by: jameel on November 20, 2011, 17:43:32 PM
solution to your problem is here

http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=19

but this module is for virtuemart 1.1.x, tested on almost all versions of VM. it let you set 98 currencies in the store and convert them into any paypal supported currency of your choice..
Title: Re: currency converter
Post by: ronin75 on November 21, 2011, 19:31:15 PM
At Milbo, thank you for your reply but editing the currency is not a viable option as it would mean that everytime the exchange rate changes the shop prices has to be manually changed. At Jameel, thank you for your reply. i will have to find out if it will work in VM2...
Title: Re: currency converter
Post by: Milbo on November 24, 2011, 02:09:35 AM
it is the right solution ronin, just create a new currency,.. for exampel USD 24.11.11 with the exchange rate of today. you can also add gold or other currencies.
Title: Re: currency converter
Post by: ronin75 on November 25, 2011, 08:41:25 AM
does that mean i must create a currency for each and every day?
Title: Re: currency converter
Post by: Milbo on November 25, 2011, 13:25:32 PM
No,
When you enter something, then it is fixed, when you enter 0 it tries to use the xml from the bank, when this is also empty it is set to 1.

Everything in VM2 is calculated this way: item currencies => Convert to shop currency = result => convert to viewer currency.

So when paypal gets $ and not the symbol of ZAR, then the format of Zar is assumingly wrong stored. So edit your ZAR and you may export this, so that we can update our value with the right symbol.

When this not helps, than we have a small bug in the paypal plugin
Title: Re: currency converter
Post by: ronin75 on December 01, 2011, 17:20:15 PM
hi MIlbo
i have created the new currency with the exchange rate of the day. i have set it as the default currency for the shop. the new currency is in USD, my shop prices are in ZAR.
when entering the shop it does not pick up any prices.
Title: Re: currency converter
Post by: Milbo on December 01, 2011, 17:43:45 PM
I need to see your installation
Title: Re: currency converter
Post by: ronin75 on December 06, 2011, 21:41:08 PM
Hi Milbo can i pm it to you?
Title: Re: currency converter
Post by: alatak on December 09, 2011, 12:18:46 PM
hi,

Quotei am from South Africa. PayPal unfortunately does not yet accept the ZAR which leaves us with somewhat of  a frustration when it comes  to payment processing. i have joomla 1.7.2 with virtuemart 1.9.8M. the currency converter is converting the pricing from ZAR to USD, but it pulls the ZAR amount with a $ dollar sign through when proceeding to the paypal site.how do i prevent  it from doing this and just usee the converted amount?

We are working on that now.
In the paypal payment there will be the accepted currencies for the payment (Paypal for you).
But in your case what shall i do, send the amount in the ZAR currency to Paypal and paypal does the convertion, or send the amount in USD according t the bank exchange rate that VM has.

Because i have notice that the exchange rate that VM gets is not exactly the same as the one used by Paypal.
Title: Re: currency converter
Post by: alatak on December 10, 2011, 01:52:27 AM
Hi,

we have added a payment currency in the payment plugin.
Now you can have your shop displaying in ZAR, and pay via paypal in USD.
Title: Re: currency converter
Post by: ronin75 on December 29, 2011, 17:04:33 PM
thank you alatak
i didnt see this post until now. my apologies. was using an offline payment but will try this out...
Title: Re: currency converter
Post by: ronin75 on January 02, 2012, 22:17:49 PM
alatak i have made my shop currency ZAR and accepted currency USD. In the payment method(paypal) I have set the currency to USD. I have also installed the default virtuemart currency converter to convert from ZAR to USD. however i still get the "recipient does not accept payment in ZAR" from Paypal. both the standard payment plugin and paypal plugin has been set to publish. am i missing something?
Title: Re: currency converter
Post by: alatak on January 03, 2012, 16:31:13 PM
Hi,

Can you send me your web site URL ?
Title: Re: currency converter
Post by: alatak on January 11, 2012, 08:46:50 AM
Hi,

to solve the problem, please go in the file
administrator/components/com_virtuemart/helpers/vmpsplugin.php
and to to the line 801
replace this line (first line of the function getPaymentCurrency()
if (!isset($method->payment_currency) or !empty($method->payment_currency) or (!$method->payment_currency)) {
with this
if (!isset($method->payment_currency) AND !empty($method->payment_currency) AND (!$method->payment_currency)) {

Title: Re: currency converter
Post by: weerasekara on January 12, 2012, 04:39:43 AM
 :) hi
thanks alatak

But you mention vmpsplugun.php file path is

administrator/components/com_virtuemart/helpers/vmpsplugin.php
and to to the line 801 replace this line (first line of the function getPaymentCurrency()
Code: [Select]
if (!isset($method->payment_currency) or !empty($method->payment_currency) or (!$method->payment_currency)) {
with this
Code: [Select]
if (!isset($method->payment_currency) AND !empty($method->payment_currency) AND (!$method->payment_currency)) {

i'm using joomla 1.7 with virteumatr 2.0.0, i can't find vmpsplugin.php file in "administrator/components/com_virtuemart/helpers" it's not there

but i found it on
administrator/components/com_virtuemart/plugin and line 772 i change it to

Code: [Select]
if (!isset($method->payment_currency) AND !empty($method->payment_currency) AND (!$method->payment_currency)) {

it's working find.

Pls correct me if i am wrong.......

thanks...

[attachment cleanup by admin]
Title: Re: currency converter
Post by: jameel on May 17, 2012, 18:24:22 PM
altimate solution for you is
Paypal extended payment module for non supported currencies
http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=19

it let you use 98 currencies in your favorite virtuemart..
this module convert non supported paypal currencies into paypal supported currency (you choose it in the backend)...
Title: Re: currency converter
Post by: David Kan on January 12, 2013, 05:04:51 AM
This can be your perfect solution: http://forum.virtuemart.net/index.php?topic=111947.0
Title: Re: currency converter
Post by: Milbo on January 12, 2013, 20:45:44 PM
Jameel, this is natively already in vm2. You can use Zar in the whole shop and in the checkout you see the amount in $ for paypal.

Of course you may have done it easier to maintain and things like this.