Javascript error when disabling selectWoo script
-
My site doesn’t use Woocommerce selectWoo script. I found a filter for this plugin to remove it from the deps of its javascript but this gives an error because the availability of selectWoo is not checked inside the JS file. Commenting out this part fixes the problem.
Uncaught TypeError: can't access property "amd", $.fn.selectWoo is undefined initialize_thwvsf https://---/wp-content/plugins/product-variation-swatches-for-woocommerce/public/assets/js/thwvsf-public.js?ver=2.0.7:610 thwvsf_public https://---/wp-content/plugins/product-variation-swatches-for-woocommerce/public/assets/js/thwvsf-public.js?ver=2.0.7:664 <anonymous> https://---/wp-content/plugins/product-variation-swatches-for-woocommerce/public/assets/js/thwvsf-public.js?ver=2.0.7:699 thwvsf-public.js:610:3 initialize_thwvsf https://---/wp-content/plugins/product-variation-swatches-for-woocommerce/public/assets/js/thwvsf-public.js?ver=2.0.7:610 thwvsf_public https://---/wp-content/plugins/product-variation-swatches-for-woocommerce/public/assets/js/thwvsf-public.js?ver=2.0.7:664 <anonymous> https://---/wp-content/plugins/product-variation-swatches-for-woocommerce/public/assets/js/thwvsf-public.js?ver=2.0.7:699
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Javascript error when disabling selectWoo script’ is closed to new replies.