Created
July 21, 2015 17:35
-
-
Save lucasstark/e734ceb21cbab0bec173 to your computer and use it in GitHub Desktop.
This file contains 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('woocommerce_dynamic_pricing_is_cumulative', 'on_woocommerce_dynamic_pricing_is_cumulative', 10, 3); | |
function on_woocommerce_dynamic_pricing_is_cumulative($cumulative, $discounter_name, $cart_item) { | |
if ($discounter_name == 'simple_category' || $discounter_name == 'simple_membership') { | |
$cumulative = false; | |
} | |
return $cumulative; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment