Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/5a8e4b9dfa058a673d56c82452262abe to your computer and use it in GitHub Desktop.
Save AshlinRejo/5a8e4b9dfa058a673d56c82452262abe to your computer and use it in GitHub Desktop.
Discount rules v2: Disable strikeout for variable price
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