From 5dacaac3c74a405301e0b7481dac21244a7d44bc Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 30 Mar 2023 10:57:52 +0100 Subject: [PATCH 1/2] 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 2964858..60c3bbc 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( From a8ac60790a8efa8dcd5377de6ae8467d0328c92d Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 30 Mar 2023 10:57:52 +0100 Subject: [PATCH 2/2] 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(