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). |
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.