Skip to content

Wrong discount calculation when using multiple fixed discount cart rules #32964

Closed
@tiagosampaio

Description

@tiagosampaio

Preconditions (*)

  1. I believe that this happens to any Magento version but I'm using 2.3.7 Commerce Edition currently
  2. Create two products with the base price of $19.00 each. Both products must be available to be purchased in the front store.
  3. Create two cart discount rules
  4. The first cart rule will apply a fixed discount amount of $10.00 to the whole cart. Define a specific coupon code to activate this rule in the shopping cart
  5. The second cart rule will apply a fixed discount amount of $18.00 to only one of the products in the cart. This cart rule must be applied automatically to the customer's cart
  6. Both cart rules must be active

Steps to reproduce (*)

  1. Go to the front store and add the two products in the cart, each one with the price of $19.00 (total $38.00)
  2. Go to the cart
  3. You should be able to see the second rule already applied and a discount of $18.00 must be visible.
  4. In the shopping cart, apply the coupon code to activate the fixed $10.00 discount rule in the cart.
  5. You'll be able to see the total discount applied is $24.00 while it should be $28.00
  6. The cart total is shown as $14.00 but the correct value should be $10.00

Expected result (*)

  1. The discount amount should be $28.00 in total.

Actual result (*)

  1. Only a $24.00 discount is applied.

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Component: SalesRuleIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions