Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove shopping cart from WooCommerce plugin in Wordpress?

I'm using the Virtue Theme in Wordpress and have installed the WooCommerce plugin for setting up my online store. I want to remove the shopping cart function completely and instead place an order form on individual product page. Help is sought to remove the shopping cart.

like image 228
Syed Avatar asked Oct 21 '22 14:10

Syed


1 Answers

this is my experienced with Woocommerce about remove carts function. I added this code in functions.php in my Virtue themes.

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );

remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 );

remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 );

In this Web I used that code. I Hope that's can solve your probelms. Thank you :)

like image 111
Dhyta Wan Avatar answered Nov 01 '22 13:11

Dhyta Wan