Shopify - Webhook (products/update) Subscribed to Variant Metafield Payload Inconsistency
Hi, I have run into an issue where the payload for the products/update webhook does not always include the subscribed to variant metafield. The metafield is registered to shopifyProductVariant using the built in Gadget " Store data from Shopify Metafield" option and my webhooks are correctly registered.
Right now if I only edit the variant metafield and save, it is not included in the payload, but if I then edit something like product description, it is included as expected. This causes an issue because a merchant would need to double save before being able to use the app which is a bad experience.
My thought for addressing the issue is to add onSuccess in shopifyProduct update action to fetch all variants' metafield value for that product, then iterate over each and save the value to the variant model field with api.internal.shopifyProductVariant.update. Anyone have a better suggestion?