Uncaught TypeError: Cannot read property 'src' of undefined
-
Hi, I am having a problem when select a variable option and product reload a variable image it caught error :
Uncaught TypeError: Cannot read property ‘src’ of undefined as a screenshot below.
Could you please investigate this problem for me that what’s make this error happen. Thank you so much in advance.
Live site : https://alfabase.co.th/product/test-patch-cord-singlemode-sm-simplex/
Attachments:
You must be
logged in to view attached files.
Hello,
Could you please disable all plugins that are not related to our theme so we can check it?
Thank you in advance
Yes, sure. I disable all unrelated with your theme already. Please go ahead check it out.
Try to add the following PHP code snippet to the child theme functions.php
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 150;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
OK, now its working. Thanks
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘Uncaught TypeError: Cannot read property 'src' of undefined’ is closed to new replies.