mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 12:11:22 +00:00
Update comments about cart discounts
This commit is contained in:
parent
8f95d76dcd
commit
7d5a63bbf4
@ -170,7 +170,7 @@ const normalizeLineItem = (
|
|||||||
productId: productIdentifier.id,
|
productId: productIdentifier.id,
|
||||||
name: spreeLineItem.attributes.name,
|
name: spreeLineItem.attributes.name,
|
||||||
quantity: spreeLineItem.attributes.quantity,
|
quantity: spreeLineItem.attributes.quantity,
|
||||||
discounts: [], // TODO: Retrieve from Spree
|
discounts: [], // TODO: Implement when the template starts displaying them.
|
||||||
path,
|
path,
|
||||||
variant: normalizeVariant(spreeSuccessResponse, variant),
|
variant: normalizeVariant(spreeSuccessResponse, variant),
|
||||||
options,
|
options,
|
||||||
@ -198,8 +198,7 @@ const normalizeCart = (
|
|||||||
totalPrice: parseFloat(spreeCart.attributes.total),
|
totalPrice: parseFloat(spreeCart.attributes.total),
|
||||||
customerId: spreeCart.attributes.token,
|
customerId: spreeCart.attributes.token,
|
||||||
email: spreeCart.attributes.email,
|
email: spreeCart.attributes.email,
|
||||||
discounts: [],
|
discounts: [], // TODO: Implement when the template starts displaying them.
|
||||||
// discounts: [{value: number}] // TODO: Retrieve from Spree
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user