News:

Support the VirtueMart project and become a member

Main Menu

Another "State Drop Down Not Working" Problem

Started by theengel, August 12, 2013, 18:15:44 PM

Previous topic - Next topic

theengel

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

theengel

Looking at the elements in Chrome, I see this message:

Uncaught TypeError: Object [object Object] has no method 'chosen'

Maxim Pishnyak

Isn't there an special option near mentioned by you option for VM jquery (VM configuration)? This option in new VM control States dropdown.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

theengel

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.

jenkinhill

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).
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Maxim Pishnyak

'Use jQuery chosen for dropdowns in FE' must be turned on anyway. Switch it on, pls, and knock here again.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

theengel

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.

rsd

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


admiss

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]

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

tec

#11
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?

Milbo

#12
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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

T.A. Garrison, LLC

#13
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
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...
T.A. Garrison, LLC
3150 Orleans St. # 28261
Bellingham, WA 98228

mfuller526

Once I specified the country (United States) the state drop down worked. I'm using VM 2.6.0.
Joomla! 2.5.28, PHP 5.4.36,  MoWebSo3.2.19