Java Script Error on add to cart
-
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
- The topic ‘Java Script Error on add to cart’ is closed to new replies.