Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

    Default Round errors when calculating prices

    Hi
    I'm running version 1.3.8a and have noticed a slight issue. After a customer has made a purchased, in the orders screen the totals for each line don't always add up to the total for the entire order. The total for the whole order tends to be right but there can sometimes be a penny difference. So for example in one order there are 3 lines, £10.50, £10.50 and £76.36. Now this adds up to £97.36 but the total is shown as £97.35 which actually is correct. The value of £76.36 is actually incorrect because of rounding when the vat is added. Has anyone else seen this behaviour and know how to stop it?
    Thanks
    James

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Round errors when calculating prices

    Known penny-differences, especially those caused by tax-included pricing issues, are fixed in v1.5.0
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Round errors when calculating prices

    Thanks, I'll upgrade and hopefully the rounding errors will go.
    Best regards
    James

 

 

Similar Threads

  1. Round prices to nearest dollar.
    By bestbridalprices in forum General Questions
    Replies: 2
    Last Post: 7 Oct 2010, 04:12 PM
  2. Can I round prices to the nearest 5 cents?
    By xeontranq in forum General Questions
    Replies: 0
    Last Post: 3 May 2010, 04:47 AM
  3. USPS Rounding Errors -- Should never round down
    By TraderDan in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 10 Aug 2009, 03:07 PM

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