-
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
Cart Price Rules not applying on shipping VAT when rule applied on whole cart #32468
Comments
Hi @Romz. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 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, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Oscar. Thank you for working on this issue.
|
Hi @Romz ! Thank you for your report. Unfortunately, we are not able to reproduce the issue on a fresh 2.4-develop by following steps from this ticket. Steps to reproduce (*)
Actual Result: ✔️ Please recheck - may be you missed some details in issue description. |
I found out that the issue is before the checkout step. Here the steps to reproduce.
Result: Subtotal: $22 Order Total: 1.67 The when I do the checkout process and set my address, the problem gone. |
Hi @engcom-Oscar engcom-Oscar I tried to use my $100 coupon on $102 subtotal + $15 shipping and I have an odd result. Discount applied: $101.58 which is more than the amount on my coupon rule. |
Hi @engcom-Echo. Thank you for working on this issue.
|
Hi Romz , The issue is not getting re-produced as per the steps provided . Requested you to kindly test the issue on latest version i.e. 2.4-develop, or provide further clarification to help us reproduce the issue. Thanks |
@magento give me 2.4-develop instance |
Hi @4ctobias. Thank you for your request. I'm working on Magento instance for you. |
Hi @4ctobias, here is your Magento Instance: https://d0f456901f993a68b3e51efd011f9f03-2-4-develop.instances.magento-community.engineering |
@magento give me 2.4.2-p1 instance |
Hi @4ctobias. Thank you for your request. I'm working on Magento instance for you. |
Hi @4ctobias, here is your Magento Instance: https://d0f456901f993a68b3e51efd011f9f03-2-4-2-p1.instances.magento-community.engineering |
Hi, I am fully able to reproduce this with the upcoming 2.4-develop as well. It depends on the following settings (its a typical European set up - as we have to provide gross prices for products, services and shipping for customers B2C):
Now I added a product for 28$ and go to the cart page ("Edit and review cart")
I expect a order total value of 0.00 $. As I have a Tax rate of 19 % the 0.80 order total is exactly the tax of the shipping rate (5 $ gross, 4.20 net). If I apply this 50 $ coupon to a cart with a value more than 50 $ all works fine and is correct - so it seems that the tax of the shipping is not used correctly when using a fixed coupon if the cart value is less than this maximum discount value. Best, Tobias |
For a quick/hot fix I have overriden the Magento\SalesRule\Model\Validator (with a preference-for in a di.xml). Within the processShippingAmount() I changed the processing within the \Magento\SalesRule\Model\Rule::CART_FIXED_ACTION-handling in the switch. I changed from
to
Its not a clean solution:
But as a short and quick solution (until the issue is solved by itself) this will work. |
✅ Confirmed by @engcom-November Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@magento give me 2.4-develop instance |
Hi @Thundar. Thank you for your request. I'm working on Magento instance for you. |
Hi @Thundar, here is your Magento Instance: https://d0f456901f993a68b3e51efd011f9f03-2-4-develop.instances.magento-community.engineering |
Exact same issue in 2.4.3-p2, please provide the fix. Thanks a lot. |
Have you found a solution for 2.4.5? |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @Romz , Thanks for your reporting and collaboration. Steps to reproduce :
Observe , cart price rule is not applying on shipping VAT when rule applied on whole cart. Thanks. |
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-834 |
Preconditions (*)
Magento 2.4.2
2.4-develop having EE and B2B Modules
Steps to reproduce (*)
Using Fresh magento installation with samples datas.
Expected result (*)
Actual result (*)
The discount seems to be only applied on Shipping amount excluding tax. In that case 4.17$.
That's explain the -55.17$ discount amount on shopping cart (51 + 4.17)
For more details about the issue and configuration, please check this link
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: