Results 1 to 2 of 2

Thread: paypal issue using spanish translation

  1. #1
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default paypal issue using spanish translation

    A user had an issue with Paypal saying their payment could not be processed because of a formatting error. The following fix was provided by Fahrul (one of the programmers)

    -------------

    The problem is caused by localization to Spanish that use comma instead of dot.

    At the moment we can provide you a quick fix which may only work for your case.



    Edit /payment/paypal.php line 19



    <input type="hidden" name="amount" value="<?= $total; ?>">



    to :



    <input type="hidden" name="amount" value="<?= str_replace(",",".",$total); ?>">



    Thanks.

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If you require a comma instead of a decimal try the following

    <input type="hidden" name="amount" value="<?= str_replace(".",",",$total); ?>">

Similar Threads

  1. Paypal issue
    By ca$h in forum v5.x
    Replies: 19
    Last Post: 01-20-2008, 09:14 PM
  2. Spanish version?
    By Joemax in forum Pre-Sales Questions
    Replies: 4
    Last Post: 10-08-2006, 07:56 PM
  3. translated the Spanish?
    By afelix in forum Tutorials, Hints & Tips
    Replies: 4
    Last Post: 07-18-2006, 05:41 PM
  4. Translate for Spanish
    By livedev in forum v3.2
    Replies: 15
    Last Post: 04-28-2004, 10:50 AM
  5. Spanish sites - working for spanish ?
    By Frank71 in forum v5.x
    Replies: 1
    Last Post: 04-13-2004, 08:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •