Created
October 13, 2021 12:59
-
-
Save AshlinRejo/ddeb7491f4dc7863831eb6053b90457b to your computer and use it in GitHub Desktop.
Discount rules v2: Fix for Cart strikeout conflict due to price strikeout
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
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