Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,236
    Plugin Contributions
    20

    Default Rounding error with Quantity Discount

    This has probably been asked & answered before, but I've not been able to track it down

    The quantity discount gives a price of £2.655 which rounds to a unit price of £2.66 in the cart, but the quantity of 10 calculates (correctly) to a line total of £26.55

    At Checkout, the line total also displays as £26.55, but the sub-total displays as £26.60 i.e. 10 times the rounded price.

    How do I resolve this (or a pointer to a previous answer would be good)?
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,236
    Plugin Contributions
    20

    Default Re: Rounding error with Quantity Discount

    My solution to this was to use an actual price rather than a percentage discount. The calculations are then as expected.

    However, as the store owner has rightly pointed out, this means a lot of work when prices are changed generally across the store...so the original problem still stands, so still after suggestions for a fix.
    Last edited by Ryk; 30 Sep 2008 at 03:01 PM.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  3. #3
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    Plugin Contributions
    0

    Default Re: Rounding error with Quantity Discount

    The author of the contribution edited it for me so that the rounding was more precise. You will have to contact Scott if you want him to do that for you. It's only an issue if you are selling large quantities (>25)
    http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,236
    Plugin Contributions
    20

    Default Re: Rounding error with Quantity Discount

    This is not Scott's contribution - this is normal ZC (perhaps I should have put the title as "quantity discounts")
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

 

 

Similar Threads

  1. v150 [OPEN CHANGE-323]rounding error with attributes and salemaker
    By lankeeyankee in forum Bug Reports
    Replies: 9
    Last Post: 4 Jan 2013, 06:30 PM
  2. Quantity Discount Price rounding
    By mmwilcox in forum General Questions
    Replies: 7
    Last Post: 24 Jun 2011, 10:35 PM
  3. Replies: 19
    Last Post: 18 Nov 2009, 10:10 AM
  4. Quantity Total in Shopping Cart Sidebox with Quantity Discount Contribution
    By maineiac13 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 14 Oct 2008, 08:40 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