Mini-Cart

WooCommerce Add Content Below Products In Mini-Cart

WooCommerce Add Content Below Products In Mini-Cart

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 quick guide shows you how you can display custom content below the list of products in the mini-cart. This could be the perfect place to let users know of a promotion you are running, a link to a specific upsell, or even a link to shop for more products like in this example.

/**
* Snippet Name:		WooCommerce custom content below products list in mini-cart
* Snippet Author:	ecommercehints.com
*/

function ecommercehints_content_below_products_minicart() {
	echo 'Shop more products →';
};

add_action( 'woocommerce_mini_cart_contents', 'ecommercehints_content_below_products_minicart', 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.

26027
WELCOME OFFER