Customer Groups select allConditionsIf total quantity greater than 2 for a subselection of items in cart matching ALL of these conditions:
-- Color is red
ActionsApply: Percent of product price discount
Discount Amount: 10
Test other attribute 8.11
buy a special color (red) and total greater than 2, have 10% discount
no discount

@minosss Thank you for your report.
If you want to report an issue please format this report according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result.
@vherasymenko are steps not clear from the screenshots?
@vherasymenko updated, and the cart price rule works if use text field attribute.

@minosss, thank you for your report.
We've created internal ticket(s) MAGETWO-80211 to track progress on the issue.
I'm working on it #SQUASHTOBERFEST
Hi @marinagociu could you please accept the invitation to magento/magento2 repository ?
Hi @okorshenko can you please assign the task to me? @minosss is the reporter.
Reassigned
Thanks @okorshenko!
What I found investigating the issue is that for products subselections only the items that are visible in cart are checked against the specified conditions.
In the case described by the reporter, a configurable product was added to cart, and the condition specified on the subselection was based on the color attribute.
The rule was not applied because the configurable product has no value for this attribute since it's the one used to create it. So, I believe, the condition should have been checked against the selected simple product.
I also found that the same happens with bundle products, the conditions specified on subselections will only be checked against the bundle products, and not against it's children.
Is this the correct behaviour, that the conditions should be checked against the children of the visible quote items too?
Also, if this is the case, then for bundle products it would make more sense to use the quantity or the amount on the children items in order to calculate the total on the subselection, is this correct?
Hi @marinagociu,
For configurable product option attributes need to be checked on both parent and child products with the priority to the child values.
For Bundle it depends on Bundle type.
I tested the scenario and found that only product sub-selection condition doesn't work properly with colors. Product attribute combination condition works correct.
Hi @tkacheva,
I also encountered this issue only for the sub-selection condition. I will add a PR with a proposed solution.
The issue has been fixed and delivered to 2.2-develop branch. Will be available with 2.2.2 release
Hi @minosss. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1289 by @magento-engcom-team in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming patch release.
Most helpful comment
@vherasymenko are steps not clear from the screenshots?