News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Cart variant dropdown issue

Started by irelandwebsitedesign, September 28, 2017, 10:47:31 AM

Previous topic - Next topic

irelandwebsitedesign

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

irelandwebsitedesign

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

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

GJC Web Design

ah.. you beat me to it.. I would assume your versions are out of date
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation