L
L
ligisayan2018-08-31 10:42:12
WordPress
ligisayan, 2018-08-31 10:42:12

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.
5b88f0aa28c36538004535.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
You2, 2018-08-31
@You2

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.)

A
Alexey, 2018-08-31
@Alex-Woo

edit the Russian translation file woocommerce-ru_RU.po using the Poedit program.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question