Closed
Description
Preconditions (*)
- Magento 2.4.1 (also present in at least 2.3.5p2)
Steps to reproduce (*)
- Enable the shipping method flatrate and set its price to 10
- Configure a default tax class for shipping that's not 0%. My example is 21%
- Set tax/calculation/shipping_includes_tax to "Including Tax"
- Set tax/cart_display/shipping to "Including Tax"
- Set tax/display/shipping to "Including Tax"
- Create a Cart through GraphQl
- Add a product to your cart through GraphQl
- Set a Shipping Address on your cart through GraphQl
- Set flatrate/flatrate as your shipping method through GraphQl using the following query.
mutation setShippingMethodsOnCart(
$cartId: String!,
) {
setShippingMethodsOnCart(
input: {
cart_id: $cartId,
shipping_methods:[{
carrier_code:"flatrate",
method_code:"flatrate"
}]
}
) {
cart {
shipping_addresses {
selected_shipping_method {
amount {
currency
value
}
}
}
}
}
}
Expected result (*)
{
"data": {
"setShippingMethodsOnCart": {
"cart": {
"shipping_addresses": [
{
"selected_shipping_method": {
"amount": {
"currency": "EUR",
"value": 10.00
}
}
}
]
}
}
}
}
Actual result (*)
{
"data": {
"setShippingMethodsOnCart": {
"cart": {
"shipping_addresses": [
{
"selected_shipping_method": {
"amount": {
"currency": "EUR",
"value": 8.26
}
}
}
]
}
}
}
}
There is currently no way to get the value of the selected shipping method including tax. This is a value you want for all countries where its normal to display prices including tax (most if not all EU countries) . Currently the only way to get the value (without code changes) is to match the selected shipping method with available shipping methods and get the price incl tax from there.
I'm not certain if the way forward is giving both values to the endpoint or based on configuration change the response of selected_shipping_method { amount { value }}.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedPartners acceleration programOnce P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch
Type
Projects
Status
Done