App reviews, troubleshooting, and recommendations
I need to track an event when a merchant was changed variant metafield to check the value and push something to another host.
export default {
PRODUCTS_UPDATE: {
deliveryMethod: DeliveryMethod.Http,
callbackUrl: "/api/webhooks",
includeFields: [
"variants"
],
metafieldNamespaces: [
"custom"
],
callback: async (topic, shop, body, webhookId) => {
console.log('--- Product update ---');
const payload = JSON.parse(body);
console.log(payload.variants);
console.log('--- /Product update ---');
},
},
};
I'm trying to create the webhook for it. But the PRODUCTS_UPDATE topic works for product internal changes (title/description/options/product metafields and etc.), and even for variant title/description/price/etc changes but not for the variants metafields. Only for the first their call, I suppose when the metafield is created.
Does someone know how to expand the webhook to track variant metafield or you know another way?
+1 having the same issue.
`products/update` webhook is not triggered by variant metafield updates, but it is by product metafield updates
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023