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

    Default Order Total: Disc Coupon: Displayed numbers dont add up: Total is correct

    156C

    Didn't find anything in the BugReports that resembled this issue

    When using a discount coupon which only applies to shipping, ie:free shipping checkbox, shipping is zero'd so the display is incorrect but the total is correct.

    Subtotal: Correct
    Discount Coupon: Correct
    Shipping: Incorrect ie: changed to zero
    Sales Tax: Correct
    Total: Correct

    Since the Shipping has been changed to zero based upon the discount code, the numbers visually do not add correctly.
    Since only one discount coupon is allowed, and it is for free shipping, shouldn't the shipping value still show along with the discount code for that same amount... thus cancelling each other.

    I don't recall my previous version (zc154) removing the shipping amount or zeroing the shipping amount, so that the displayed math was correct.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Order Total: Disc Coupon: Displayed numbers dont add up: Total is correct

    Didn't make the deadline for edit

    Actually any discount coupon that includes free shipping causes the displayed math to be incorrect while maintaining the correct OT
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Order Total: Disc Coupon: Displayed numbers dont add up: Total is correct

    Rick, that calculation issue is due to the ordering you've got on the order_totals. Since you're offering coupons that provide free shipping, the ot_coupon's sort order should be higher than that of ot_shipping.

    The change in behavior was due to a bugfix (mea culpa) in the ot_shipping processing, where previous versions of that module were providing its cost and tax values without regard to its sort-order. In techo-babble terms, the module was performing its calculations when the class was instantiated instead of when asked to process.

    You, and other stores, that provide free-shipping type coupons can correct the behavior by ensuring that the sort-order for the ot_coupon's processing is higher than that of the ot_shipping one.

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

    Default Re: Order Total: Disc Coupon: Displayed numbers dont add up: Total is correct

    Quote Originally Posted by lat9 View Post
    Rick, that calculation issue is due to the ordering you've got on the order_totals. Since you're offering coupons that provide free shipping, the ot_coupon's sort order should be higher than that of ot_shipping.

    The change in behavior was due to a bugfix (mea culpa) in the ot_shipping processing, where previous versions of that module were providing its cost and tax values without regard to its sort-order. In techo-babble terms, the module was performing its calculations when the class was instantiated instead of when asked to process.

    You, and other stores, that provide free-shipping type coupons can correct the behavior by ensuring that the sort-order for the ot_coupon's processing is higher than that of the ot_shipping one.
    Thank you Cindy,

    I'll make the edit after coffee.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Order Total: Disc Coupon: Displayed numbers dont add up: Total is correct

    Quote Originally Posted by RixStix View Post
    Thank you Cindy,

    I'll make the edit after coffee.
    Totally understand; coffee's an important part of life!

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

    Default Re: Order Total: Disc Coupon: Displayed numbers dont add up: Total is correct

    Quote Originally Posted by lat9 View Post
    Rick, that calculation issue is due to the ordering you've got on the order_totals. Since you're offering coupons that provide free shipping, the ot_coupon's sort order should be higher than that of ot_shipping.

    The change in behavior was due to a bugfix (mea culpa) in the ot_shipping processing, where previous versions of that module were providing its cost and tax values without regard to its sort-order. In techo-babble terms, the module was performing its calculations when the class was instantiated instead of when asked to process.

    You, and other stores, that provide free-shipping type coupons can correct the behavior by ensuring that the sort-order for the ot_coupon's processing is higher than that of the ot_shipping one.
    THANK YOU. That looks much better & the numbers add correctly.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

 

 

Similar Threads

  1. v151 Attribute Controller Total|Disc
    By net3431 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 3 Jul 2014, 09:10 PM
  2. Sales Tax Shown Incorrectly But Total Correct After Coupon
    By gelenbaas in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Jul 2011, 07:18 PM
  3. Net order total after coupon
    By mmwilcox in forum Addon Payment Modules
    Replies: 0
    Last Post: 10 Feb 2011, 04:50 PM
  4. Order total wrong with coupon
    By magictom in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 26 Nov 2009, 03:58 AM
  5. Order Total Not Calculating Coupon
    By wardrobe911 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 31 Oct 2008, 10:13 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