Hello,
Please add this code to the functions.php of the child theme:
use XTS\Modules\Quick_Buy\Main as Quick_Buy;
add_action( 'woocommerce_before_add_to_cart_button', function () {
global $product;
if ( is_a( $product, 'WC_Product_Bundle' ) ) {
$bundled_items = $product->get_bundled_items();
if ( ! empty( $bundled_items ) ) {
remove_action( 'woocommerce_after_add_to_cart_button', array( Quick_Buy::get_instance(), 'output_quick_buy_button' ), 1 );
add_action( 'woocommerce_bundles_add_to_cart_button', array( Quick_Buy::get_instance(), 'output_quick_buy_button' ) );
}
}
});
If you have any questions please feel free to contact us.
Best Regards