[Forwardport] Fix shipping discount failed to apply during place order#18230
[Forwardport] Fix shipping discount failed to apply during place order#18230mage2pratik wants to merge 1 commit intomagento:2.3-developfrom mage2pratik:2.3-develop-PR-port-18098
Conversation
|
Hi @mage2pratik. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
Hi @sidolov, thank you for the review. |
|
Hi @mage2pratik , we can't reproduce this issue on the vanilla 2.3-develop instance Manual testing scenario:
Actual result: Please, provide additional steps for validation. |
|
Hi @mage2pratik , I am closing this PR now due to inactivity. |
Original Pull Request
#18098
Description
Caused by #13185,
\Magento\Tax\Model\Sales\Total\Quote\Tax::clearValues()is called to unset the total before collecting total.nullis expected (representing unset state) in below condition however0is set and failed the condition necessary to calculate correct shipping discount.Shipping discount fail to apply to an order, when:
savePaymentInformation()(for example, credit card methods usually meet this criteria, while paypal methods not)Fixed Issues (if relevant)
Can't found any related issue so far
Manual testing scenarios
Expected result: Order discount contains shipping amount
Actual result: Order discount does not contain shipping amount
Contribution checklist