Answer the question
In order to leave comments, you need to log in
How to disable shipping and payment in Woocommerce?
In the Woocommerce settings, shipping is disabled (including each shipping method), and payment methods are also disabled.
On the ordering page (in our case, the application) , the fields address 1, address 2, country, region (there is only a city) are hidden . Sales outlets in all countries, the default customer address is geolocation.
When placing an order, "incorrect payment method" pops up, but it is disabled, as well as delivery.
I just need to place orders / applications so that a notification falls on the email and the manager would then contact himself.
Answer the question
In order to leave comments, you need to log in
you can try
add_filter('woocommerce_cart_needs_payment', 'disabled_payment');
function disabled_payment() {
return false;
}
tell me with what module or code can I disable the payment page when buying a woocommerce product? module https://wordpress.org/plugins/yith-woocommerce-cat... is not needed, it disables buttons and payment pages for all products...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question