Skip to content

Instantly share code, notes, and snippets.

@lucasstark
Created July 21, 2015 17:35
Show Gist options
  • Save lucasstark/e734ceb21cbab0bec173 to your computer and use it in GitHub Desktop.
Save lucasstark/e734ceb21cbab0bec173 to your computer and use it in GitHub Desktop.
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