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
Discount(s) ignored in Subtotal condition of Free Shipping Cart Rule #35168
Comments
Hi @Rickertje. 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 |
Hi @engcom-November. Thank you for working on this issue.
|
I just tried this (case A) on 2.2.10 and it seemed to have worked correctly back then |
I'm no Magento programmer but I think it has something to do with not setting $address->setBaseSubtotalWithDiscount in the collect functions of SalesRule\Model\Quote\Discount.php and/or SalesRule\Model\Quote\Address\Total\ShippingDiscount.php. |
Verified the issue on Magento 2.4-develop branch but cannot able to reproduce the issue in both the cases: A and B. |
@magento give me 2.4-develop instance |
Hi @Rickertje. Thank you for your request. I'm working on Magento instance for you. |
Hi @Rickertje, here is your Magento Instance: https://1da2ae3c91168ffde7138bf4c7a32c4e.instances.magento-community.engineering |
Hi @engcom-November. I tried develop. Things seemed to have changed since 2.4.0. In your test of case A at least a tablerate shipping methode for 811,88 should be applied. Agree? So why was it not applied? |
@engcom-November: I changed the steps to reproduce the problem on develop. Can you take another look please? |
@magento give me 2.4-develop instance |
Hi @engcom-November. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-November, here is your Magento Instance: https://1da2ae3c91168ffde7138bf4c7a32c4e.instances.magento-community.engineering |
Hi @Rickertje Thank you for updating the description. Verified the issue again on Magento 2.4-develop branch and the issue is reproducible. Hence confirming the issue. |
Hi @Rickertje , |
Like I stated in the problem discription: It is (and has never been) clear from the dev docs if Cart Rule conditions 'Subtotal' and/or 'Subtotal ex VAT' include discounts yes or no => But up until M2.3.x the condition 'Subtotal ex VAT' did indeed take discounts into account. |
Hi @Rickertje , |
Hi @Rickertje , |
Preconditions (*)
Steps to reproduce (*)
a) TEST with coupon code TEST, no conditions, discount 100 for the whole cart, discard subsequent rules = No
b) FREE SHIPPING no coupon code, condition: subtotal excl VAT > $820, free shipping for shipment with matching items, discard subsequent rules = No
Expected result (*)
Free shipping should NOT be applied after entering the promo TEST
Actual result (*)
Free shipping is still applied.
Observations:
Severity S1/S2
The text was updated successfully, but these errors were encountered: