• Resolved Tahoe

    (@morceaudebois)


    Hi! I’ve just installed WPC AJAX Add to Cart and it works really well, except with product bundles made with the official WooCommerce plugin “Product Bundles” (https://woocommerce.com/products/product-bundles/). Only a single product of the bundle gets added to the cart, as if it was a regular product.

    Is there anything I could do about it? Or at least, how could I disable the Ajax add to cart feature with that particular type of product?

    I noticed that you made a similar plugin for bundles, and I considered switching to it on my site, but I don’t know if it would be possible to easily transfer the data from one plugin to another since you don’t mention it on your documentation.

    Thank you for your help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @morceaudebois

    You can disable AJAX add-to-cart for bundles by adding below snippet (How to add custom code?):

    add_action( 'wp_footer', 'wooaa_disable_for_bundle', 99 );
    function wooaa_disable_for_bundle() {
    	?>
        <script type="text/javascript">
          (function($) {
            $(function() {
              if ($('.product-type-bundle').length) {
                $('.product-type-bundle').find('.single_add_to_cart_button').addClass('wpc-disabled');
              }
            });
          })(jQuery);
        </script>
    	<?php
    }
    Thread Starter Tahoe

    (@morceaudebois)

    You’re great! Thanks a lot 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not working with official WC plugin “Product Bundles”’ is closed to new replies.