WooCommerce Add Price Suffix

WooCommerce prices showing custom suffix text


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 add custom content as a suffix to WooCommerce prices. You may wish to display information regarding tax, a product’s status, whether it’s used or new etc. The possibilities are endless!

 * Snippet Name:	WooCommerce Add Suffix To Prices
 * Snippet Author:	ecommercehints.com

add_filter( 'woocommerce_get_price_html', 'ecommercehints_add_suffix_to_prices', 10, 2 );  
function ecommercehints_add_suffix_to_prices($price, $product) {
	$price =  $price . " (used)";
    return $price;

Snippet Benefits

  • Add and display any custom text as a suffix to prices on the product archive and single product template.
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