Uncaught TypeError ‘checkValidity’ when product is out of stock
-
Hi there,
I’m seeing the following error appear on all products which are out of stock and unavailable for purchase –
Uncaught TypeError: Cannot read property ‘checkValidity’ of undefined
at validate_form (wc-gateway-ppec-generate-cart.js?ver=1.6.10:46)
at wc-gateway-ppec-generate-cart.js?ver=1.6.10:70
at wc-gateway-ppec-generate-cart.js?ver=1.6.10:126It seems that the plugin is looking for the add to cart form but can’t find it (due to the product being unavailable for purchase) – there is no condition setup within the plugin to check if the product is in stock or not. Can this be added in a future release so that the error doesn’t keep appearing?
Many thanks,
Gordon
- The topic ‘Uncaught TypeError ‘checkValidity’ when product is out of stock’ is closed to new replies.