useCartAddItems
A cart hook that helps you easily add multiple items to the cart with a given quantity
lineItems
An array of line items [{...lineItem}]
lineItem object
variantId
A valid storefront variant Id e.g Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8yOTEwNjAyMjc5Mg==
quantity
An item quantity (Integer)
customAttributes
(optional)
line item custom attributes array
[ { key: 'attrKey', value: 'attrValue' }, ... ]
Last updated