Website Building » WooCommerce » How Do I Remove Add to Cart Button in WooCommerce?

How Do I Remove Add to Cart Button in WooCommerce?

Last updated on October 1, 2022 @ 10:34 pm

Removing the add to cart button in WooCommerce is simple. There are two ways to do it:

The first way is to edit the code in the functions.php file of your child theme.

You can add the following line of code:

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );

The second way is to use a plugin like WooCommerce Product Disable.

PRO TIP: If you are considering removing the “add to cart” button in WooCommerce, be aware that this could have unintended consequences. For example, if you are using a third-party shopping cart plugin, removing the “add to cart” button may prevent the plugin from functioning properly. Additionally, this could cause issues with inventory management and order fulfilment. Proceed with caution and test thoroughly before making any changes to your WooCommerce store.

How Do I Remove Add to Cart Button in WooCommerce?

Removing the add to cart button in WooCommerce is simple. You can add the following line of code:

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );

The second way is to use a plugin like WooCommerce Product Disable.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.