WooCommerce Add Content Under Product Prices On Archive Page

WooCommerce Product Archive page showing custom content under the product prices

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 to add any custom content under the product price on the WooCommerce Product Archive template. You may wish to show a shipping notice, promotion, or in our example “Price Match Promise”. This code snippet shows the custom text on all products on the archive page. To target individual products, you’ll simply need to wrap the echo output in an of statement where the product equals the product ID. Enjoy!

				
					/**
* Snippet Name:		Add custom content under price on product archive loop items
* Snippet Author:	ecommercehints.com
*/
function ecommercehints_woocommerce_after_shop_loop_item(  ) { 
    echo 'Price Match Promise'; 
}; 
         
// add the action 
add_action( 'woocommerce_after_shop_loop_item', 'ecommercehints_woocommerce_after_shop_loop_item', 1, 0 ); 
				
			

Snippet Benefits

  • Show literally any custom message or content you like on the product archive page under the product price on the product card (loop item).
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