-
-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershacktoberfest
Description
Describe the bug
The addToCart mutation
(and all others too) returns the total
price of an cartItem
always excluding the respective taxes. Therefore the value is always equal to subtotal
…
To Reproduce
mutation test {
addToCart(input: {productId: ID!, variationId: ID!}) {
cartItem {
subtotal
subtotalTax
tax
}
}
}
returns in my case:
"data": {
"addToCart": {
"cartItem": {
"subtotal": "172€",
"subtotalTax": "27€",
"tax": "27€",
"total": "172€",
"quantity": 1,
"key": "e387168c9b6c258ba35c924e9710c903"
}
}
},
Expected behavior
If you set the setting in WooCommerce to true, that prices are shown including taxes, total
should return the added value of subtotal + subtotalTax
.
davevanhoorn, sidyes and mrafkidunot89
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershacktoberfest