/**
  * Allows ajax add-to-cart to work in WC 2.3/2.4.
  * Fixes QuickView support when ajax add-to-cart is active and QuickView operates without a separate button.
  *
  * @param   $link
  * @param   $WC_Product
  * @return  string
  */
 public function woo_bundles_loop_add_to_cart_link($link, $product)
 {
     if ($product->is_type('bundle')) {
         if ($product->is_in_stock() && !$product->requires_input()) {
             // In WC 2.5, this is controlled by adding 'ajax_add_to_cart' support in the product ->supports property.
             if (!WC_PB_Core_Compatibility::is_wc_version_gte_2_5()) {
                 $link = str_replace('product_type_bundle', 'product_type_bundle product_type_simple', $link);
             }
         } else {
             $link = str_replace('product_type_bundle', 'product_type_bundle product_type_bundle_input_required', $link);
         }
     }
     return $link;
 }