• Hi there,
    The “Add Row” button on my site is trying to add items to the cart.

    If I try to add a row before adding any products, then I get an error that says “Make sure to set a quantity! Please try again.”

    If I try to add a row after I’ve added products, then the items are added to the cart and I don’t get my new row.

    Any ideas what’s going on?

    https://www.ads-software.com/plugins/woocommerce-bulk-order-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter shainanz

    (@shainanz)

    It’s conflicting with jQuery, which I’ve linked to using an enqueue script in functions.php. I just switched from linking to Google’s CDN in my header to the enqueue method in order to prevent conflicts, but it looks like I’m still having one here.

    What can I do to resolve this?

    My enqueue script:

    <?php
    //Replace the default WordPress jQuery script with Google Libraries jQuery script
    function modify_jquery() {
        if (!is_admin()) {
            wp_deregister_script('jquery');
            wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2');
            wp_enqueue_script('jquery');
        }
    }
    add_action('init', 'modify_jquery');
    ?>

    From the console: “Uncaught TypeError: undefined is not a function” in wcbulkorder_acsearch.js line 107.

    Thread Starter shainanz

    (@shainanz)

    The plugin must use an older version of jQuery, so when I enqueued the latest version, .live() no longer worked. In wcbulkorder_acsearch.js, I had to change .live() to .on() to get rid of the error.

    Could this please be addressed in future versions of the plugin so I don’t have to make changes to the plugin files?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Row Button is trying to add to cart’ is closed to new replies.