Where to find the Advised Price (MSRP) in WordPress
Standard WooCommerce supports two types of prices: Regular Price and Sale Price. However, StoreLinkr supports a more comprehensive pricing structure to help you manage your margins and marketing better.
Pricing Structure Mapping
StoreLinkr maps its internal price types to WooCommerce as follows:
| StoreLinkr Price Type | WooCommerce / Meta Field | Description |
|---|---|---|
| Selling Price | _regular_price | The standard price your customers pay. |
| Promotional Price | _sale_price | The discounted price (if active). |
| Advised Price | advised_price | The MSRP (Suggested Retail Price). |
Show the advised price as a "was" price without code
Do you want WooCommerce to show the advised price struck through next to a lower selling price, with the Sale label? Turn on Show the advised price as the regular price in the settings of your WooCommerce integration.
When the setting is on and the selling price of a product is lower than its advised price:
| WooCommerce field | Value |
|---|---|
_regular_price | The advised price |
_sale_price | The selling price |
The setting changes nothing for a product without an advised price, or with an advised price that is not higher than the selling price. A promotional price from your source, such as a promotional price in CycleSoftware, always takes precedence and keeps its start and end date.
Products change in WooCommerce at their next update. To update all products right away, click Export now on the integration page.
How to Display the Advised Price
Because advised_price is a custom field, it does not show up in the WooCommerce frontend by default. You can display it using a code snippet or a page builder.
Developer Example: Displaying MSRP
Add this code to your theme's functions.php to show the Advised Price on the product page.
add_action( 'woocommerce_single_product_summary', 'show_storelinkr_advised_price', 25 );
function show_storelinkr_advised_price() {
global $product;
// Get the MSRP from the custom meta field
$advised_price = $product->get_meta( 'advised_price' );
if ( ! empty( $advised_price ) ) {
echo '<p class="advised-price">MSRP: ' . wc_price( $advised_price ) . '</p>';
}
}
Benefits of using Advised Price
- Strikethrough Pricing: You can use the Advised Price to show customers how much they are saving compared to the manufacturer's suggestion.
- Dynamic Pricing: Use the MSRP as a baseline for your pricing rules in the StoreLinkr portal.
- Marketplace Compliance: Many marketplaces (like Amazon or Bol.com) require an MSRP for specific categories.