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

    Default ot_coupon not calculated correctly unless it is lowest sort order of discounts

    zc156 and zc157
    php 7.3.20
    maria 10.3.23

    plugin related to issue
    ot_quantity_discount

    Unless ot_coupon is set to the lowest sort order in order total, ot_coupon value is not calculated correctly when ot_quantity_discount is triggered for a product in a category that is no associated with the ot_coupon parameters.

    Expectation is that discounts are calculated correctly regardless of their position in the sort order when above subtotal.

    Same issue regardless of OPC setting true/false

    https://www.zen-cart.com/showthread....-added-to-cart
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: ot_coupon not calculated correctly unless it is lowest sort order of discounts

    I have written some notes about this:

    https://www.thatsoftwareguy.com/zenc...resorting.html
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: ot_coupon not calculated correctly unless it is lowest sort order of discounts

    TNX for the link though those notes seem to be referencing sales tax calculations and not the discount coupon calculation.

    I can't make the notes match my example but if the short answer is to always put the built in coupon discount before anyone else's plugin if you want calculations to be made correctly, then I'll try to remember that.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

 

 

Similar Threads

  1. v155 Class 'ot_coupon' not found in includes/classes/order.php
    By delia in forum Upgrading to 1.5.x
    Replies: 9
    Last Post: 9 Jan 2019, 07:29 PM
  2. v139g shipping weight not being calculated correctly
    By greenman161 in forum Addon Shipping Modules
    Replies: 4
    Last Post: 13 Jul 2015, 12:11 AM
  3. Attribute's Sort Order not working correctly
    By Traxlerchic in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Apr 2011, 05:36 PM
  4. discounts are not being calculated correctly?
    By Rastabloke in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 6 Aug 2009, 08:14 PM
  5. Tax not being calculated correctly -- with tax-included pricing
    By nkrcs in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 11 Jun 2008, 07:54 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