-
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
bugfix: fix cartFix rules incorrect discount ammount #39231
bugfix: fix cartFix rules incorrect discount ammount #39231
Conversation
- Add init totals into foreach rules loop to allow for total calculation after each rules apply on Discount.php - remove logic for adding item discount to address base discount on Discount.php - on CartFixed.php now use validator to calculate current valid items total discount for rule on proporcional discount calculation. refs: magento#38694
Hi @joacols. 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 |
failed tests have nothing to do with my code |
Hi @joacols, Thank you for your contribution! The Magento core engineering team is working on the issue which you have addressed in this PR. Team will cherry pick the commits from your PR and may do further implementation to cover few more scenarios as needed. We will reach out to you if we need more information. For now, you can pause work on this PR. Thank you once again! |
Hello, As I can see this issue got fixed in the scope of the internal Jira ticket ACP2E-3349 by the internal team Based on the Jira ticket, the target version is 2.4.8-beta2. Thanks |
Hi, |
Add init totals into foreach rules loop to allow for total calculation after each rules apply on Discount.php
remove logic for adding item discount to address base discount on Discount.php
on CartFixed.php now use validator to calculate current valid items total discount for rule on proporcional discount calculation.
refs: #38694
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
i tested this on my project with my own integration tests. is there a simple way of seting up this github environment?
a one liner setup would be excelent if there is none but i dont have the time to set it up right now.
Contribution checklist (*)