From af0fa4e4e987a58a91bd7d5a2cf94096684679bc Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 30 Mar 2023 10:57:52 +0100 Subject: [PATCH] add shipping id on order json --- static/components/customer-stall/customer-stall.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/components/customer-stall/customer-stall.js b/static/components/customer-stall/customer-stall.js index 4a8515c..6c054a2 100644 --- a/static/components/customer-stall/customer-stall.js +++ b/static/components/customer-stall/customer-stall.js @@ -184,7 +184,8 @@ async function customerStall(path) { }, items: Array.from(this.cart.products, p => { return {product_id: p[0], quantity: p[1].quantity} - }) + }), + shipping: orderData.shippingzone } orderObj.id = await hash( [orderData.pubkey, created_at, JSON.stringify(orderObj)].join(':') @@ -267,7 +268,8 @@ async function customerStall(path) { }, items: Array.from(this.cart.products, p => { return {product_id: p[0], quantity: p[1].quantity} - }) + }), + shipping: orderData.shippingzone } let created_at = Math.floor(Date.now() / 1000) orderObj.id = await hash(