mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51: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,
|
||||
lineItems,
|
||||
lineItemsSubtotalPrice: 0,
|
||||
subtotalPrice: 0,
|
||||
lineItemsSubtotalPrice: checkout.subtotalPrice?.gross?.amount!,
|
||||
subtotalPrice: checkout.subtotalPrice?.gross?.amount!,
|
||||
totalPrice: checkout.totalPrice?.gross.amount!,
|
||||
discounts: [],
|
||||
}
|
||||
|
@ -3,6 +3,19 @@ export const checkoutDetailsFragment = `
|
||||
token
|
||||
created
|
||||
|
||||
totalPrice {
|
||||
currency
|
||||
gross {
|
||||
amount
|
||||
}
|
||||
}
|
||||
subtotalPrice {
|
||||
currency
|
||||
gross {
|
||||
amount
|
||||
}
|
||||
}
|
||||
|
||||
lines {
|
||||
id
|
||||
variant {
|
||||
|
Loading…
x
Reference in New Issue
Block a user