Results 1 to 8 of 8
  1. #1

    Default ZC Getting Sums Wrong?

    Hi
    Still using 1.3.7 I'm afraid but I have noticed in the past that there is the occasional 1p adrift in the total price on the invoice which I always assumed was in the rounding and lived with it.
    But on this order it has failed to add VAT on one line, possibly due to its low value, but even then it doesn't account for the error in the total price.



    The 'Total (inc)' on line 3 should be £0.58, but the overall total should be £9.97.

    Where and why does ZC get it wrong?

    Thanks
    Pa

  2. #2

    Default Re: ZC Getting Sums Wrong?

    Just had another order with the total value a penny out.
    Can someone at least point me to the php script that does the calculations so that I can attempt to work out whats going on?
    Thanks
    Pa

  3. #3

    Default Re: ZC Getting Sums Wrong?

    So I'm on my own with this one?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: ZC Getting Sums Wrong?

    I believe most of this starts in includes/classes/shopping_cart.php...
    I do not have to use VAT & have never searched for it so this may or may not be there???
    You should also check includes/modules/order_total

  5. #5

    Default Re: ZC Getting Sums Wrong?

    Thanks for the response Kobra.

    Done some searching around this forum and it seems like I'm not alone and this problem was reported months ago, affects lots of users, but sadly, no signs of a 'clean' fix yet.

    The 'dirty' fix is to increase currency decimal places to 3 (or more?), but then the extra places show in the checkout, invoice etc. etc.

    Hmmm .....

  6. #6
    Join Date
    Oct 2008
    Posts
    85
    Plugin Contributions
    0

    help question Re: ZC Getting Sums Wrong?

    i have the same issue after i have quantity discounts installed

    have you found a solution ?

  7. #7
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: ZC Getting Sums Wrong?

    I stand to be corrected on this but I understand the issue relates to this:

    ZC calculates tax (rounded) on each individual item, then SUMS the total.

    This is compliant with USA accounting principles.

    In the UK and EU, tax is generally calculated on the total of the PRE-TAX amount - so, the UK/EU adds up the pre-tax amounts, gets a sub-total, then calculates the tax, and adds this to the pre-tax sub-total to get the grand total.

    ... all the while ZC calculates tax FIRST on individual items (rounded), rather than on the pre-tax total of all items, UK/EU users of ZC will get discrepancies...

  8. #8
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    407
    Plugin Contributions
    6

    Default Re: ZC Getting Sums Wrong?

    It not only for a taxed amount where the the 0.01 error occurs.

    Here is an example of the sub total + the postage = the total - 0.01

    Zen Cart v 1.3.7
    Attached Images Attached Images  

 

 

Similar Threads

  1. v139h symbols is wrong
    By Enpeek in forum Addon Language Packs
    Replies: 0
    Last Post: 10 Mar 2012, 12:51 PM
  2. Which file does the update cart sums?
    By plymgary1 in forum General Questions
    Replies: 1
    Last Post: 18 Jun 2009, 11:49 AM
  3. Replies: 3
    Last Post: 19 Aug 2008, 02:42 AM
  4. Need help... base href is getting set wrong
    By MCanes in forum General Questions
    Replies: 1
    Last Post: 23 Feb 2008, 05:45 AM
  5. Is this wrong, odd or am I doing something wrong?
    By Ryk in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 25 Jun 2007, 11:55 PM

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