Skip to content

Cart Sales Rule with negated condition over special_price does not work for configurable products #14020

Closed
@Filipe-Bicho

Description

@Filipe-Bicho

Preconditions

  1. magento 2.2.3
  2. php 7.1.10
  3. mariadb 10.1.24

Steps to reproduce

  1. Setup vanilla 2.2.3 with demodata (or use a similar existing store)
  2. Enable the special_price for promo rule conditions:
    1. Stores > Attributes > Product
    2. Search for and edit special_price
    3. Storefront Properties: Use for Promo Rule Conditions: Yes
    4. Save
  3. create new cart sales rule:
    1. Marketing > Cart Price Rules
    2. Add New Rule:
      1. Rule name = "Special Price Test"
      2. Website: select all
      3. Customer Groups: select all
      4. Coupon: "Specific Coupon"
      5. Coupon Code: "special"
      6. Actions: Discount Amount: "10"
      7. Actions: Apply the rule only to cart items matching the following conditions: "if ALL of these conditions are FALSE": "Special Price greater than 0.01"
      8. Leave all other fields to their defaults and save
  4. In the front end, add a the child product of a configurable product to the cart, such that the child product has a special price set. This product should be the only one in the cart.
  5. "View and Edit Cart" > "Apply Discount Code": special

Expected result

  1. the coupon is not accepted with the message The coupon code "special" is not valid.
  2. no discount is applied

Actual result

  1. the coupon is accepted with the message You used coupon code "special".
  2. a discount is applied

The intention with the above mentioned sales rule is to exclude already discounted products from further discounting via a coupon code.

Metadata

Metadata

Assignees

Labels

Event: kiev-cdFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions