The original product price may not be of interest to wholesale buyers so just hide it. Or change the layout of the sale and original prices.
I found that variable products use a different filter. I copied a tiny portion of the WooCommerce code in order to display the lowest sale price. I have updated the gist so that it will work for simple and variable products.
I recently wondered how to display only the discounted price as I figured that the wholesaler doesn’t need to see that the products are being offered to them at a lower price. Showing the original price is unnecessary visual clutter. I fired up a local WooCommerce installation and looked at the generated html for a product that was discounted by the Dynamic Pricing plugin.
I found the ‘woocommerce-Price-amount amount‘ class string in the wc_price() function in includes/wc-formatting-functions.php. The <del> markup is in the wc_format_sale_price() function in the same file and it has a filter (woocommerce_format_sale_price) that looks useful.
Show Only Sale Price
I only needed to do a quick experiment with the ‘woocommerce_format_sale_price‘ to see that it was the right filter. When I began working on this post I was expecting the solution to be specific to the Dynamic Pricing plugin but it applies to base WooCommerce too. The solution is very simple too.
The wc_price() function does a lot of work e.g. determining the currency symbol and how many decimal places to display. It’s a pity that my code has to call it again (it was already called twice in wc_format_sale_price()).
My code only shows the sale price. It could easily be modified to include the regular price e.g. display the sale price and then the regular price under it.
You will need some CSS to style the markup, perhaps displaying the RRP span smaller and in a lighter colour.