design upgrade

This commit is contained in:
Nermin Karic
2026-11-23 00:59:47 +01:00
parent 9e84140474
commit ada6fd857c
198 changed files with 6626 additions and 2539 deletions

View File

@@ -118,10 +118,13 @@ export async function addToCart({
variantId,
quantity,
countryCode,
metadata,
}: {
variantId: string
quantity: number
countryCode: string
/** Stored on the line item, e.g. the configurator selection */
metadata?: Record<string, unknown>
}) {
if (!variantId) {
throw new Error("Missing variant ID when adding to cart")
@@ -143,6 +146,7 @@ export async function addToCart({
{
variant_id: variantId,
quantity,
...(metadata ? { metadata } : {}),
},
{},
headers