Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/ddeb7491f4dc7863831eb6053b90457b to your computer and use it in GitHub Desktop.
Save AshlinRejo/ddeb7491f4dc7863831eb6053b90457b to your computer and use it in GitHub Desktop.
Discount rules v2: Fix for Cart strikeout conflict due to price strikeout
add_filter('advanced_woo_discount_rules_modify_price_html', function ($apply_strikeout){
if(function_exists('is_cart')){
if(is_cart()){
$apply_strikeout = false;
}
}
return $apply_strikeout;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment