Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: TypeError: $(...).chosen is not a function ERROR

TypeError: $(...).chosen is not a function ERROR 8 years 2 months ago #6918

I was receiving a weird javascript error in my cart.

TypeError: $(...).chosen is not a function
$(".vm-chzn-select").chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text});

I have the jQueryEasy plugin and I noticed that one of the users stated that I should follow these instructions :

Go to the "jQuery Easy". After setting these functions, it all worked (jQuery Easy - Advanced Site Options (Expert users only) - Ignore Scripts - chosen.jquery.min.js).
In my case - this is the reason for the error.

I have this same template in another place and I am not receiving this issue, but I am not using the jQueryEasy Plugin as well. Can we say that this is a true fact that users should follow the above?



**UPDATE**

Just noticed that by doing the following change above breaks the shipping. Not for sure if this will work or not. Any thoughts on how to fix this?
Last Edit: 8 years 2 months ago by Kory Jackson. Reason: Another error
The topic has been locked.

TypeError: $(...).chosen is not a function ERROR 8 years 2 months ago #6943

Alternatively you can disable the "chosen" functionality.

Open the Virtuemart backend and browse:
VM Configuration >> Template (TAB)

Under this section: Activate Css Styles & Javascripts
Disable this option: Use jQuery chosen for dropdowns in FE

Regards.
The topic has been locked.

TypeError: $(...).chosen is not a function ERROR 8 years 2 months ago #6954

That did the trick, Just a quick note, before I turned the feature off my State field in Checkout was not showing either in Firefox. Once I disabled this feature now the State field works. Thank you for your help...Cheers!
Last Edit: 8 years 2 months ago by Kory Jackson.
The topic has been locked.

TypeError: $(...).chosen is not a function ERROR 8 years 2 months ago #6971

It is normal if the "state" doesn't get loaded depends on the selected country, because there was a problem with the jQuery.chosen plugin.

jQuery.Chosen is a cool UI plugin but most of the time it creates problem or it conflict with other query plugins in the website. It is safe to disable that.

Case solved. Topic closed.

Regards,
Support
The topic has been locked.
Time to create page: 0.144 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo