Created
October 16, 2018 08:25
-
-
Save AshlinRejo/535bcaa4220122084304df9e9886d689 to your computer and use it in GitHub Desktop.
Woo Discount Rules: Display only least price in product page strikeout for variable products
This file contains hidden or 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
if(!function_exists('woo_discount_rules_load_minimum_product_variant_price_method')){ | |
function woo_discount_rules_load_minimum_product_variant_price_method($load_min_price, $product){ | |
return true; | |
} | |
} | |
add_filter('woo_discount_rules_load_minimum_product_variant_price', 'woo_discount_rules_load_minimum_product_variant_price_method', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment