VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: antonino78 on October 22, 2012, 16:32:26 PM

Title: field states / provinces do not work
Post by: antonino78 on October 22, 2012, 16:32:26 PM
field states / provinces do not work.
This causes a big problem for registration.
Title: Re: field states / provinces do not work
Post by: joshuab on October 30, 2012, 17:29:26 PM
I'm having a similar problem, I just updated to 2.0.12f and when 'United States' is selected from the country drop down the State Selection drop down isn't self-populating as it should.

And now that the required field bug has been fixed on the State Selection option its causing a major issue since it is stopping potential 'new' customers in their tracks.

Title: Re: field states / provinces do not work
Post by: bytelord on October 30, 2012, 17:38:31 PM
Hello,

I think this has to do with javascript conflict.
First Please check your settings under Configuration-> Templates -> Activate Css Styles & Javascripts and also try to enable Using the Script ajax Countries / Regions is you haven't

You could firebug to examine it: http://forum.virtuemart.net/index.php?topic=102850.0
Also please read: http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries


any live url to check it?

Regards

Title: Re: field states / provinces do not work
Post by: joshuab on October 30, 2012, 17:49:55 PM
I have been testing by turning off the template js and I have been playing with the VM js/ajax settings as well to no avail.  And I even have gone as far as turning off numerous plugins just to see if it happens to be the js conflict... but going with this method seems to be more like shooting for targets in the dark.

I will try using firebug so see which scripts are actually running.

the website is live and its addy is http://www.turnerbikes.com

any help is very appreciated, thank you!
Title: Re: field states / provinces do not work
Post by: bytelord on October 30, 2012, 18:21:04 PM
Hello,

I had to register to use the cart, so the is js conflicts as i said (attached image).
Also you are loading jquery twice, v1.7.2 and 1.8.0

use jquery 1.7.x ..

Regards



[attachment cleanup by admin]
Title: Re: field states / provinces do not work
Post by: jenkinhill on October 30, 2012, 18:28:43 PM
Sure looks like a JS conflict. You are loading a lot of js files inc 2 versions of jQuery

<script src="/templates/js_impacto/wright/js/jquery-1.8.0.min.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
as well as Yagendoo cart & ajax,  bootstrap etc.

IE debugger throws up errors of trying to run when jQuery is not yet loaded:

SCRIPT5009: 'jQuery' is undefined
long-t-logo-blk-wwhtorggry-detail, line 27 character 5
SCRIPT5009: 'jQuery' is undefined
vmsite.js, line 12 character 2
SCRIPT5009: 'jQuery' is undefined
facebox.js, line 69 character 2

Added - you beat me to it....
Title: Re: field states / provinces do not work
Post by: joshuab on October 31, 2012, 00:10:14 AM
Thanks for the help,

It was a pain to find but the yagendoo mini-cart had a line in it's mod_yagendoo_ajax_cart.php file that calling for the extra jQuery script, I just deleted those lines and everything is working as expected now.