Created
August 29, 2022 11:49
-
-
Save AshlinRejo/5a8e4b9dfa058a673d56c82452262abe to your computer and use it in GitHub Desktop.
Discount rules v2: Disable strikeout for variable price
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
add_filter('advanced_woo_discount_rules_modify_price_html', function ($modify, $price_html, $product, $quantity){ | |
if($product->is_type(array('variable'))){ | |
$modify = false; | |
} | |
return $modify; | |
}, 10, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment