Home Forums WoodMart support forum Error adding items to cart

Error adding items to cart

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #392304

    [email protected]
    Participant

    We have an issue on our site nicci.co.za.

    We are using Abandoned Cart Pro plugin for Woocomerce: https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/

    The plugin displays a pop-up for non-logged-in users to add their email addresses and then add items to the cart.

    And recently, we noticed that non-logged-in customers cannot add items to carts. The popup displays correctly but does not add to cart and it has the below error in the browser console:

    addToCartAllTypes.min.js?ver=6.5.4:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘submitter’)
    at HTMLFormElement.<anonymous> (addToCartAllTypes.min.js?ver=6.5.4:1:395)
    at HTMLBodyElement.dispatch (jquery-1.12.4-wp.js?ver=1.12.4-wp:3:12369)
    at r.handle (jquery-1.12.4-wp.js?ver=1.12.4-wp:3:9088)
    at Object.trigger (jquery-1.12.4-wp.js?ver=1.12.4-wp:3:11488)
    at jQuery.event.trigger (jquery-migrate-1.4.1-wp.js?ver=1.4.1-wp:644:22)
    at HTMLFormElement.<anonymous> (jquery-1.12.4-wp.js?ver=1.12.4-wp:3:18865)
    at Function.each (jquery-1.12.4-wp.js?ver=1.12.4-wp:2:2903)
    at jQuery.fn.init.each (jquery-1.12.4-wp.js?ver=1.12.4-wp:2:846)
    at jQuery.fn.init.trigger (jquery-1.12.4-wp.js?ver=1.12.4-wp:3:18841)
    at n.fn.<computed> [as submit] (jquery-1.12.4-wp.js?ver=1.12.4-wp:4:16185)

    And it refers to the below file:
    https://nicci.jhnet.co.za/content/themes/woodmart/js/scripts/wc/addToCartAllTypes.min.js?ver=6.5.4

    I know this is not your plugin but I was hoping you could assist in identifying where the issue is.

    Regards

    Richard.

    #392367

    Luke Nielsen
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress themes (e.g Storefront) just to understand is it our theme issue or not?

    Looking forward to collaborating with you!

    Kind Regards

    #392572

    [email protected]
    Participant

    Hi Luke,

    I have just tried now with the 2022 theme and the pop-up works correctly.

    #392784

    Luke Nielsen
    Keymaster

    Hello,

    Please apply the 390080 patch via WoodMart -> Patcher.

    https://gyazo.com/a4f91df596c5e5eefdd60919224788ff

    I’d be happy to assist if you have any other questions or concerns.

    Kind Regards

    #392790

    [email protected]
    Participant

    I have applied the patch and the issue is resolved.

    Thanks.

    #392794

    Luke Nielsen
    Keymaster

    Hello,

    Glad that everything is sorted out.

    Always remember that you can reach out to us with any questions you may have.

    We wish you a splendid day!

    Kind Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Error adding items to cart’ is closed to new replies.