"Exclude buy_x_get_y the cheapest child products compatibility for WooCommerce Product Bundles (by
Exclude compatibility with "buy_x_get_y" for the cheapest child products in WooCommerce Product Bundles.
// Exclude buy_x_get_y the cheapest child products compatibility for WooCommerce Product Bundles
add_filter('advanced_woo_discount_rules_process_cart_item_for_cheapest_rule', function($calculate_discount, $cart_item){
if(isset($cart_item['bundled_item_id']) && !empty($cart_item['bundled_item_id'])){
$calculate_discount = false;
}
return $calculate_discount;
}, 100, 2);