Mini-Cart

WooCommerce Remove Checkout Button From Mini Cart

WooCommerce mini cart showing only the view cart button

Pre-Requisites

There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About This Solution

This guide shows you how you can remove the checkout button from the mini cart, forcing users to view their cart before proceeding to the checkout. You may find the button still appears after implementing this snippet. The way WooCommerce works, you will need to clear all caches and view in a fresh browser session with all data cleared see the new mini cart with the checkout button omitted.

/**
* Snippet Name:     WooCommerce Remove Checkout Button From Mini Cart
* Snippet Author:   ecommercehints.com
*/

remove_action( 'woocommerce_widget_shopping_cart_buttons', 'woocommerce_widget_shopping_cart_proceed_to_checkout', 20 );

Snippet Benefits

  • Remove the checkout button from the mini cart, forcing your users to first view the cart where cross-sells appear.

100 WooCommerce Conversion Rate Optimisation Tips

This field is for validation purposes and should be left unchanged.

Let’s collaborate!

Need to outsource WordPress development?

Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.

First Timer Here?

Sign up to receive 20% off on your first month with us.

26027
WELCOME OFFER