Page 1 of 1

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

PostPosted: Mon Oct 20, 2014 11:58 pm
by io_pas@.....gr
Hi,

When I have OPC enabled there is a problem "TypeError: $(...).chosen is not a function" and do not adds shipping and payment cost. With OPC disabled everything works fine. Any help?

OPC 259. Joomla 2.5.27

Re: TypeError: $(...).chosen is not a function

PostPosted: Tue Oct 21, 2014 11:22 am
by io_pas@.....gr
I have installed version 250 and everything works fine but with the latest there is problem.

Re: TypeError: $(...).chosen is not a function

PostPosted: Tue Oct 21, 2014 6:54 pm
by admin
hello, can you pls try to disable the chosen script within VM config here:
Virtuemart -> Configuration -> Templates:

Image

or try our very latest opc (259+)

best regards, stan

Re: TypeError: $(...).chosen is not a function

PostPosted: Tue Oct 21, 2014 10:46 pm
by io_pas@.....gr
Thank you! The 260 works!!!

Re: TypeError: $(...).chosen is not a function

PostPosted: Wed Oct 22, 2014 12:21 pm
by admin
ok, great, the problem is that virtuemart prints this code even though it is not needed by opc and thus we had to create a hidden form which includes a hidden select that gets formatted by this chosen scripts... the much better solution would be if we could just disable the chosen programatically.

what's even worse is that the code for chosen does not check if
- if jquery is loaded
- if chosen plugin is loaded

bes tregards, stan

Re: TypeError: $(...).chosen is not a function

PostPosted: Wed Oct 22, 2014 11:47 pm
by io_pas@.....gr
The "chosen is not a function" problem solved but there is a problem with fancybox. I am wondering if I am the only one with these problems. Version 250 works perfect but the 260 not fully.

Re: TypeError: $(...).chosen is not a function

PostPosted: Thu Oct 23, 2014 12:25 pm
by admin
hello, this is highly dependent on your virtuemart's theme if it ovewrites/override your vmprices.js where the underlying problem can be caused.
i can check this on your site, i am writing you an email now.
best regards, stan