News:

Looking for documentation? Take a look on our wiki

Main Menu

State / Province / Region dropdown empty

Started by ReJigged, March 09, 2015, 13:42:51 PM

Previous topic - Next topic

ReJigged

Hi,

I have tried to research this but am now thinking this is a bug or something is missing.

All our customers are in the United Kingdom. However, during checkout the 'State / Region / Province' dropdown does not display any options when United Kingdom is selected as the country. I have read lots and lots of posts saying this is a jquery conflict and have spent the best part of a day trying to fix this.

But by accident I discovered that if 'United States' is selected then the 'State / Region / Province' dropdown now displays all the states to choose from. This would indicate there is no problem with jquery and no conflict.

Can anyone advise why selecting UK would not work? Which file contains these values? Perhaps I need to add them?

VM 3.0.6.2
J! 3.4

Thanks

RJ

jenkinhill

Some people want countries (eg Wales) and some want counties, eg Somerset. So the states are left empty and can be added if required.
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

GJC Web Design

and as a postcode for a UK address is perfectly adequate most just disable the state field
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ReJigged

Quote from: GJC Web Design on March 09, 2015, 14:43:30 PM
and as a postcode for a UK address is perfectly adequate most just disable the state field
That sounds great. I can't see this option anywhere though?

Also, can I reduce the country options? We only ship to the UK but customers have to scroll down to that option each time.

I would be grateful for a pointer.

Quote from: jenkinhill on March 09, 2015, 13:48:16 PM
Some people want countries (eg Wales) and some want counties, eg Somerset. So the states are left empty and can be added if required.
OK - for future reference which file is this? Also, on another VM installation I have the options of 'England, Scotland, Wales & Northern Ireland' are displayed.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ReJigged

Quote from: GJC Web Design on March 09, 2015, 17:04:59 PM
I really think you need to sit down and LEARN your software!

Ha - Thanks for that. I knew that was there....

But I still cannot see the option to disable the state field.

Also, United Kingdom has the four options - England, Northern Ireland, Scotland and Wales listed as states. They are all published.

ReJigged

Ignore that... I found it.

Thanks for your help.

FaintOfFeint

It would be nice if someone had given a hint of how to fix it. I have a new installation which isn't showing the dropdown for the states in the USA. All the countries are published, and all the states are published.

GJC Web Design

Please don't add to posts that aren't the same problem/subject

If you have no State dropdowns for any country then will be a Javascript conflict

without a live url and versions can't help further
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

FaintOfFeint

Mine was the same problem, and none of the replies gave any hints until yours.
I did dig up another thread where a Javascript conflict was mentioned, which let me find that my site template apparently has a Javascript conflict with VirtueMart.
When I changed in VirtueMart the template selection back to Protostar, then the U.S. State dropdown started working.
... I then got a 500 server error, probably because the Joomspirit template uses a different URL redirection scheme.
But now I just need to go shop for a VM-friendly template.

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