Answer the question
In order to leave comments, you need to log in
How to replace the buy button with a request in a pop-up form?
Welcome all! There is a shop on wordpress (woocommerce). Tell me how best to implement the option in the picture, where, in fact, all the functionality of the basket is not needed, but instead replace the "buy" button with an application in a pop-up form.
Answer the question
In order to leave comments, you need to log in
Check out quick request plugins or write your own.
For your examples on the Internet, there are many, if briefly in steps:
1. Create a button, hook a modal window call to it
2. Validate fields, etc. (if necessary)
3. On the "order" button, which in the modal window you hook ajax-sending to the handler
4. Write a handler that will send orders to the mail / write orders to the database / other
5. Handle ajax events (request passed, print "request sent", etc.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question