mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Implement product attributes (variants)
This commit is contained in:
@@ -49,10 +49,10 @@ const ProductView: FC<Props> = ({ product }) => {
|
||||
|
||||
await addItem({
|
||||
productId: String(product.id),
|
||||
variantId: String(selectedVariant.sku),
|
||||
variantId: String(selectedVariant.id),
|
||||
pricing: {
|
||||
amount: selectedVariant.price,
|
||||
currencyCode: product.price.currencyCode,
|
||||
currencyCode: product.price.currencyCode ?? 'USD',
|
||||
},
|
||||
})
|
||||
openSidebar()
|
||||
|
Reference in New Issue
Block a user