A restock alert sounds like a tiny programming exercise.

Check whether a product is in stock.

Notice when the answer changes.

Send a notification.

That version works until real shoppers depend on it.