Disable strikeout for WPC Product Bundles for WooCommerce products
Disable strikeout for WPC Product Bundles for WooCommerce products
if(!function_exists('woo_discount_rules_has_price_override_method')){
function woo_discount_rules_has_price_override_method($hasPriceOverride, $product){
return true;
}
}
add_filter('woo_discount_rules_has_price_override', 'woo_discount_rules_has_price_override_method', 10, 2);
function woo_discount_rules_run_product_price_strikeout_disbale_for_bundle_product($do_strikeout, $product){
if($product->get_type() == "woosb"){
$do_strikeout = false;
}
return $do_strikeout;
}
add_filter('woo_discount_rules_run_product_price_strikeout', 'woo_discount_rules_run_product_price_strikeout_disbale_for_bundle_product', 10, 2);