WooCommerce Remove View Cart Button From Mini Cart

WooCommerce mini cart showing only the checkout button


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 snippet allows you to remove the View Cart button from the mini-cart, forcing your users to proceed straight to the checkout skipping an entire step in the sales funnel. If you are based outside of the US (or where “cart” is not the norm) you will see the terminology “basket”.

* Snippet Name:     WooCommerce Remove View Cart Button From Mini Cart
* Snippet Author:

remove_action( 'woocommerce_widget_shopping_cart_buttons', 'woocommerce_widget_shopping_cart_button_view_cart', 10 );

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.