Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Currency and Localization


danjelbulgari

Recommended Posts

I was using osC to change my currencies for my online store, when I came across the strangest problem, and would very much appreciate any help that I can achieve on this matter. I have PayPal and Paymate as two forms of payment available on my site, and I have both the USD and AUD currencies for payment processing. PayPal and Paymate are pretty much the same, with the notice that one is Australian and the other American.

 

When I select the AUD currency, and process the payment on Paymate, it goes through fine, but if I try to process the currency USD on Paymate, it transacts it through the checkout as AUD, and doesn't convert it with the currencies that I have setup in my localization.

 

This however, does not apply when I use AUD for PayPal payments, as PayPal will convert it using the exchange rates that I set myself. When I use the YowCow transaction method, and I have selected the USD currency, it will process fine, but if AUD is selected for the price of items, then it will use whatever AUD price comes up at checkout, except it will process that figure as USD instead, and thus charge my customers extra?

 

When I tried to update my currencies with the "update currency" button, I received the following;

 

Warning: file(http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=EUR&format=CSV&dest=Get+Table&sel_list=AUD): failed to open stream: Connection refused in /home/damidvds/public_html/admin/includes/functions/localization.php on line 14

 

Warning: implode(): Bad arguments. in /home/damidvds/public_html/admin/includes/functions/localization.php on line 18

 

Warning: file(http://www.xe.net/ucc/convert.cgi?Amount=1&From=AUD&To=EUR): failed to open stream: Connection refused in /home/damidvds/public_html/admin/includes/functions/localization.php on line 28

 

Warning: implode(): Bad arguments. in /home/damidvds/public_html/admin/includes/functions/localization.php on line 32

 

Warning: file(http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=USD&format=CSV&dest=Get+Table&sel_list=AUD): failed to open stream: Connection refused in /home/damidvds/public_html/admin/includes/functions/localization.php on line 14

 

Warning: implode(): Bad arguments. in /home/damidvds/public_html/admin/includes/functions/localization.php on line 18

 

Warning: file(http://www.xe.net/ucc/convert.cgi?Amount=1&From=AUD&To=USD): failed to open stream: Connection refused in /home/damidvds/public_html/admin/includes/functions/localization.php on line 28

 

Warning: implode(): Bad arguments. in /home/damidvds/public_html/admin/includes/functions/localization.php on line 32

 

Can anyone please tell me what's going on here? My email address is: [email protected], and I woul greatly appreciate the assistance. I am at my computer for almost 15 hours of the day trying to get my site up and working, and this presently is one of my major concerns.

 

-Danjel

Link to comment
Share on other sites

OK - I think I have a fix for the AUD/USD problem but I need more people to help test and confirm.

 

It appears the module is not passing the "currency" variable to Paymate.

 

Find line 105 in \includes\modules\payment\paymate.php

tep_draw_hidden_field('regindi_pcode', $order->billing['postcode']) .

 

ADD this new line after it

 

tep_draw_hidden_field('currency', $my_currency) .

 

This has worked on my system. but obviously always safer to test a bit more thoroughly first....

 

I will post this as an update to the contribution once someone else can confirm it fixes the issue.

 

Thanks

 

Bing

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...