Skip to content

Instantly share code, notes, and snippets.

@woogist
Created October 26, 2016 14:04
Show Gist options
  • Save woogist/8474c2a700124e5d000a17a18c4985f3 to your computer and use it in GitHub Desktop.
Save woogist/8474c2a700124e5d000a17a18c4985f3 to your computer and use it in GitHub Desktop.
Dynamic Pricing - Product Ineligible for Discounts
add_filter('woocommerce_dynamic_pricing_process_product_discounts', 'exclude_some_products', 10, 4);
function is_product_eligible( $eligible, $product, $discounter_name, $discounter_object ) {
if ($product->ID == 200){
$eligible = false;
}
return $eligible;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment