Download WooCommerce RRP
This plugin has been submitted to wordpress.org, download – WooCommerce RRP.
Overview
WooCommerce RRP is a plugin that works with WooCommerce. WooCommerce RRP allows a users to add text before the regular price and sale price of a product from within the WooCommerce General settings UI. You can also select to have this text displayed on archive templates by simply clicking a select box.
If you would like to change the display text for a certain product, you can use the WordPress add filter function. See the examples below the screenshots.
Screenshots

Entering text into the “Product Price Text” will display before the regular price for the product.

Here you can see the arrow pointing to the text displayed that you entered in the “Product Price Text” field.

Entering text into the “Sale Price Text” will display before the sale price for the product.

Here you can see the arrow pointing to the text displayed that you entered in the “Sale Price Text” field.

Selecting the “Show Text On Archives” will display the text entered in the “Product Price Text” and “Sale Price Text” fields on archive templates.

Here you can see the arrows pointing to the text entered in “Product Price Text” and “Sale Price Text” on an archive.
What if I want to change the “Product Price Text” for a certain product?
This can be done using the built in WordPress add filter function. For example, if we had a product with an id of 96 and we wanted to change the text of the “Product Price Text” field to “Your new Product Price Text, the function would like this:
[php]
function change_before_regular_price( $woo_rrp_before_price ) {
global $post;
if ( ’96’ == $post->ID ) :
return ‘Your new Product Price Text’;
else :
return $woo_rrp_before_price;
endif;
}
add_filter( ‘woo_rrp_before_price’, ‘change_before_regular_price’ );
[/php]
What if I want to change the “Sale Price Text” for a certain product?
This can be done using the built in WordPress add filter function. For example, if we had a product with an id of 96 and we wanted to change the text of the “Sale Price Text” field to “Your new Sale Price Text, the function would like this:
[php]
function change_before_sale_price( $woo_rrp_before_sale_price ) {
global $post;
if ( ’96’ == $post->ID ) :
return ‘Your new Sale Price Text’;
else :
return $woo_rrp_before_sale_price;
endif;
}
add_filter( ‘woo_rrp_before_sale_price’, ‘change_before_sale_price’ );
[/php]
There isn’t any translations of this plugin, can I provide you a translation in my local language to include?
Absolutely, please get in contact.
Changelog
1.0 – Original commit and released to the world
Upgrade Notice
1.0 – You should use WooCommerce RRP 1.0 for the convenience of having the ability to add text before the regular and sale price from the WooCommerce Setting UI.
Alex says:
Hi!
Can you tell me what code you need,for certain categories of products?
BradleyJ says:
Hi Alex,
You should be able to use the filter (woo_rrp_before_price or woo_rrp_after_price) and change the if statement to a conditional check on the category. Replace the catID with the number of your category, eg, 9 and something like this should work:
function change_before_regular_price( $woo_rrp_before_price ) {
if ( is_category( ‘catID’ ) ) :
return ‘Your new Category Product Price Text’;
else :
return $woo_rrp_before_price;
endif;
}
add_filter( ‘woo_rrp_before_price’, ‘change_before_regular_price’ );
Sorry I have not tested it, if it doesn’t work let me know and as soon as I get a moment this week ill check it out for you.
Cheers
Brad
heidipeyser@gmail.com says:
Hi, I installed your plugin but am not seeing the field option. I am running woo commerce with the storefront theme on multi site (and yes I know woo commerce isn’t meant for multi site however i have no desire to aggregate products across sites, they are separate). Do you know of any issues that your plugin has with displaying in sub-sites?
sub site is: estatedeck.com/peter/
thanks
Heidi
BradleyJ says:
Hi Heidi,
Thank you for checking out my plugin. To be honest I have not tested this plugin on a multi site install so I am unsure if there are any issues. As soon as I get the opportunity I will test it and see if I can find a solution.
kaish says:
Hi,
Can you provide same plugin for adding text after price instead of placing it before.
Thanks in Advance
Ty Ricker says:
Hello,
WooCommerce RRP is not working for us on WooCommerce 2.6.8 Your plugin working perfect for us in WooCommerce 2.6.6
In the WooCommerce > Settings page (wp-admin/admin.php?page=wc-settings) your plugin options: Product Price Text and Sale Price Text as well as the Show Text On Archives is not showing on WooCommerce version 2.6.8
Very much appreciate your help and thank you for this great plugin!
Konstantinos says:
Hi, is this plugin working for variable products?
Lizy says:
It works very well. Great plugin!
Elad Levy Lapides says:
Hi,
Thnks for an amazing plugin.
One issue: the text appear in both the headline and after choosing from the variations…. Can you fix it?
Bradley says:
Hi Elad,
Are you able to provide:
Cheers
Brad
illeo says:
How to translate product price text for polylang, i have two lang.
Bradley D says:
Hi illeo,
Have you looked at WPML – https://wpml.org/
Cheers