A
A
Alexander Sharomet2018-04-20 09:27:40
WooCommerce
Alexander Sharomet, 2018-04-20 09:27:40

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

2 answer(s)
O
Orkhan Hasanli, 2018-04-20
@sharomet

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.

M
Mr Crabbz, 2018-04-20
@Punkie

Can. There is no standard feature.
Change the logic of the templates and also write custom functionality for creating an order. 5-10 hours freelancing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question