Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AshlinRejo/c467d649c70f62a39c7b361cdb9deb4c to your computer and use it in GitHub Desktop.
Save AshlinRejo/c467d649c70f62a39c7b361cdb9deb4c to your computer and use it in GitHub Desktop.
Discount rules: Exclude strikeout for specific product type
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