Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2008
    Posts
    115
    Plugin Contributions
    0

    Default Discounting rounding errors (Product Price Manager > Qty Discounts)

    ZC 1.3.8a

    We've run into an issue where ZC seems to be rounding discounts when we think they should not.

    Example where an item is set to give a (20% discount when purchasing 10 or more):

    50 widgets @ reg price of $1.24 = $.992 ea. after discount
    Total with discount = $49.60

    Yet Zen Cart Calculates this to a total of $49.50
    It appears that the discount applied to the per-item-price is rounded immediately to .99 rather than .992


    Anyone know how to fix this????

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discounting rounding errors (Product Price Manager > Qty Discounts)

    This is working in v1.3.9 where you would get the:
    50 widgets @ reg price of $1.24 = $.992 ea. after discount
    Total with discount = $49.60
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2008
    Posts
    115
    Plugin Contributions
    0

    Default Re: Discounting rounding errors (Product Price Manager > Qty Discounts)

    Do you know where/what file or files are involved that affects this calculation? Upgrading the entire cart from 1.3.8a to 1.3.9 is not entirely practical at the moment ...but if there is a simple code or function replacement where i can pull it from 1.3.9 and paste it into 1.3.8, that'd be cool for the moment.

    If you or someone could point me in the right direction of the affected files (if doing this is possible), that would be greatly appreciated!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discounting rounding errors (Product Price Manager > Qty Discounts)

    Off the top of my head, no ...

    I was looking to see if that difference might have been posted separately as a fix but there were a number of changes to pricing, discounts etc. and it is difficult to mark it as just one thing to be fixed ...

    You can try downloading a clean v1.3.8 and a clean v1.3.9 and try doing a compare but by the time you figured it out, you might as well upgrade ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Oct 2008
    Location
    Singapore
    Posts
    23
    Plugin Contributions
    0

    Default Re: Discounting rounding errors (Product Price Manager > Qty Discounts)

    Hi Ajeh,
    Do you know which file is the one that we need to change to effect this change?

    I have the same issue, and although i upgraded, the issue does not seem to be solved.

    Is it in includes/classes/shopping_cart.php?

    Henry

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discounting rounding errors (Product Price Manager > Qty Discounts)

    There are so many differences between v1.3.8 and v1.3.9 that affect prices that I really haven't the time to hunt down the change(s) needed to fix this ...

    I'd say upgrading would be faster ...

    You might try a test install of the current version of Zen Cart from our Home page, in a test directory with a test database, and enter a few products that you are currently having issues with and test this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replies: 8
    Last Post: 26 Feb 2016, 11:58 PM
  2. v154 "Qty Discounts Off Price" on Product page only displays one row of discounts
    By Zean in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 23 Feb 2016, 06:52 AM
  3. Copy Product Price Manager Discounts
    By JeffTew in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Sep 2010, 02:53 PM
  4. Product Price Manager: Applying Qty Discounts dilemma
    By datatv in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 20 Jun 2008, 03:59 PM
  5. Product Price Manager - Qty Discount - Preview
    By andrabr in forum Bug Reports
    Replies: 9
    Last Post: 14 Feb 2007, 02:51 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