Skip to content

Add price including tax to CartItemPrices in GraphQL API #29057

Closed
@TimonVS

Description

@TimonVS

Description (*)

I'd like to be able to show the price of an individual item including taxes. Currently, you can only retrieve the row total including tax or the price of an individual item excluding tax.

Expected behavior (*)

Add a field price_including_tax to CartItemPrices:

query {
  cart(cart_id: "<cart id here>") {
    items {
      id
      quantity
      prices {
        # excluding tax
        price {
          currency
          value
        }
        # new field
        price_including_tax {
          currency
          value
        }
        row_total_including_tax {
          currency
          value
        }
      }
    }
  }
}

Benefits

Shopping carts usually show the price of an individual item including taxes, even the default theme in Magento does that.

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIsIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: ready for confirmationPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.feature request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions