News:

Looking for documentation? Take a look on our wiki

Main Menu

field states / provinces do not work

Started by antonino78, October 22, 2012, 16:32:26 PM

Previous topic - Next topic

antonino78

field states / provinces do not work.
This causes a big problem for registration.

joshuab

#1
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.


bytelord

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

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

joshuab

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!

bytelord

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]
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

jenkinhill

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....
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

joshuab

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.