Product Archive

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).

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