Last active
October 4, 2018 07:35
-
-
Save AshlinRejo/91f3a14f883deb3b86473edfc05ee56a to your computer and use it in GitHub Desktop.
Woo Discount Rules: Compatible with strikeout for woocommerce-subscribe-all-the-things
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
function woo_discount_rules_run_product_price_strikeout_method($run_strikeout, $product){ | |
if(class_exists('WCS_ATT_Product_Schemes')){ | |
if (WCS_ATT_Product_Schemes::has_subscription_schemes( $product ) ) { | |
return false; | |
} | |
} | |
return $run_strikeout; | |
} | |
add_filter('woo_discount_rules_run_product_price_strikeout', 'woo_discount_rules_run_product_price_strikeout_method', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment