fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Compatibility issue with YITH Product Bundle

Nitin Sajwan

I am having the same issue as the user here: “https://getwooplugins.com/ticket/97299/”

If there is a bundle created via YITH Bundle with 2 variable products like here: https://www.comicsense.in/product/karasuno-10-jersey/

If any 1 of the variant of any of the product is sold out then none of the combination can be added to cart.
It always shows the error that the product is not in stock.

The issue doesn’t happens if the “Variation Swatches” plugin is disabled.

Hakik Zaman

Hello Nitin,

We are very sorry for your inconvenience.

Basically, YITH Bundle Plugin’s javascript added disabled class after selecting a variation on a single product page.

Our dev team is working on this issue and still, they couldn’t fix the JS conflict with the YITH bundle. You can install and activate Code Snippet Plugin. Then put the below code as a snippet inside Code Snippet-

function wvs_temp_yith_bundle_solution(){
   global $product;
   $add_to_cart_button = '<input type="submit" class="single_add_to_cart_button button alt yith-wcpb-add-to-cart-button" value="'.esc_html( $product->single_add_to_cart_text() ).'">';
   return $add_to_cart_button;
}

add_filter('yith_wcpb_single_product_add_to_cart_button', 'wvs_temp_yith_bundle_solution');

Note: It is not a permanent solution. But it is a temporary solution for you.

We will notify you once the dev team confirms a permanent solution. Till then please use the above snippet.

Thanks

Nitin Sajwan

Alright thanks.

For now i have disable the pro version of the plugin. And the issue is not there any more.