N
N
NastaIl2016-06-09 17:43:53
Do it yourself
NastaIl, 2016-06-09 17:43:53

How to make a "Want" button?

Hello!
I want to make a "I want" button in the product card on the website in the online store if the product is not in stock. How to make it and how to track the statistics of those who clicked on it.
site on WP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2016-06-09
@ThunderCat

we hang a request on the Ajax button - on the server we enter the preorder id of the client, the product id, the date, time, everything into the database in the table. The cron starts a script for checking goods from the wishlist, if the goods are available - we write a petition to the user by e-mail with a link to the goods - like "Here!". In the tablet, we write a tick that the client is now aware, and then does not participate in the distribution of goodies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question