Created
September 8, 2020 10:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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