News:

Looking for documentation? Take a look on our wiki

Main Menu

State/Region dropdown not populated with country's states

Started by tblueweb, June 23, 2021, 21:55:55 PM

Previous topic - Next topic

tblueweb

The state drop down is not  populated with state. The country and state configuration is correct. in this case united states and appropriate states. The database tables are populated correctly. Note the state drop down is not populated in all areas of the site, shopper registration maintenance and in shop configuration. I have visited numerous threads about similar issues and  the recommendations such as disable enable jquery make no difference.  switching to  Joomla protostar template form rocket them  makes no difference. firebug shows the dropdown does not have a list of entries. The country  dropdown  works just Fien and I can enable disable  various countries. The title dropdown  similar was unpopulated but I can add titles manually and works fine. Adding states manually does not.

Joomla 3.9.27
VirtueMart 3.8.9 10473
PHP 7.4.20
Live URL https://www.franz-gtkdesigns.com/
__
True Blue Web Property Development
http://www.tblueweb.com

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

tblueweb

__
True Blue Web Property Development
http://www.tblueweb.com

GJC Web Design

the JSON return from the state query is corrupted by an error message

try  https://www.franz-gtkdesigns.com/index.php?option=com_virtuemart&view=state&format=json&virtuemart_country_id=38

see the last line

<br />
<b>Deprecated</b>:  Directive 'allow_url_include' is deprecated in <b>Unknown</b> on line <b>0</b><br />

you need to find and fix this or suppress the error so the return is not corrupted



{"38":[{"virtuemart_state_id":"52","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Alberta","state_3_code":"ALB","state_2_code":"AB","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"53","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"British Columbia","state_3_code":"BRC","state_2_code":"BC","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"54","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Manitoba","state_3_code":"MAB","state_2_code":"MB","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"55","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"New Brunswick","state_3_code":"NEB","state_2_code":"NB","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"56","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Newfoundland and Labrador","state_3_code":"NFL","state_2_code":"NL","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"57","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Northwest Territories","state_3_code":"NWT","state_2_code":"NT","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"58","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Nova Scotia","state_3_code":"NOS","state_2_code":"NS","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"59","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Nunavut","state_3_code":"NUT","state_2_code":"NU","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"60","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Ontario","state_3_code":"ONT","state_2_code":"ON","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"61","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Prince Edward Island","state_3_code":"PEI","state_2_code":"PE","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"62","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Quebec","state_3_code":"QEC","state_2_code":"QC","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"63","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Saskatchewan","state_3_code":"SAK","state_2_code":"SK","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"},{"virtuemart_state_id":"64","virtuemart_vendor_id":"1","virtuemart_country_id":"38","virtuemart_worldzone_id":"0","state_name":"Yukon","state_3_code":"YUT","state_2_code":"YT","ordering":"0","shared":"0","published":"1","created_on":"0000-00-00 00:00:00","created_by":"0","modified_on":"0000-00-00 00:00:00","modified_by":"0","locked_on":"0000-00-00 00:00:00","locked_by":"0"}]}<br />
<b>Deprecated</b>:  Directive 'allow_url_include' is deprecated in <b>Unknown</b> on line <b>0</b><br />
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

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