Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Oct 24, 2017 4:07 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PAYPAL NOT UPDATING BALANCE IN SPANISH LANGUAGE, ENGLISH OK
PostPosted: Wed Jun 16, 2010 5:54 am 
Offline

Joined: Mon Jan 18, 2010 7:34 am
Posts: 4
PAYPAL NOT UPDATING BALANCE WHEN CUSTOMER USE THE SPANISH VERSION OF GUI, ENGLISH OK, ANY IDEA?


Top
 Profile  
 
 Post subject: Re: PAYPAL NOT UPDATING BALANCE IN SPANISH LANGUAGE, ENGLISH OK
PostPosted: Tue Jun 22, 2010 9:04 am 
Offline

Joined: Tue Jun 22, 2010 8:37 am
Posts: 1
Location: Marbella, Spain
Hi,
I'm using version 1.6.0 and was experiencing the same problem with spanish and german language.
It seems the problem is caused by the amounts being shown and managed in the user locale, that is, in spanish and german, comma (,) is used for decimal separator while in english dot (.) is used.

I have made a couple of modifications to customer/checkout_confirmation.php file and now seems to work fine (only one day working with these modifications):

Replaced line:
$amount_string=sprintf("%.3f",$total_amount);
by:
$amount_string=sprintf("%.3F",$total_amount);

Replaced line:
$order = new order($total_amount);
by:
$order = new order($amount_string);

Note that f format modifier is locale aware while F isn't, so amounts are now generated with "." as decimal separator independently of the locale selected.


Top
 Profile  
 
 Post subject: Re: PAYPAL NOT UPDATING BALANCE IN SPANISH LANGUAGE, ENGLISH OK
PostPosted: Sat Apr 09, 2011 5:16 am 
Offline

Joined: Fri Jan 28, 2011 4:46 pm
Posts: 2
I've been struggling with this issue for a week and as I support English and Spanish on my site, it looked like some random bug. Clients complaining for their money once in a while!!! Finally I traced it line by line till I got it, replaced:

$amount_string=sprintf("%.3f",$total_amount);
by:
$amount_string=number_format($total_amount, 3, '.', '');


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group