Uncaught TypeError: Cannot read properties of undefined (reading ‘get’)
-
Hi there
This is our staging site. We have an issue with your plugin causing an error:
“Uncaught TypeError: Cannot read properties of undefined (reading ‘get’)” in the Chrome Console.
The offending line of code is:
var currencySymbol = $($(button.get()[0]).closest(‘.product’).find(‘.woocommerce-Price-currencySymbol’).get()[0]).text();
This happens the moment one tries to add an item to the cart, but not in the normal public shop, on our table based ordering shop. Think the button.get() is failing due to the button implementation differing.
This is quite critical as it’s preventing us from using the plugin for facebook pixel tracking. But perhap you have ideas on how to easily resolve this.
Thank you
Ernst
The page I need help with: [log in to see the link]
- The topic ‘Uncaught TypeError: Cannot read properties of undefined (reading ‘get’)’ is closed to new replies.