VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: authentic on July 06, 2013, 02:11:34 AM

Title: States Dropdown Problem
Post by: authentic on July 06, 2013, 02:11:34 AM
Hello All,

I am dealing with the same symptoms posted a few times on this forum, but unfortunately none solve my problem.  I am trying to get the "states" drop down to display the states properly.  Unfortunately, nothing i do seems to fix the issue.  What I have found in my digging however is this error and I believe it is the cause of my trouble....

Link to page where problem is....
www.orange20bikes.com/index.php/catalog/user/editaddresscartBT.html

[20:01:12.893] TypeError: $(...).vm2front is not a function @ http://www.orange20bikes.com/index.php/catalog/user/editaddresscartBT.html:144

Any ideas how to get this to work?  Ive tried everything suggested in other posts.
Turn off all non-joomla plug ins
Use Standard Template
Clear Cache
Etc.

Any help would be really... well....  helpful.
Thanks
Title: Re: States Dropdown Problem
Post by: franzpeter on July 06, 2013, 10:15:06 AM
What VM version are you using?
Title: Re: States Dropdown Problem
Post by: authentic on July 14, 2013, 19:09:13 PM
sorry for the very slow reply.  Life is hectic  :o
I have updated to .20b but that did not fix the issue.

I did however end up narrowing down the problem to the template.  After turning off all modules, then switching template, i got the drop-down to work.  As soon as I turn on the template, the problem is back.
I am now running the bare minimum extensions for my needs.

the site is located at : orange20bikes.com

This is the error what is holding up my launch so getting it nipped in the bud is a high priority.

Thanks all.

Title: Re: States Dropdown Problem
Post by: jenkinhill on July 14, 2013, 19:37:06 PM
The dropdowns are working for me on IE10 and Firefox 20. Usual cause of them not working is a JavaScript conflict. In your case it could be that community builder is causing problems sometimes as that loads its own jQuery library.

But it does work.
Title: Re: States Dropdown Problem
Post by: lindapowers on July 20, 2013, 05:33:53 AM
There seems to be a bug in VM with the states dropdown, happened to me also in 2.022a

The solution that worked for me (provided by the yagendoo guys):

"/administrator/components/com_virtuemart/helpers/config.php" and insert the following code in line 1112:

JFactory::getApplication()->set('jquery',TRUE);

It has to be inserted after this line:

vmJsApi::js( 'jquery.noConflict');
Title: Re: States Dropdown Problem
Post by: Milbo on July 22, 2013, 14:09:43 PM
yeh, I accidently deleted the inofficial convention to prevent loading the jquery twice. But you can also just disable jQuery in vm config.