Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Balakrishnan-flycart/c9753c5c074b52c3c308ebcedb03b9ec to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/c9753c5c074b52c3c308ebcedb03b9ec to your computer and use it in GitHub Desktop.
Woo Discount Rules v2: Display only least price with prefix in product page strikeout for variable products
add_filter('advanced_woo_discount_rules_format_sale_price_range', function($html, $min_price, $max_price){
$html = wc_price($min_price);
return "From ".$html;
}, 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment