update for contact number
This commit is contained in:
parent
ca5b179014
commit
5a781d9639
10
server.js
10
server.js
@ -207,14 +207,8 @@ app.post('/create-order', async (req, res) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
orderPayload.order.note_attributes = [
|
orderPayload.order.note_attributes = [
|
||||||
{
|
{ name: "Contact Number", value: customerData.contact_number || "" },
|
||||||
key: "Contact Number",
|
{ name: "Courier", value: customerData.courier || "" }
|
||||||
value: customerData.contact_number || ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: "Courier",
|
|
||||||
value: customerData.courier || ""
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const shopifyResponse = await fetch(`https://${process.env.SHOPIFY_STORE_DOMAIN}/admin/api/2024-01/orders.json`, {
|
const shopifyResponse = await fetch(`https://${process.env.SHOPIFY_STORE_DOMAIN}/admin/api/2024-01/orders.json`, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user