-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
magento/magento2#39567: Catalog price rules with SKU using "not one of" and configurable products #39668
base: 2.4-develop
Are you sure you want to change the base?
magento/magento2#39567: Catalog price rules with SKU using "not one of" and configurable products #39668
Conversation
…nfigurable products
Hi @KrasnoshchokBohdan. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
…nfigurable products - changing Copyright
@magento run all tests |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @KrasnoshchokBohdan,
Thanks for the contribution!
It seems the build failures are due to PR changes. Please fix those failures and also please add an automated test in accordance to DOD.
Thanks
Thank you for your contribution! As you have marked this Pull Request as draft, moving this PR to On Hold. Please feel free to to move it to Open state once you done with the implementation and the review mentioned here. |
Description (*)
In situation with "not one of" condition in catalog rule, \Magento\CatalogRule\Model\Rule::getMatchingProductIds works ok and result array doesn't have excluded products, but as author of issue mentioned, plugin \Magento\CatalogRuleConfigurable\Plugin\CatalogRule\Model\Rule\ConfigurableProductHandler::aroundGetMatchingProductIds adds excluded products back to result array.
Related Pull Requests
--
Fixed Issues (if relevant)
Manual testing scenarios (*)
Before fix:
Products including the provided SKU are affected by the price rule, because the given SKU is a sub-product of a configurable product.
After fix:
Products except the provided SKU are affected by the catalog price rule.
Questions or comments
Contribution checklist (*)