How to make a button "Want"?

Hello!
I want in the online store in the item card to make a button "Want", if the goods are not in stock. How to make and how to monitor the statistics by clicking on it.
site on WP.
July 8th 19 at 15:24
1 answer
July 8th 19 at 15:26
hang on click Ajax request - on the server a recorded database in a sign preorder customer id, product id, date, time, everything. The cron starts the script checks the items from the list if the item is in stock - the user write a petition a email with a link to the product type "And here!". In the table write a check that the customer is now aware, and further in the newsletter for effort is not involved.

Find more questions by tags DesignWordPressDo it yourself