Skip to content

Cart price rule has failed if use dropdown attribute #10477

Closed
@minosss

Description

@minosss

Preconditions

  1. magento ce 2.1.7 with sample data installed
  2. php 7.0.20
  3. MySQL 5.7

Steps to reproduce

  1. Create a new cart price rule
  2. Customer Groups select all
  3. Set Conditions

If total quantity greater than 2 for a subselection of items in cart matching ALL of these conditions:
-- Color is red

  1. set Actions

Apply: Percent of product price discount
Discount Amount: 10

  1. Save and Navigate to storefront as a guest
  2. Add 3 products with red color
  3. View cart and no discount

Test other attribute 8.11

  1. add new product attribute (text field type) eg: vendor
  2. add vendor to the default attribute set
  3. set vendor in product detail page. eg: addas
  4. update rule change color to vendor. eg: vendor is addas
  5. back to shopping cart and update
  6. it works

Expected result

buy a special color (red) and total greater than 2, have 10% discount

Actual result

no discount

screen shot 2017-08-12 at 00 59 59

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 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 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions