Answer the question
In order to leave comments, you need to log in
How to replace the “add to cart” button in woocommerce with the “order” button and when you click on it, send the order to the order database?
Hello.
Is it possible to somehow change the "Add to cart" button on the detailed information page to the "Order" button.
By clicking on this button, form a modal window in which the user simply enters his data and, when sending, skip all the payment steps by sending the order to the database?
Is it possible to somehow skip the payment steps and the shopping cart?
Thank you.
Answer the question
In order to leave comments, you need to log in
In theory, you can remove the "Add to Cart" button (for example, with a plugin) - https://calebburks.com/hide-uncategorized-default-...
or remove their output in the template or remove them through functions.php
Then connect modal, integrate CF7 or ACF.
If you choose CF7 - that is, plugins for writing to the database
https://wordpress.org/plugins/contact-form-cfdb7/
https://wordpress.org/plugins/cf7-database/
Or if you want to write to the database tables, then you will have to refine. For example. use ACF and when you click the order button (after filling out the form) use hooks to add information to the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question