mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
Added options to BigCommerce normalizeLineItem
This commit is contained in:
parent
ca68375694
commit
c577fd9fbb
@ -106,6 +106,7 @@ function normalizeLineItem(item: any): LineItem {
|
|||||||
listPrice: item.list_price,
|
listPrice: item.list_price,
|
||||||
},
|
},
|
||||||
path: item.url.split('/')[3],
|
path: item.url.split('/')[3],
|
||||||
|
options: item.options,
|
||||||
discounts: item.discounts.map((discount: any) => ({
|
discounts: item.discounts.map((discount: any) => ({
|
||||||
value: discount.discounted_amount,
|
value: discount.discounted_amount,
|
||||||
})),
|
})),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user