Skip to content

There is no way to get the product price including and excluding tax in GraphQL at the same time #32437

Open
@jesse-deboer

Description

@jesse-deboer

Preconditions (*)

Magento 2.4.1

Steps to reproduce (*)

  1. Go to the admin, then Stores > Settings > Configuration
  2. Under Sales > Tax > Price Display Settings set Display Product Prices in Catalog to Including and Excluding Tax
  3. Run the following GraphQl query
productDetail: products(filter: { sku: {eq: "aRandomProductSku" } }) {
        items {
            price_range {
                minimum_price {
                    regular_price {
                        currency
                        value
                    }
                    final_price {
                        currency
                        value
                    }
                }
                maximum_price {
                    regular_price {
                        currency
                        value
                    }
                    final_price {
                        currency
                        value
                    }
                }
            }
        }
    }
}

Expected result (*)

I would expect there to be a value_with_tax and value_without_tax, but there is only one value in GraphQL. Since PriceAdjustment is deprecated there is no way to get the tax. This means there is no way to display the price with and without tax through GraphQL

Actual result (*)

There is only a value being returned by GraphQL with tax when you set Display Product Prices in Catalog to Including and Excluding Tax


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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions