I would like to change the sold out button to a notify me button and let the customer input mail address to get notified when the product is back in stock.
I know that there are apps in the shopify store but I would like to do it myself because I need a very simple solution.
Totally get wanting a simple, custom-built solution, it’s definitely possible to replace the Sold Out button with a Notify Me button and add an email input field. That would involve a bit of Liquid code, some JavaScript for handling the form, and a way to store the emails and trigger notifications when the product is restocked.
That said, it can get a bit more complex than expected, especially when it comes to automating the email sending part and making sure it works across all product types and variants.
If you ever decide to go with an app that keeps things simple but still flexible, our app might be worth a look: