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 Rule single product reindex works incorrectly #36049
Comments
Hi @Myroslava-Myroslava. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento give me 2.4-develop instance |
Hi @Myroslava-Myroslava. Thank you for your request. I'm working on Magento instance for you. |
@magento I am working on this |
Hi @Myroslava-Myroslava! 👋 |
Hi @Myroslava-Myroslava, here is your Magento Instance: https://fa8b3b63aea52a68f7ed73f34d55e11f.instances.magento-community.engineering |
@magento add to contributors team |
Hi @Myroslava-Myroslava! 👋 |
@magento I am working on this |
Hi @engcom-November. Thank you for working on this issue.
|
✅ Jira issue https://jira.corp.adobe.com/browse/AC-6810 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
Our internal team has started working on this. |
Hello, As I can see this issue got fixed in the scope of the internal Jira ticket AC-6810 by the internal team Based on the Jira ticket, the target version is 2.4.6. Thanks |
Preconditions and environment
Magento 2.4.3 , 2.4-develop
Magento multi store setup. 2 Websites (W1 and W2)
Create the the Product's Attribute (e.g. "Age Group") with the scope "website" and "Use for Promo Rule Conditions" set to "yes".
The Product assigned to both websites and having Attribute with option 1 for W1, and option 2 for W2 (e.g. "adults" for W1 and "children" for W2).
Steps to reproduce
Expected result
The rule is applied (the price is reindexed) to the product only for the websites for which the attribute has an option value matching the rule.
In our case:
The rule is applied (the discount is applied) to the Product on W1 and NOT applied on W2.
Actual result
The rule is applied to the product NOT taking into account the SCOPE chosen.
The rule takes the value of the attributes from the Product's edit page on which save event happens. And then the rule is applied or not applied (according to these values) to ALL websites.
In our case:
Additional information
The process is triggered in the \Magento\CatalogRule\Model\Indexer\IndexBuilder::reindexById. Inside, \Magento\CatalogRule\Model\Indexer\IndexBuilder::assignProductToRule applies the rule to all the websited, which is wrong
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: