Issue:
When editing a product image’s alt text in Shopify, the webhook product/update is successfully triggered when a new alt text is added or updated. However, when the alt text is cleared (set to an empty value) and the changes are saved, the webhook does not trigger.
Steps to Reproduce:
-
Add a product to your Shopify store.
-
Upload an image for the product.
-
Click on the image to edit the alt text.
-
Enter any alt text and save the image. The webhook
product/updateis triggered successfully. -
Edit the alt text again, changing it from one value to another, and save the changes. The webhook
product/updateis triggered successfully. -
Clear the alt text by removing the existing value, leaving it empty, and save the changes. The webhook
product/updateis NOT triggered.
Expected Behavior:
The webhook product/update should be triggered whenever any changes are made to the alt text, including when it is cleared or reset to an empty value.
Actual Behavior:
The webhook is triggered for adding or updating alt text, but does not trigger when the alt text is cleared (set to empty).
Impact:
This issue prevents tracking changes to the alt text when it is cleared, potentially causing discrepancies in product information syncs or updates.
Additional Notes:
-
The issue persists across different browsers and devices.
-
No error is displayed in the admin interface when clearing the alt text.
Please investigate and provide a fix or guidance on this issue.