In WooCommerce, you want to disable all sale prices in some case. Well, it’s not possible in WooCommerce features. So, here i show you how to disable product sale prices in WooCommerce through the entire store.
Add below code in your theme’s functions.php file of your active child theme (or theme) and save the file.
function get_sale_price( $sale_price, $product ) { return $product->get_regular_price(); return $sale_price; } add_filter( 'woocommerce_product_get_sale_price', 'get_sale_price', 50, 2 ); add_filter( 'woocommerce_product_get_price', 'get_sale_price', 50, 2 );