5
votes

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.

3
Do you want to skip the checkout page as well?Nix
For future visitors: One Page Checkout would be perfect for this.helgatheviking

3 Answers

5
votes

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

0
votes

Using firefox right click on the cart and open inspector. Find the css used on the right panel. Then, in modify theme, add custom css like:

.woocommerce-active .site-header .site-header-cart {
  display: none !important;
}

(In the above code «.woocommerce-active .site-header .site-header-cart» was in the right panel of "inspector". While in modify mode you can instantly see the result, so make some tries if CSS name is not the correct one.)

-2
votes

To remove shopping cart from WooCommerce plugin in Wordpress, select the Disable option in Menu cart:Display

Go to Appearance>Customize>WooCommerce>General>Menu cart

enter image description here