Title: RRP (MSRP) for WooCommerce
Author: Brad Davis
Published: <strong>30 ਅਕਤੂਬਰ 2014</strong>
Last modified: 30 ਸਤੰਬਰ 2026

---

ਪਲੱਗਇਨਾਂ ਖੋਜੋ

![](https://ps.w.org/woocommerce-rrp/assets/banner-772x250.jpg?rev=1997142)

![](https://ps.w.org/woocommerce-rrp/assets/icon-256x256.png?rev=1997175)

# RRP (MSRP) for WooCommerce

 [Brad Davis](https://profiles.wordpress.org/brad-davis/) ਵੱਲੋਂ

[ਡਾਊਨਲੋਡ ਕਰੋ](https://downloads.wordpress.org/plugin/woocommerce-rrp.1.9.1.zip)

 * [ਵੇਰਵਾ](https://pan.wordpress.org/plugins/woocommerce-rrp/#description)
 * [ਸਮੀਖਿਆਵਾਂ](https://pan.wordpress.org/plugins/woocommerce-rrp/#reviews)
 *  [ਸਥਾਪਤੀਕਰਨ](https://pan.wordpress.org/plugins/woocommerce-rrp/#installation)
 * [ਵਿਕਾਸ](https://pan.wordpress.org/plugins/woocommerce-rrp/#developers)

 [ਸਹਿਯੋਗ](https://wordpress.org/support/plugin/woocommerce-rrp/)

## ਵੇਰਵਾ

RRP (MSRP) for WooCommerce allows users to add text before the regular price and
sale price of a product from the WooCommerce > Settings > General screen. You can
also select to have this text displayed on archive templates by simply ticking a
checkbox.

If you would like to change the display text for a certain product, you can use 
the [WordPress add_filter() function](https://developer.wordpress.org/reference/functions/add_filter/),
please see the FAQ for an example.

If you have suggestions for new features, please add your idea in the “Support” 
area for this plugin.

If RRP (MSRP) for WooCommerce has made your life a little easier, please leave a
positive review in the “Reviews” area for this plugin.

#### Requires WooCommerce to be installed and active.

## ਸਕਰੀਨਸ਼ਾਟ

[⌊Entering text into the "Product Price Text" will display before the regular price
for the product.⌉⌊Entering text into the "Product Price Text" will display before
the regular price for the product.⌉[

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.⌉⌊Here you can see the arrow pointing to the text
displayed that you entered in the "Product Price Text" field.⌉[

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.⌉⌊Entering text into the "Sale Price Text" will display before the sale
price for the product.⌉[

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.⌉⌊Here you can see the arrow pointing to the text displayed
that you entered in the "Sale Price Text" field.⌉[

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.⌉⌊Selecting the "Show
Text On Archives" will display the text entered in the "Product Price Text" and "
Sale Price Text" fields on archive templates.⌉[

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.⌉⌊Here you can see the arrows pointing to the
text entered in "Product Price Text" and "Sale Price Text" on an archive.⌉[

Here you can see the arrows pointing to the text entered in “Product Price Text”
and “Sale Price Text” on an archive.

## ਸਥਾਪਤੀਕਰਨ

 1. Upload the RRP (MSRP) for WooCommerce plugin folder to the `/wp-content/plugins/`
    directory, or install it from the Plugins > Add New screen in WordPress.
 2. Make sure WooCommerce is installed and active, then activate the plugin through
    the ‘Plugins’ menu in WordPress.
 3. Go to WooCommerce > Settings > General and add your text to the input areas below“
    Currency Options”. See Screenshots for a visual explanation.

## ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ

### 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](https://developer.wordpress.org/reference/functions/add_filter/).
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 look like this:

    ```
    function myprefix_change_before_regular_price( $woo_rrp_before_price ) {
        global $post;

        if ( $post instanceof WP_Post && 96 === $post->ID ) :
            return 'Your new Product Price Text';
        endif;

        return $woo_rrp_before_price;
    }
    add_filter( 'woo_rrp_before_price', 'myprefix_change_before_regular_price' );
    ```

### 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](https://developer.wordpress.org/reference/functions/add_filter/).
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
look like this:

    ```
    function myprefix_change_before_sale_price( $woo_rrp_before_sale_price ) {
        global $post;

        if ( $post instanceof WP_Post && 96 === $post->ID ) :
            return 'Your new Sale Price Text';
        endif;

        return $woo_rrp_before_sale_price;
    }
    add_filter( 'woo_rrp_before_sale_price', 'myprefix_change_before_sale_price' );
    ```

Replace `myprefix` with a prefix unique to your theme or plugin.

### Can you provide a list of filters that are available and a description of what they control?

Sure, there are two filters available for you to use:

 * woo_rrp_before_price – Controls the text that is displayed before the regular
   price of a product.
 * woo_rrp_before_sale_price – Controls the text that is displayed before the sale
   price of a product.

### Enabling the “Show Text On Archives” messes up the archive display, can you please fix this?

You will need to tidy this up using a little CSS styling. The text is wrapped in`
span.rrp-price` and `span.rrp-sale` elements so it can be targeted easily.

### There aren’t any translations of this plugin in my language, can I provide one?

Yes please! Translations are managed on [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce-rrp/).
Anyone can contribute a translation there and it will be delivered to sites automatically
once approved.

## ਸਮੀਖਿਆਵਾਂ

![](https://secure.gravatar.com/avatar/760aee0a2fb2241568b3ce6640e0dcebb5b8e6f3c21501a86928fec5b944480f?
s=60&d=retro&r=g)

### 󠀁[Easy to use](https://wordpress.org/support/topic/easy-to-use-4301/)󠁿

 [annemarieglmd](https://profiles.wordpress.org/annemarieglmd/) 6 ਮਈ 2022

Easy to use and saved me a lot of time

![](https://secure.gravatar.com/avatar/da37b4d4bd60addf9d348c070df3b2b5d3fa3955bbe4e5662b33e06c3b9bb28e?
s=60&d=retro&r=g)

### 󠀁[PPT doesn’t appear if SPT is displayed too](https://wordpress.org/support/topic/ppt-doesnt-appear-is-spt-is-displayed/)󠁿

 [isaccoitreni](https://profiles.wordpress.org/isaccoitreni/) 19 ਅਗਸਤ 2021

This is a very usefull plugin I was looking for. I only have a problem with the 
Product Price Text, if I have an Sale Price Text displayed, it doesn't appear. I
don't know why both PPT and SPT don't appears in my homepage while they have the
above descrive issue on other archive or search archive.

![](https://secure.gravatar.com/avatar/852a219694eb177d1e328268270c1d2e90b891f796131bdecd8a360932b56dd4?
s=60&d=retro&r=g)

### 󠀁[WORKS GREAT](https://wordpress.org/support/topic/works-great-6855/)󠁿

 [kammy6000](https://profiles.wordpress.org/kammy6000/) 12 ਜੂਨ 2020

works great thanks a lot , text and font sizes determined by woocommerece not the
plugin for those who need to know , working on 5.4!bye

![](https://secure.gravatar.com/avatar/b99d7641b213ccea706585ca237bc41e34b880128109c500e864306707e4d499?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-7654/)󠁿

 [herc2k8](https://profiles.wordpress.org/herc2k8/) 5 ਮਈ 2019 1 reply

works as described

![](https://secure.gravatar.com/avatar/c687837dc304e727d31e82904d0ff54ac2f280f4f5c729f45fa29b3e26e798e3?
s=60&d=retro&r=g)

### 󠀁[Great Plugin!!!](https://wordpress.org/support/topic/great-plugin-17205/)󠁿

 [wpgeekwannabe](https://profiles.wordpress.org/orlandogymrat/) 15 ਮਾਰਚ 2018

I sell steel and aluminum products. The price changes all the time. Can't list a
price online. This works great so I don't have to have woocommerce modified to have
my schema work.

![](https://secure.gravatar.com/avatar/d8e147703f70402d7f65d67f6159595ce02cddc3b8fdf6b82c1107f1838f5e1c?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-7768/)󠁿

 [gilespittock](https://profiles.wordpress.org/gilespittock/) 20 ਫਰਵਰੀ 2018

Really good plugin. Does exactly what it says it does.

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/)

## ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ

“RRP (MSRP) for WooCommerce” is open source software. The following people have 
contributed to this plugin.

ਯੋਗਦਾਨੀ

 *   [ Brad Davis ](https://profiles.wordpress.org/brad-davis/)

[“RRP (MSRP) for WooCommerce” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।](https://translate.wordpress.org/projects/wp-plugins/woocommerce-rrp)

### ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?

[Browse the code](https://plugins.trac.wordpress.org/browser/woocommerce-rrp/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/woocommerce-rrp/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/woocommerce-rrp/)
by [RSS](https://plugins.trac.wordpress.org/log/woocommerce-rrp/?limit=100&mode=stop_on_copy&format=rss).

## ਤਬਦੀਲੀ-ਚਿੱਠਾ

#### 1.9.1

 * Added “Requires Plugins: woocommerce” header, plus “Requires at least” and “Requires
   PHP” headers
 * Load the plugin on plugins_loaded and check WooCommerce is available with class_exists()
 * Removed manual text domain loading, translations are loaded automatically by 
   WordPress
 * Escape the price text with esc_html() instead of esc_attr()
 * Fixed invalid HTML (stray opening ins tag) in the sale price output
 * Price filters now always return a string
 * Removed WordPress.org directory screenshots from the plugin package
 * Readme updates: plugin name, tags, links, FAQ examples and typos

#### 1.9.0

 * This plugin is now known as RRP (MSRP) for WooCommerce, it’s a trademark thing.

#### 1.8.0

 * Added compatible with High Performance Order Storage (HPOS)
 * Tested on WordPress 6.5.3
 * Tested on WooCommerce 8.9.0

#### 1.7.6

 * Tested on WordPress 5.9
 * Tested on WooCommerce 6.2.0
 * Fixed display bug for “Product Price Text” when item is on sale
 * Fixed display for “Product Price Text” when product does not have a price
 * Changed filter priority to fire later
 * Refactoring functions in render category and single product classes

#### 1.7.5

 * Updated single product to not output product price text field when price is empty
 * Updated category view to not output product price text field when price is empty

#### 1.7.4

 * Tested on WordPress 5.5.1
 * Tested on WooCommerce 4.6.1

#### 1.7.3

 * Tested on WordPress 5.2.2
 * Tested on WooCommerce 3.7.0

#### 1.7.2

 * Tested on WordPress 5.1
 * Tested on WooCommerce 3.5.5

#### 1.7.1

 * Tested on WooCommerce 3.5.3

#### 1.7.0

 * WPCS refactor
 * Tested on WordPress 5.0.0
 * Tested on WooCommerce 3.5.2

#### 1.6

 * Added translation functions on user input strings
 * Added languages folder with po, mo and pot file in en_AU
 * Tested on WordPress v4.9.8
 * Tested on WooCommerce v3.4.4

#### 1.5

 * Tested on WordPress v4.9.6
 * Tested on WooCommerce v3.4.1

#### 1.4

 * Tested on WordPress 4.9
 * Tested on WooCommerce 3.2.4
 * Added span with class=”rrp-price” around before price string
 * Added span with class=”rrp-sale” around before sale price string

#### 1.3

 * Tested on WordPress 4.8.2
 * Tested on WooCommerce 3.2.1
 * Add WooCommerce header version check

#### 1.2

 * Tested on WordPress 4.8
 * Tested on WooCommerce 3.0.8
 * Removed   and replaced with whitespace for readers

#### 1.1

 * Added conditional check to price so text only shows if price is not empty

#### 1.0

 * Original commit and released to the world

## ਮੈਟਾ

 *  Version **1.9.1**
 *  Last updated **1 ਹਫਤਾ ਪਹਿਲਾਂ**
 *  Active installations **1,000+**
 *  WordPress version ** 6.5 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/woocommerce-rrp/)
 * Tags
 * [msrp](https://pan.wordpress.org/plugins/tags/msrp/)[price](https://pan.wordpress.org/plugins/tags/price/)
   [rrp](https://pan.wordpress.org/plugins/tags/rrp/)[Sale price](https://pan.wordpress.org/plugins/tags/sale-price/)
   [woocommerce](https://pan.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://pan.wordpress.org/plugins/woocommerce-rrp/advanced/)

## ਦਰਜਾਬੰਦੀ

 4.9 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/woocommerce-rrp/reviews/)

## ਯੋਗਦਾਨੀ

 *   [ Brad Davis ](https://profiles.wordpress.org/brad-davis/)

## ਸਹਿਯੋਗ

ਕੁਝ ਕਹਿਣਾ ਹੈ? ਮਦਦ ਚਾਹੀਦੀ ਹੈ?

 [ਸਹਿਯੋਗ ਫੋਰਮ ਦੇਖੋ](https://wordpress.org/support/plugin/woocommerce-rrp/)