Is there any way to prevent users from deleting the bundle parent product?

In the Shopify product admin, some users just delete or turn the bundle parent product to draft. This action makes the bundles become deprecated easily, and it’s not reversible. If the bundle parent product is deleted, the bundle can no longer work.

Is there any way we can prevent users from taking these actions?

Hey @Benny_Chan - hope all’s well. I believe what you’re describing here is expected behaviour and it’s not currently possible to prevent it, but I definitely understand where you’re coming from in terms of it not being ideal. As a quick workaround, you could use the products/update webhook to detect status changes to draft or deletion (using the products/delete webhook) on bundle parents and alert the merchant to this (either in your app UI or by email, for example) or build a process that then deletes the child bundle products as well if that’s a possibility. This would have to happen after the deletion/status change though.

That said, I’m happy to pass along some feedback on this so we can look at this internally too. Just to confirm, would something like an in-admin warning that says “This is a parent product for a bundle - are you sure you want to delete?”, etc be what you’re looking for? Hope to hear from you soon!

Yes, I can send an email when the bundle parent product is deleted. I can recreate the bundle parent to repair the bundle as well. But some of them may put this product in many collections so that they won’t recreate a new one.

And yes, an in-admin warning is better.

Hey @Benny_Chan - thanks for the patience on my reply here. Definitely understand where you’re coming from on this. Just wanted to confirm that I’ve logged a feature request on my end here for you.

Can’t guarantee if/when any changes would get rolled out, but did want to reach out to let you know I’ve passed this along internally.