magento2: Why doesn't shipping total segment respect tax settings like e.g. subtotal does?
Preconditions
- 2.1.9
Steps to reproduce
- Choose “Including Tax” setting for Display Shipping Prices and Display Shipping Amount.
- Create a (guest) cart
- Call
/rest/V1/guest-carts/<the_id_here>/totals-information for the cart
Expected result
- The
value property for shipping segment in responseData.total_segments includes the tax.
Actual result
- The
value property of shipping segment in responseData.total_segments excludes the tax.
- Below is a screenshot of
/checkout/cart page and the totals-information response.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (7 by maintainers)
Created this patch, use with precaution however as this is only tested with Including tax config settings…
For subtotal there seems to be own logic inside: \Magento\Tax\Model\Sales\Total\Quote\Tax::fetch line 341
This logic however is missing for shipping reader
Hello All
I am not able to reproduce this issue on the 2.4-develop branch by provided steps.
Testing scenario:
/rest/V1/guest-carts/<the_id_here>/totals-informationfor the cartResult The
So I have to close this issue.
Thanks for your report!
valueproperty for shipping segment inresponseData.total_segmentsincludes the tax.