Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default comma in order amount (moneybookers)

    hello I think the comma in orders over 1,000 euro are causing a problem for my moneybookers payment module.

    Does anyone know how I can get the order total to just be 1000 rather than 1,000?

    Thanks.

  2. #2
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: comma in order amount

    Quote Originally Posted by timdwyer42 View Post
    hello I think the comma in orders over 1,000 euro are causing a problem for my moneybookers payment module.

    Does anyone know how I can get the order total to just be 1000 rather than 1,000?

    Thanks.
    admin>localisation>currencies

    click edit on your currency
    then the thousand point..
    delete it

    "please feel free to amend my statement if incorrect"
    i may not know how yet, but i soon will....i hope :)

  3. #3
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: comma in order amount

    Thanks, that works for the comma not being displayed on the site, but the comma is still being passed on as the value in my moneybookers module :/

  4. #4
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: comma in order amount

    Quote Originally Posted by timdwyer42 View Post
    Thanks, that works for the comma not being displayed on the site, but the comma is still being passed on as the value in my moneybookers module :/
    not used moneybookers module. Id of thought it would get the price from zen cart, not use its own currency settings :S, il have to download it n have a look
    bear in mind, im a newbie with this webshop stuff lol
    i may not know how yet, but i soon will....i hope :)

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: comma in order amount

    This isn't specific to moneybookers, but DrByte's post might give you a place to look.

    http://www.zen-cart.com/forum/showthread.php?t=99618

  6. #6
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: comma in order amount (moneybookers)

    Thanks. At a guess this is the line causing the problem.

    Anyone know how this would be corrected?

    Code:
    $total_cost = number_format(($order->info['total']) * $currencies->get_value($mb_gway_currency), $currencies->get_decimal_places($mb_gway_currency));

    full php file is attached.
    Attached Files Attached Files
    Last edited by timdwyer42; 18 Jan 2010 at 11:04 PM.

  7. #7
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: comma in order amount (moneybookers)

    See capture360.net/index.php/topic,104.0.html

  8. #8
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: comma in order amount (moneybookers)

    Thanks alot man. After looking at the new module rather than replace the whole module ( I was getting blank pages )

    I just changed

    Code:
    $total_cost = number_format(($order->info['total']) * $currencies->get_value($mb_gway_currency), $currencies->get_decimal_places($mb_gway_currency));
    to this

    Code:
    $total_cost = number_format(($order->info['total']) * $currencies->get_value($mb_gway_currency), $currencies->get_decimal_places($mb_gway_currency), '.', '');
    and it seems to be working perfectly. Thanks again (and for creating the module in the first place).

 

 

Similar Threads

  1. Replies: 0
    Last Post: 13 Dec 2012, 11:36 AM
  2. v139h Minimum Order Amount
    By texpro in forum General Questions
    Replies: 8
    Last Post: 22 Jun 2012, 02:56 AM
  3. Paypal amount diff from order amount
    By mmwilcox in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Sep 2008, 08:45 PM
  4. Minimum Order Amount
    By msdave in forum Managing Customers and Orders
    Replies: 2
    Last Post: 6 Oct 2007, 12:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR