VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: theengel on August 12, 2013, 18:15:44 PM

Title: Another "State Drop Down Not Working" Problem
Post by: theengel on August 12, 2013, 18:15:44 PM
I've been going through the forums all morning and trying all of the suggestions to get my user registration working--the state drop down doesn't work.

I've switched to Beez and Atomic templates.  I've turned off and on Virtuemart Jquery (along with all the other options in that block of configuration settings) and nothing works.  I've disabled and re-enabled modules and plugins.  I can't seem to get anywhere.  Any help would be greatly appreciated.

I'm pretty newb with code, but I think I can handle something if someone points me in the right direction.

Site - addresserbasedsystems.com/new

Virtuemart - 2.0.22a
Joomla - 2.5.14
Title: Re: Another "State Drop Down Not Working" Problem
Post by: theengel on August 12, 2013, 19:31:44 PM
Looking at the elements in Chrome, I see this message:

Uncaught TypeError: Object [object Object] has no method 'chosen'
Title: Re: Another "State Drop Down Not Working" Problem
Post by: Maxim Pishnyak on August 12, 2013, 19:34:09 PM
Isn't there an special option near mentioned by you option for VM jquery (VM configuration)? This option in new VM control States dropdown.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: theengel on August 12, 2013, 19:39:48 PM
Yeah--use external google jquery.  I've tried it acticated and unactivated, and nothing changes.  And I have cache turned off.

These are the following option in CSS and Javascript options:

Use Fancybox   
Using the VirtueMart CSS   
Using the VirtueMart jQuery   
Using the product Scripts   
Using the Script ajax Countries / Regions   
Use jQuery chosen for dropdowns in FE   
Use external google jQuery library   


I've played with all of these, trying to get it working.

I wonder if I have a corrupt file somewhere.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: jenkinhill on August 13, 2013, 10:37:09 AM
Other possible causes are the use of some plugins, so it is worth disabling all plugins that are not part of a standard Joomla installation (eg Azrul plugin has been found to cause problems for some).
Title: Re: Another "State Drop Down Not Working" Problem
Post by: Maxim Pishnyak on August 13, 2013, 11:25:22 AM
'Use jQuery chosen for dropdowns in FE' must be turned on anyway. Switch it on, pls, and knock here again.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: Milbo on August 13, 2013, 11:28:38 AM
I think you just unpublished the states or so. I was on your page and people can only use usa, or outside usa. Maybe your states are just not referenced to it anylonger.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: theengel on August 13, 2013, 14:15:27 PM
I turned on 'Use jQuery chosen for dropdowns in FE'  and nothing changed.

I've disabled plugins, one at a time, and then checked, and nothing changed. 

I got rid of all the countries except US because they don't ship to anywhere but the US.  But on the back-end, the states are all there.

Last night, I started a new installation in another folder (which is actually an upgrade from Joomla 1.5 & VM 1).  I'm watching the form as I install everything, and waiting to see if the problem happens again.  So far, the form is working on the new installation.  Still banging my head to find out what caused it.

Thanks everyone for ideas.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: rsd on November 12, 2013, 19:58:50 PM
I noticed the same problem.

It is related to the use of relative URLs (from jQuery AJAX call) in a SEF environment.

so the url is www.domain.com/account/checkout/address/bt
and the jQuery is trying to access: www.domain.com/account/checkout/address/index.php?......

So you can either use an BASE HREF (which if badly use might break other stuff/template)
Or make sure that the SEF URL is in the site root. e.g. www.domain.com/account-checkout-address-bt

Title: Re: Another "State Drop Down Not Working" Problem
Post by: admiss on January 09, 2014, 12:09:39 PM
Virtuemart 2.0.22b
Joomla 2.5

States in back end are published, but not visible(chooseable) on the site.

Uncaught TypeError: Object [object Object] has no method 'chosen'        >>> user-account:78

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


view-source:http://www.foodhungary.co.uk/user-account


Appreciate any help .
Thanks

[attachment cleanup by admin]
Title: Re: Another "State Drop Down Not Working" Problem
Post by: jenkinhill on January 09, 2014, 12:52:01 PM
You have a JavaScript conflict as notified here:  http://forum.virtuemart.net/index.php?topic=117697.msg414268#msg414268
Title: Re: Another "State Drop Down Not Working" Problem
Post by: tec on February 09, 2014, 05:18:29 AM
Hey everyone, hope you are all doing well.
I am having the same issue with the states dropdown. I do not believe it is a script conflict, however, I have been looking at this thing so long its all just a blur now.
I have the latest VM and using Joom 2.5.17
Joom sef urls are on, VM seo is ENABLED.
I have played with all of the css and script settings in the VM admin

If I use the sef url
http://www.tg-instrument.se/user/editaddresscartBT
the states do not populate

however if I use the non sef urls
http://www.tg-instrument.se/index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT
the states show up

any thoughts?

Thankies
T

UPDATE--
I finally got my firebug to work properly and this is what it spit out

"NetworkError: 404 Not Found - http://www.tg-instrument.se/user/index.php?option=com_virtuemart&view=state&format=json&virtuemart_country_id=38"

thoughts?
Title: Re: Another "State Drop Down Not Working" Problem
Post by: Milbo on February 10, 2014, 11:50:00 AM
lol damnit, I answered to the wrong post, sry

I just tried it. Seems that your nginx is asking in /user/. editaddresscartBT is replacement against index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT. But the 'users' stays. Strange thing. Maybe connected to your nginx.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: T.A. Garrison, LLC on February 11, 2014, 22:08:27 PM
Hey Milbo, and others...having the same although "odd" problem.

If the user goes through the process of ordering, selecting the UPS shipping method (I have the UPS plugin for VM2), when the user gets to the "Select a Country", the only 1 I wanted available is there.
When the user goes to the Select a State, all of the states are available.

BUT...
If a user attempts to create a "new" account, without going through the order process, when you get to "Select a State", there is nothing....

So in one form, everything works perfectly.
In the other form, states are not available.

Like the others here, I've tried a LOT of variations with jQuery, using the Joomla Login, etc. But I'm not finding anything that works to resolve this issue.

If the user goes through the "standard" order process, everything will work perfectly.
But if they want to create an account and do nothing else, they can't.

I would agree there "could be" a JavaScript conflict. But...really? How many scripts are there in a site to be able to drill-down through them all?

The Login that I'm using is the "Slick Login Plus Virtuemart".
When using the standard Joomla Login there is no state from which to select.

You folks have studied these files a lot more than I. Can anybody provide a bit more direction as to where I can look to find a resolve?

This is nuts....

I just located this thread - to which there are no answers, and it's almost a year old:
http://forum.virtuemart.net/index.php?topic=116170.0 (http://forum.virtuemart.net/index.php?topic=116170.0)
That person described my "exact" situation.

Before finding that thread I had just found the "Maintenance" link compared to the cart. I was trying to figure out if it was something in the specific login plugin I was using, or if it was something with VM2.
From that I can tell, this is definitely something in VM2 since the exact same thing happens with the "Maintenance" page.

In fact, the login that I'm using, when someone clicks on the link to "Create an account", the plugin automatically takes the user to the "my-account" which is the VM2 maintenance page.

Ok. So, thoughts? Please...
Title: Re: Another "State Drop Down Not Working" Problem
Post by: mfuller526 on April 14, 2014, 04:33:13 AM
Once I specified the country (United States) the state drop down worked. I'm using VM 2.6.0.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: JacoboPS on October 13, 2014, 18:15:36 PM
I GOT IT, I GOT IT.... and I just want to leave the solution to my problem here just, in case it can help anyone (since I have been helped so many times...).

After reading in so many forums to find why mi dropdown state list was not working, I found a (quite acceptable) solution for my site (deleted).

PROBLEM:

State dropdown list doesn't work on the shopping cart once the country is selected -for user registration or deliver address-. However it did work on the backend, but not on the cart when a user was getting registered.
And of course all posible things were tested (configuration of joomla/virtuemart, deep search for javascripts confilcts -deactivating every possible plugin-, etc.).

SOLUTION:

My ARTIO was the cause. Once I deactivated the SEF address created for the cart, and started using the real URL for it (www.1001especias.com/index.php?option=com_virtuemart&addrtype=BT&lang=es&task=editaddresscart&view=user), it worked.

I know maybe this is not the most elegant solution, but it is more than acceptable for me. I hope this can help others.

Capital letters are just for shouting, correct?.... YESSSSS I GOT IT!    ;D

(thanks to everybody for those ideas, suggestions, etc.)
Title: Re: Another "State Drop Down Not Working" Problem
Post by: T.A. Garrison, LLC on October 16, 2014, 02:16:53 AM
There are still some unanswered questions about this subject.

I'm using J2.5.27 (latest) with the latest VM which is 3, although labeled 2.? (don't remember).

Ok. "I" don't have any problem in any browser.
But, there was 1 customer today who was using Chrome. The customer swears they selected the country, and I have only 1 country available (US), and then selected the state, but there were no selections.

"I" went in (using Chrome) and placed a product in my cart, created a new account through the UPS plugin, entered all the information, selected the country, and the list of states was easily available.

So I don't think this issue is resolved.

Depending on the circumstances (user error? browser error? UPS plugin? existing account?), clearly "something" keeps the list of states from appearing to "some" people.

I can't replicate this, but it's obvious there is still something happening.

Any thoughts, Milbo?
Title: Re: Another "State Drop Down Not Working" Problem
Post by: jenkinhill on October 16, 2014, 10:29:04 AM
If you are using a VM3 pre-release testing version (2.9.9x) then please report problms in the development & testing board, http://forum.virtuemart.net/index.php?board=136.0
Title: Re: Another "State Drop Down Not Working" Problem
Post by: kaybee57 on December 18, 2014, 06:45:42 AM
J 2.5.27
VM 2.6.14

I installed yesterday a new plugin (verification for an Adult site) and State drop-down stopped working.
Disabled that plug-in and State Drop-down works again.
As such, in my case, a plug-in is the culprit. Within the plug-in configuration, there was a JQuery option which I disabled.
All now works again.
May help someone else.
Title: Re: Another "State Drop Down Not Working" Problem
Post by: cstreit on April 21, 2018, 18:43:11 PM
I posted this as another thread - but this is the top listing on Google for this issue so also posting it here.

Make SURE you have a menu item in joomla that points to your Virtuemart Shopping Cart module.  I spent MANY hours trying to figure this out and just lucked my way into the solution.  Tons of hours searching for jquery conflicts.. You name it.

Enabling and disabling this menu item is what fixes/breaks it on our site.  Good luck - this one is really frustrating.