Ruralweb said:The state should be changable in design view by clicking on the text and changing it. It's not really a code change as such so I don't see a problem - I'm adding postcode lookup to a site today so will have a play.
Ruralweb said:Tty it in the layout code. There will be a global setting for it
Much simpler than my method - thats the problem with isc there is always a simple way of doing it:rolleyes:text for postcode/zip/state is located in tools/form fields/address fields
Ruralweb said:Having gotten all those counties in the drop down I'm now considering replacing the dropdown with a simple text box - this would then allow postcode anywhere to populate the field.
INSERT INTO `database_name`.`country_states` (`stateid`, `statename`, `statecountry`, `stateabbrv`) VALUES ('401', 'Bristol', '225', '')GrantG said:OK, found a much easier way if you're installing for the first time, or upgrading from 4.0.7 or below to the current 5.0.6.
Place the attached php file into admin>includes>upgrades
I say 4.0.7 or below as this was the version Interspire added UK states to the software, this will populate the database with the up-to-date list (from Wiki, cheers mal) of UK counties - this will also be good for new installations of the software, including 5.0.6 and beyond.
That should be it - if you don't want to try this route, then hold tight for some SQL to do the job for you :)
GrantG said:For anyone interested in adding extra States/Counties to a country:
Open your database, locate the 'country states' table, browse the table to identify the country 'statecountry' (UK is 225) - then create a unique value for stateid, 400+ will do, as 5.0.6 only has 399 state entries.
Run this SQL, change database_name as appropriate:
[code]INSERT INTO `database_name`.`country_states` (`stateid`, `statename`, `statecountry`, `stateabbrv`) VALUES ('401', 'Bristol', '225', '')[/code]
You can now create shipping methods to these counties and select the counties in the checkout :)
It looks like you're new here. Click the social buttons to create your account or sign in.