MSRP Pricing

The WooCommerce MSRP plugin allows you to record Manufacturer Suggested Retail Prices / Recommended Retail Prices against your products, and have them displayed on the sales pages. This allows your customers to see why it’s a good idea to buy from you. You can also show them how much they’re saving – either as a monetary value, or as a percentage.

Installation

↑ Back to top
  • Unzip and upload the plugin’s folder to your /wp-content/plugins/ directory
  • Activate the extension through the ‘Plugins’ menu in WordPress
  • Review the extension’s settings by going to WooCommerce » Settings » General and scrolling down to the “MSRP pricing options” section

For more information on installing and managing plugins see here

Usage

↑ Back to top

Entering MSRP prices

↑ Back to top

On your product edit screens you’ll now see an extra field in with the normal pricing information, labelled MSRP.

You can enter the MSRP here and it will be shown on the front end to your customers. By default the MSRP will be shown struck-out – much like a sale price. You can style these however you want, the whole content is within a div with a class of woocommerce_msrp, and the price itself is within a span with a class of woocommerce_msrp_price.

Managing MSRP prices

↑ Back to top

As well as being able to see the MSRP prices on the individual edit product pages, you’ll also see the MSRP prices listed in the main WooCommerce product list:

If you don’t want MSRP prices included in the product list, you can disable this behaviour with the following snippet:

<?php
add_filter( 'woocommerce_msrp_price_column_hidden', '__return_true' );
view raw functions.php hosted with ❤ by GitHub

You can also enter MSRP prices using the “Quick Edit” links against products on the product listing page.

Managing MSRPs in bulk

↑ Back to top

The plugin has full support for WooCommerce’s built-in CSV export/import tool, so you can use that to export MSRP prices for your products, or to bulk import/update them against both products, and variations as required.

If you’re using a 3rd-party import tool, then the MSRPs can be imported by using meta key _msrp (for variations) and _msrp_price (for products).

It is possible to have MSRP pricing both product wide and with each individual variation.

Options

↑ Back to top

Show MSRP Pricing?

↑ Back to top

You can choose to display MSRP pricing:

Always – All the time

Only if different – Only if the MSRP is different from your standard price for the product

Never

MSRP Labelling

↑ Back to top

Choose what you want to label the prices as – defaults to “MSRP”, but can be set to what you want

Show savings

↑ Back to top

Choose whether to automatically show how much a customer is saving. You can either disable this entirely, or choose to have the saving shown as a monetary amount (You save $5.00), or as a percentage (You save 25%).

Controlling output

↑ Back to top

Hook re-ordering

↑ Back to top

The MSRP price output on product pages is carried out on WooCommerce’s woocommerce_single_product_summary hook with a priority of 7. This normally places it after the title, but before the rating, and price.

If you want, you can un-hook this, and output it on a different hook, or even just at a different priority to change the location on the page. As an example, this snippet moves it after the product price:

<?php
add_action( 'init', function () {
global $woocommerce_msrp_frontend;
remove_action(
'woocommerce_single_product_summary',
[ $woocommerce_msrp_frontend, 'show_msrp' ],
7
);
add_action(
'woocommerce_single_product_summary',
[ $woocommerce_msrp_frontend, 'show_msrp' ],
12
);
} );
view raw functions.php hosted with ❤ by GitHub

Shortcodes

↑ Back to top

You can output the MSRP information for a product using a shortcode in your content:

[product_msrp_info]

The MSRP will be shown automatically for the global $product.

If the global product is not set, you can specify the product ID by adding it as a shortcode argument:

[product_msrp_info product_id="{put the desired product ID here}"]

Template functions

↑ Back to top

You can trigger output from a particular template file by using the function woocommerce_msrp_show_msrp_info() which will output the MSRP for the global $product if one is defined. If the global $product variable is not defined, then you should pass in the WC_Product object to the function, e.g.

woocommerce_msrp_show_msrp_info( $wc_product );

Questions & Support

↑ Back to top

Have a question before you buy? Please fill out this pre-sales form.

Already purchased and need some assistance? Get in touch the developer via the Help Desk.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.