+91 9737971210
info@wordpressdeveloperonline.com
Facebook
Facebook
Twitter
Twitter
Google+
Google+
LinkedIn
LinkedIn
Instagram
Instagram
WORDPRESS DEVELOPER
Menu
  • HOME
  • SERVICES
    • Free WordPress Setup
      • Free WordPress Website Blog
    • Hire WordPress Developer
      • WordPress Emergency Support
      • Hire PHP Developer
      • Hire WooCommerce Developer
      • Woocommerce Customization
      • Fix WordPress Errors
      • Fix WordPress Security
      • Multi Language Website Blog with WPML
    • Online Shopping Website
    • WordPress Theme Development
      • Avada Theme Experts
      • Divi Expert Services
      • Enfold Theme Expert
      • Jupiter Theme Expert
      • X Theme Expert Services
      • NewsPaper Theme Experts Services
    • PSD to WordPress
    • Speed Performance Optimization
    • WordPress Hosting Migration
    • SEO Link Building
  • PACKAGES
    • Speed Optimization Packages
  • WHY WE
    • PORTFOLIO
    • TESTIMONIALS
    • CAREER
  • BLOG
  • CONTACT

Disable product sale prices in WooCommerce

September 20, 2018wordpressdeveloperWoocommerce

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