Author Topic: State/Region dropdown not populated with country's states  (Read 794 times)

tblueweb

  • Beginner
  • *
  • Posts: 13
    • True Blue Web Property Development
State/Region dropdown not populated with country's states
« on: June 23, 2021, 21:55:55 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10218
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: State/Region dropdown not populated with country's states
« Reply #1 on: June 23, 2021, 22:36:25 pm »
without a live url impossible to advise
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

tblueweb

  • Beginner
  • *
  • Posts: 13
    • True Blue Web Property Development
Re: State/Region dropdown not populated with country's states
« Reply #2 on: June 24, 2021, 21:58:06 pm »
adjust my original note to include url
__
True Blue Web Property Development
http://www.tblueweb.com

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10218
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: State/Region dropdown not populated with country's states
« Reply #3 on: June 24, 2021, 22:35:42 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28181
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14