• Resolved 650mb

    (@650mb)


    When I apply several coupons (by activating the “Calculate coupon discounts sequentially” option) the cart calculates the discounts (as a percentage) starting from the smallest coupon. In any order of insertion of coupons, the calculation is always from lowest to highest.

    I would like to change the sorting method, starting from the highest coupon. (Or even other sorting methods.)

    I know that the final result doesn’t change in every case, but shop customers are often disoriented because in the shopping cart the coupon display order is different from the calculation order.

    Is there any way to change this default behavior?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I was checking on my testing site that is using WooCommerce and Storefront and coupons will be displayed as they are added at checkout page:

    I found similar articles in Stackoverflow that might point you in the right direction, please check (Please note they are workarounds that use custom code):

    I hope this helps.

    Thread Starter 650mb

    (@650mb)

    The problem is not the order in which the coupons are displayed. This is fine.

    Try selecting the “Calculate coupon discounts sequentially” option on the settings page.

    Then apply two coupons as a percentage, of different values. At this point observe the value of the discount, you will notice that whatever order is that of the coupons the discount always starts from the lowest one.

    Saif

    (@babylon1999)

    Hello @650mb,

    The problem is not the order in which the coupons are displayed. This is fine.

    Please correct me if I’m wrong but I believe mathematically speaking, there is no difference as it’s a percentage discount.

    Take this example with a 30 and 20 per cent discount.

    If you apply the 30% discount first, and then the 20% discount, the final price would be calculated as follows:

    • First, apply the 30% discount: 100 – (30% of 100) = 70
    • Then, apply the 20% discount to the discounted price: 70 – (20% of 70) = 56

    So the final price after both discounts would be $56.

    If you apply the 20% discount first, and then the 30% discount, the final price would be:

    • First, apply the 20% discount: 100 – (20% of 100) = 80
    • Then, apply the 30% discount to the discounted price: 80 – (30% of 80) = 56

    So the final price after both discounts would still be $56.

    Please let us know if there’s more to this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Coupon calculation sorting’ is closed to new replies.