Public Ticket #4519641

Hiding sales badges

Closed
Comments
2,762
KingsPlugins replied 11 months ago on November 24, 2025 at 5:07pm

Hi Kjetil,

Thank you for purchasing our plugin!

Indeed, when dynamic rule discounts are applied, they show as a sale price with a badge by default. To hide the badges for these discount rules, please add this code snippet to your theme's functions.php or any code snippets plugin:

add_filter('b2bking_dynamic_recalculate_sale_price_badge', '__return_false');

 

Additionally, if you'd like, it is also possible to show only the discounted price (without the old price crossed out, not appearing 'on sale'). For that you can add this snippet:

add_filter('b2bking_dynamic_recalculate_sale_price_display', function($price_html, $product, $sale_price){
return wc_price($sale_price);
}, 10, 3);

This way the price will simply appear as a regular price.

 

Let me know if this works for you or if you need any adjustments,

Kind regards,
Stefan

Sign In