• 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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Algoritmika

    (@algoritmika)

    Hi @brandinwebdesign,

    Thanks for the info. Already checking this – will try to release new plugin version with the fix today. Meanwhile, this is obviously coming from “Price Display by Quantity” section, so if you disable it, the error should be gone.

    Plugin Contributor Algoritmika

    (@algoritmika)

    Hi @brandinwebdesign,

    We’ve just released new plugin version 1.7.1. JS error should be fixed now.

    Thread Starter brandinwebdesign

    (@brandinwebdesign)

    @algoritmika,

    Yes that problem is fixed.
    Only i have now een problem in variable products.
    Single product the quantity is working good and the dropdown. Now if i have a variable product. Before i select a variable the quantity works. If i select a the variables than is the quantity is broken. This is with dropdown and without dropdown. Can you check this for me?

    Thread Starter brandinwebdesign

    (@brandinwebdesign)

    @algoritmika ,

    sorry my mistake. I checkt what settings and i see that i had a wrong setting

    Plugin Contributor Algoritmika

    (@algoritmika)

    Hi @brandinwebdesign,

    Sorry for a late reply. So it’s working properly, correct? Can I mark thread as “resolved”?

    Thread Starter brandinwebdesign

    (@brandinwebdesign)

    hi @algoritmika,

    i have problems with the dropdown ??

    by single product it works great. Only by variable product he takes only the minimal quantity. Do I have a setting wrong? What are the beste settings for dropdown by variabels?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘JS conflict’ is closed to new replies.