I've added in the form field for a product that is out of stock to have customers leave their email and we will let them know when it is back in stock. However, the form won't submit saying "Required parameter missing or invalid: items". From what I can tell it has something to do with the variant id not processing when the form is submitted as the error is
Can someone please help me? These are the sections of the product code I have edited:
Solved! Go to the solution
This is an accepted solution.
You are on wrong track. The code you shared is used when you want to get custom information in order with each product.
For your query you have to use MailChimp or similar embedded form in a way that if product is out of stock show that form, with this you can pass product name or Id in it so in backend you can easily find out.