• Resolved nirajnagar

    (@nirajnagar)


    I am getting two errors.

    1) When I select variation on the variable product page, price is not displayed.
    and console shows below error for anything which is using jquery on the page.

    Error says, please select some option before adding this product to your cart.

    add-to-cart-variation.min.js?ver=6.2.0:1 Uncaught TypeError: wp.template is not a function
    at _ (add-to-cart-variation.min.js?ver=6.2.0:1:13357)
    at HTMLFormElement.t.onFoundVariation (add-to-cart-variation.min.js?ver=6.2.0:1:6237)
    at HTMLFormElement.dispatch (jquery.min.js?ver=3.6.0:2:43064)
    at HTMLFormElement.v.handle (jquery.min.js?ver=3.6.0:2:41048)
    at Object.trigger (jquery.min.js?ver=3.6.0:2:71515)
    at HTMLFormElement.<anonymous> (jquery.min.js?ver=3.6.0:2:72110)
    at Function.each (jquery.min.js?ver=3.6.0:2:3003)
    at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
    at s.fn.init.trigger (jquery.min.js?ver=3.6.0:2:72086)
    at HTMLFormElement.t.onFindVariation (add-to-cart-variation.min.js?ver=6.2.0:1:5099)

    Non of the variable product is going to cart. Customers are unable to buy any variable products listed on the website.

    Please suggest some fix.

    Regards,
    Niraj

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    This kind of problem is usually caused by a conflict with your theme or with another plugin. To determine what’s causing the issue, please temporarily switch your theme back to Storefront and disable all plugins except for WooCommerce. If that resolves the issue, then re-enable plugins one-by-one until you find the one that’s causing the conflict.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    If you’d like to take a closer look, please share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter nirajnagar

    (@nirajnagar)

    Hello Maykato,

    You are right. I disabled Async JavaScript and chaty plugins. And reactivated one by one and it got resolved.

    But enabling Async JavaScript plugin is generating one small issue which is mentioned below.

    Failed to load resource: net::ERR_BLOCKED_BY_CLIENT js:1
    Failed to load resource: net::ERR_BLOCKED_BY_CLIENT js:2

    JQMIGRATE: Migrate is installed, version 3.3.2

    Uncaught ReferenceError: woodmartThemeModule is not defined
    at woocommerceNotices.js?ver=6.2.4:3:2
    at woocommerceNotices.js?ver=6.2.4:18:3

    Uncaught ReferenceError: woodmartThemeModule is not defined
    woocommerceNotices.js?ver=6.2.4:3

    Uncaught ReferenceError: _ is not defined
    at wp-util.min.js?ver=5.9:2:110
    at wp-util.min.js?ver=5.9:2:1297
    wp-util.min.js?ver=5.9

    Thanks,
    Niraj

    @nirajnagar

    If the Async plugin is causing this new issue, kindly reach out to the developer support for help as our support scope does not cover 3rd-party plugins

    Thread Starter nirajnagar

    (@nirajnagar)

    Hello Oyadeyi,

    I know this, I just shared the update from my end. I will contact with the Async plugin separately.

    Cheers,
    Niraj

    @nirajnagar

    Glad to hear it – thanks for letting us know!

    If you have any further questions, I recommend creating a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Java Script Error on add to cart’ is closed to new replies.