Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/91f3a14f883deb3b86473edfc05ee56a to your computer and use it in GitHub Desktop.
Save AshlinRejo/91f3a14f883deb3b86473edfc05ee56a to your computer and use it in GitHub Desktop.
Woo Discount Rules: Compatible with strikeout for woocommerce-subscribe-all-the-things
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