<?php // SalesGen.io // WooCommerce plugins, woocommerce upsell, woocommerce buy more save more /*** Follow Steps ***/ // 1 Put the code below into the functions.php of your theme add_filter('woocommerce_get_price_html', 'salesgen_hide_variation_price', 99, 2); function salesgen_hide_variation_price( $v_price, $v_product ) { $v_product_types = array( 'variable'); if ( in_array ( $v_product->product_type, $v_product_types ) && is_product() && (strpos($v_price, "–") !== false) ) { return ''; } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'flatsome_quickview') return ''; return $v_price; } // 2 copy file variable.php into folder of your theme /woocommerce/single-product/add-to-cart/ //we get file path is /wp-content/themes/[your theme folder]/woocommerce/single-product/add-to-cart//variable.php