-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog price rules with SKU using "not one of" and configurable products #39567
Comments
Hi @hsmusz. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @hsmusz, Thanks for your reporting and collaboration. We have tried to reproduce the issue in Latest 2.4-develop instance and we are able to reproduce the issue.Kindly refer the screenshots. The product excluded in the rule is still affected by the price change Hence Confirming the issue. Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13827 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue. |
Preconditions and environment
Magento version: 2.4.4
Scenario: we have a Configurable product with SKU: 0001-00-group and multiple volume variants of that product as simple products with SKU like 0001-10M, 0001-25M. We would like to add a catalog price rule for every product except for some of the SKUs like 0001-25M (we want to exclude only single variants manually)
Problem: when creating a catalog price rule, when we use SKU with "not one of", and we add
0001-25M,0002-25M
, the products are still affected by the price change, because the parent product (0001-00-group configurable) is matched with that rule, and expanded to every product it contains (due to code inaroundGetMatchingProductIds
inConfigurableProductHandler
fromMagento\CatalogRuleConfigurable\Plugin\CatalogRule\Model\Rule
)There is a code in that class that should allow matching products by products filters and exclude them from matched subProducts, but when we filter only by SKU, those are not excluded.
Steps to reproduce
Expected result
All products EXCEPT the provided SKU should be affected by the catalog price rule
Actual result
All products including the provided SKU are affected by the price rule, because the given SKU is a sub-product of a configurable product.
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: