JS conflict
-
Hi,
I have a js conflict in the new version of the plugin.
Google devtools gives my the next error:jquery.js?ver=1.12.4-wp:4 Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
at a.fn.init.val (jquery.js?ver=1.12.4-wp:4)
at alg_wc_pq_update_price_by_qty (alg-wc-pq-price-by-qty.js?ver=1.7.0:11)
at HTMLDocument.<anonymous> (alg-wc-pq-price-by-qty.js?ver=1.7.0:25)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)if i remove this js:
jQuery( document ).ready( function() {
alg_wc_pq_update_price_by_qty( false, jQuery( ‘[name=”quantity”]’ ).val() );
jQuery( ‘[name=”quantity”]’ ).on( ‘input change’, alg_wc_pq_update_price_by_qty );
} );everty thing is working fine. Can you look at this? All other js doesnt work if i not remove this js
- The topic ‘JS conflict’ is closed to new replies.