Bug: Webhook Not Triggered on Clearing Alt Text for Product Image in Shopify

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:

  1. Add a product to your Shopify store.

  2. Upload an image for the product.

  3. Click on the image to edit the alt text.

  4. Enter any alt text and save the image. The webhook product/update is triggered successfully.

  5. Edit the alt text again, changing it from one value to another, and save the changes. The webhook product/update is triggered successfully.

  6. Clear the alt text by removing the existing value, leaving it empty, and save the changes. The webhook product/update is 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.

2 Likes

Hi @Dmitry_Samushchenko,

I’ve looked into this a bit and can confirm I’ve been able to replicate this behaviour on my test store.

I’m not seeing any known issues for this at this time, so I am currently discussing this further with our developers to confirm if this is expected behaviour, or a new issue that needs further investigation to fix.

I’ll keep you updated here as soon as we have any more information to share.

1 Like

Hi @Dmitry_Samushchenko,

Just following up here to let you know our developers have confirmed this is unexpected behaviour, and are currently working on a fix for this at this time.

We’ll keep you updated here once the fix is released.

Hi again @Dmitry_Samushchenko

We recently shipped some updates here - are you still seeing this issue?

Hi @Liam-Shopify,

Thank you for following up. Unfortunately, the issue is still reproducing on my end. The webhook product/update is not triggered when the alt text is cleared (set to an empty value).

Thanks again for your attention to this!

Best regards