VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: irelandwebsitedesign on September 28, 2017, 10:47:31 AM

Title: Cart variant dropdown issue
Post by: irelandwebsitedesign on September 28, 2017, 10:47:31 AM
Hi,

I have a product with a few cart variants. The product has a dropdown to add a cart variant and radio buttons to also add cart variants. The dropdown doesn't work at all. If I hide the dropdown one in the backend the radio buttons ones work but if I display the cart variant in a dropdown any of them work. I check out the inspector tool and when the dropdown is displaying there is the following error:


chosen.jquery.min.js?vmver=1ad263b7:1 Uncaught TypeError: Cannot read property 'msie' of undefined
    at n.fn.init.chosen (chosen.jquery.min.js?vmver=1ad263b7:1)
    at HTMLSelectElement.<anonymous> (12redroses.html:1402)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)
    at Object.Virtuemart.updateChosenDropdownLayout (12redroses.html:1401)
    at HTMLDocument.<anonymous> (12redroses.html:1406)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at Function.ready (jquery.min.js:2)
    at HTMLDocument.K (jquery.min.js:2)


If i turn off the dropdown the radio buttons work as I said.

Any idea how to fix it?
Thanks
Title: Re: Cart variant dropdown issue
Post by: irelandwebsitedesign on September 28, 2017, 10:58:17 AM
Hi,

I found the solution. I disabled the following options in the backend:

Using the Script ajax Countries / Regions   
Use jQuery chosen for dropdowns in FE

Thanks
Title: Re: Cart variant dropdown issue
Post by: GJC Web Design on September 28, 2017, 11:01:14 AM
what versions?

It seems to be the chosen select stuff.. have u tested with the "Use jQuery chosen for dropdowns in FE" unchecked?

the msie refers to $browser detection  which is removed in the later jquery

Do the e.g. country selects work with chosen?
Title: Re: Cart variant dropdown issue
Post by: GJC Web Design on September 28, 2017, 11:02:05 AM
ah.. you beat me to it.. I would assume your versions are out of date