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