Website Building » WooCommerce » How Do I Get Rid of Proceed to Checkout in WooCommerce?

How Do I Get Rid of Proceed to Checkout in WooCommerce?

Last updated on January 21, 2023 @ 2:43 pm

Are you looking to get rid of the “Proceed to Checkout” button in WooCommerce? Maybe you want to style it a certain way, or remove it completely?

In this article, we’ll show you how to do both.

WooCommerce comes with a default “Proceed to Checkout” button that appears on the cart page. This button allows customers to move to the next step of the checkout process.

PRO TIP: If you are using WooCommerce to sell products on your website, you may have noticed the “Proceed to Checkout” button on the shopping cart page. This button allows customers to go to the checkout page and complete their purchase.

However, you may not want to use this button if you are selling products that do not require shipping or if you want customers to be able to purchase multiple items at once. In these cases, it may be beneficial to remove the “Proceed to Checkout” button from the shopping cart page.

Removing the “Proceed to Checkout” button can be done with a few lines of code. However, before making any changes to your website’s code, it is always recommended that you create a backup of your site first. This will ensure that you can restore your site if something goes wrong.

If you want to style the button, you can do so by adding some CSS code. For example, if you want to change the button’s color, you would add the following code:

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background-color: #ff0000;
}

If you want to remove the button completely, you can do so by adding the following code to your theme’s functions.php file:

function wc_remove_cart_buttons() {
remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 );
}
add_action( 'init', 'wc_remove_cart_buttons' );
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.