Created
November 29, 2019 13:12
-
-
Save AshlinRejo/c467d649c70f62a39c7b361cdb9deb4c to your computer and use it in GitHub Desktop.
Discount rules: Exclude strikeout for specific product type
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
function woo_discount_rules_exclude_product_type_for_sale_price_strikeout_adjustment_method($exclude_product_type, $product){ | |
$exclude_product_type[] = 'auction'; | |
return $exclude_product_type; | |
} | |
add_filter('woo_discount_rules_exclude_product_type_for_sale_price_strikeout_adjustment', 'woo_discount_rules_exclude_product_type_for_sale_price_strikeout_adjustment_method', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment