Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Order Total Calculation Order

    I would have bet that the question has been asked & answered but I couldn't find it either with the forum search or google search.

    Zencart 1.5.3

    My assumption based upon older zencart documents was that order total "Sort order" affected the actual sequence in which calculations are performed. ie: any sort order less than the Sub-Total sort order would be performed and the SubTotal would be based upon the outcome of that calculation.

    Instead, the values are being displayed on the invoice in the order specified by "sort order" but the calculations are not performed in that order.

    Discount coupon: 80
    Quantity discount: 90
    Sub-Total: 100
    Shipping: 200
    Tax: 300
    Store Credit: 840
    Total: 999
    ===========================
    Actual Customer order/invoice

    Quantity Discount: -$2.57####(USD)
    Discount Coupon: 14turkey : -$21.39####(USD)
    Sub-Total: $343.37####(USD)
    Free Shipping Options (Free Shipping): $0.00####(USD)
    Total: $319.41####(USD)
    ======================================

    Based upon the sort orders, my expectation is that the figures printed should have been:

    Quantity Discount: -$2.57####(USD)
    Discount Coupon: 14turkey : -$21.39####(USD)
    Sub-Total: $319.41####(USD)
    Free Shipping Options (Free Shipping): $0.00####(USD)
    Total: $319.41####(USD)
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Order Total Calculation Order

    I believe that your assumption is true regarding the calculation order, with the provision that the quantity-discount and coupon processing should have a sort-order higher than the subtotal since they count on the subtotal to perform their calculations. Additionally, the coupon sort-order should be after the shipping calculation if you have coupons that provide "free shipping".

 

 

Similar Threads

  1. Email Order Confirmation - Total Order all on one line
    By abaco in forum General Questions
    Replies: 3
    Last Post: 30 Jul 2015, 12:39 PM
  2. v151 including shipping costs to order total for VAT calculation and incorrect VAT
    By McLovin in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 9 Nov 2014, 12:31 PM
  3. Order Total Calculation Error (Group Discount)
    By Jace in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 9 Mar 2011, 06:51 AM
  4. Order Total Calculation Error (Group Discount)
    By Jace in forum General Questions
    Replies: 4
    Last Post: 10 Dec 2010, 02:12 PM
  5. How to change sort order formation in order total page?
    By saman in forum General Questions
    Replies: 3
    Last Post: 26 Nov 2007, 12:53 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