Skip to content

Cart Price Rule discount not working with exclude sku condition #40503

@Hermione011

Description

@Hermione011

Preconditions and environment

Reproducible in 2.4.8, 2.4.7

Steps to reproduce

Create the following Cart Price Rule:

Conditions:

  • Subtotal greater than or equal to 31
  • If an item is FOUND in the cart with ALL of the following conditions:
    SKU is not 24-MB03

Actions:

  • SKU is not 24-MB03

Steps to Reproduce

  1. Add product 24-MB03 to the cart
  • Price: 38.00
  • Result: Discount is not applied (expected behavior, as this SKU is excluded).
  1. Add another product 24-MB01 to the cart
  • Price: 30.00

Expected result

  • The discount should not be applied, because the subtotal of eligible items only (excluding SKU 24-MB03) is 30.00, which is below the minimum threshold of 31.
  • The excluded item 24-MB03 should not be counted toward the subtotal used to evaluate the rule conditions.
Image

Actual result

  • The discount is applied after adding product 24-MB01.
  • The rule appears to be triggered based on the cart subtotal, which includes the price of the excluded SKU 24-MB03.
  • After placing the order, the discount is applied only to SKU 24-MB01.
Image

Additional information

No response

Release note

No response

Triage and priority

  • 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

No one assigned

    Labels

    Area: Cart & CheckoutComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.8Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions