mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
saleor: fix the prices in the cart
This commit is contained in:
parent
7524f5ab2e
commit
a8678bdecd
@ -119,8 +119,8 @@ export function normalizeCart(checkout: Checkout): Cart {
|
|||||||
},
|
},
|
||||||
taxesIncluded: false,
|
taxesIncluded: false,
|
||||||
lineItems,
|
lineItems,
|
||||||
lineItemsSubtotalPrice: 0,
|
lineItemsSubtotalPrice: checkout.subtotalPrice?.gross?.amount!,
|
||||||
subtotalPrice: 0,
|
subtotalPrice: checkout.subtotalPrice?.gross?.amount!,
|
||||||
totalPrice: checkout.totalPrice?.gross.amount!,
|
totalPrice: checkout.totalPrice?.gross.amount!,
|
||||||
discounts: [],
|
discounts: [],
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,19 @@ export const checkoutDetailsFragment = `
|
|||||||
token
|
token
|
||||||
created
|
created
|
||||||
|
|
||||||
|
totalPrice {
|
||||||
|
currency
|
||||||
|
gross {
|
||||||
|
amount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
subtotalPrice {
|
||||||
|
currency
|
||||||
|
gross {
|
||||||
|
amount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lines {
|
lines {
|
||||||
id
|
id
|
||||||
variant {
|
variant {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user