Once again we take a quick look at the world of B2B Market for WooCommerce. This time it is about the RRP (recommended retail price) that can be set in the backend. It can also be enabled via the plugin settings and is then delivered automatically through the hook. With the following piece of code, you can display the RRP wherever you want on the product page. This is especially handy if you control your product page with a page builder, for example.
function osulzer_b2bmarket_uvp_shortcode() {
ob_start();
echo '<div class="osulzer-b2bmarket-uvp">';
$show_discounts = BM_Show_Discounts::get_instance();
$show_discounts->show_rrp();
echo '</div>';
return ob_get_clean();
}
add_shortcode('osulzer_b2bmarket_uvp', 'osulzer_b2bmarket_uvp_shortcode');




