WooCommerce Mini Cart Visual Hooks Guide


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

Being able to customise the mini cart should be as easy as any other part of WooCommerce. WooCommerce don’t make it particularly easy to find the hooks they publish for each element. Even when found, it’s not exactly easy to see which hooks display where. We gave up in the end and created a visual guide to hooks available in the mini cart!

Mini Cart Hooks

					// These are the six hooks WooCommerce have published for the mini cart



Pre-coded Example

* Snippet Name:     Show custom text at the top of the WooCommerce Mini Cart.
* Snippet Author:   ecommercehints.com

function action_woocommerce_before_mini_cart() { 
    echo "This will appear at the very top of the mini cart";

add_action( 'woocommerce_before_mini_cart', 'action_woocommerce_before_mini_cart', 10, 0 ); 

Standard View Of The Mini Cart

Mini Cart With Hooks Shown

Mini Cart Hook Usage

My Beanie Store Basket
Clear your cookies to reset the timer

Snippet Benefits

How to show the following the in the WooCommerce Mini Cart:

  • Shipping notices
  • Disclaimers
  • Trust seals and symbols
  • A countdown timer
  • Literally any custom content, text, or message you like
WooCommerce Conversion Rate Optimisation (CRO) eBook
100 WooCommerce Conversion Rate Optimisation Tips

Leave a Reply

If you are going to write code in the comments, please wrap it between code tags.

Your email address will not be published. Required fields are marked *

Other Recent Guides

Subscribe To Emails

Get exclusive WooCommerce tips that I only share with email subscribers

Join hundreds of other subscribers