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

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

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

Postby io_pas@.....gr » Mon Oct 20, 2014 11:58 pm

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
io_pas@.....gr
 
Posts: 22
Joined: Sun Aug 25, 2013 7:50 am

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

Postby io_pas@.....gr » Tue Oct 21, 2014 11:22 am

I have installed version 250 and everything works fine but with the latest there is problem.
io_pas@.....gr
 
Posts: 22
Joined: Sun Aug 25, 2013 7:50 am

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

Postby admin » Tue Oct 21, 2014 6:54 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

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

Postby io_pas@.....gr » Tue Oct 21, 2014 10:46 pm

Thank you! The 260 works!!!
io_pas@.....gr
 
Posts: 22
Joined: Sun Aug 25, 2013 7:50 am

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

Postby admin » Wed Oct 22, 2014 12:21 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

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

Postby io_pas@.....gr » Wed Oct 22, 2014 11:47 pm

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.
io_pas@.....gr
 
Posts: 22
Joined: Sun Aug 25, 2013 7:50 am

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

Postby admin » Thu Oct 23, 2014 12:25 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 2

cron