Created
October 26, 2016 14:04
-
-
Save woogist/8474c2a700124e5d000a17a18c4985f3 to your computer and use it in GitHub Desktop.
Dynamic Pricing - Product Ineligible for Discounts
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_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