Floob Posted March 9, 2003 Share Posted March 9, 2003 During the checkout process the address appears a few times, but each time the zone (county) is in an abbreviated form, i.e DVN instead of DEVON. How can I go about making it use the full zone name? Thanks for any help. Floob. Link to comment Share on other sites More sharing options...
Floob Posted March 9, 2003 Author Share Posted March 9, 2003 Does anyone know if this is editable in a file (in the functions dir?) or do I need to change something in the database? Any pointers appreciated. Link to comment Share on other sites More sharing options...
Ajeh Posted March 10, 2003 Share Posted March 10, 2003 Look in the countries table and then look at the file you are on to see what value it is displaying. I believe you are seeing the ISO codes and you want the countries name. If you alter this, make sure you are altering the display and not the code processes. Link to comment Share on other sites More sharing options...
Floob Posted March 10, 2003 Author Share Posted March 10, 2003 I am seeing the zone_code as opposed to the zone_name. I was under the impression I need to change the code that is bringing zone_code in, and make it zone_name. What should I alter to get that going? Link to comment Share on other sites More sharing options...
Ajeh Posted March 10, 2003 Share Posted March 10, 2003 I don't use the zones myself. But, check the file with the display of the code and where the code is displayed you will want to either check for an existing function or create your own to grab the Countries name and use that for the Display only. Don't change what is being stored in the table. Link to comment Share on other sites More sharing options...
Floob Posted March 10, 2003 Author Share Posted March 10, 2003 A file being used in this is: checkout_shipping.php but I cant even find the word 'zone' in that file! So I guess it picks it up from another function? Link to comment Share on other sites More sharing options...
Floob Posted March 15, 2003 Author Share Posted March 15, 2003 Does anyone know why the zone_code is used here and not the zone_name? Surely the zone_name is the correct way to go here. Any ideas? Link to comment Share on other sites More sharing options...
Floob Posted March 15, 2003 Author Share Posted March 15, 2003 I think I fixed it. 8) In MS1 includesfunctionsgeneral.php I changed: Line 438: zone_code to zone_name Line 510: zone_code to zone_name Does that make sense to anyone? Seems to provide the required results. Link to comment Share on other sites More sharing options...
Ajeh Posted March 15, 2003 Share Posted March 15, 2003 Just be sure that by doing so you are not messing up the original purpose of the functions. I am not sure which functions you changed, but do a search for them on the code to see if there would be any ill effects having done those changes. Link to comment Share on other sites More sharing options...
Floob Posted March 15, 2003 Author Share Posted March 15, 2003 Function1: // Return a formatted address // TABLES: address_format Function2: // Return a formatted address // TABLES: address_book, address_format Both lines I changed began with: $state = So for me state = state, not state = state_code So I think I did that correctly. Link to comment Share on other sites More sharing options...
karcher Posted April 8, 2003 Share Posted April 8, 2003 Would you mind giving some insight into using the zones? I want to change my shop to reflect a more UK style address format. For your info, I've been working on a list of zones representing counties in England, Scotland, Wales, N Ireland and Ireland. K K ..................................................................... When the going get's tough, the tough get going. Link to comment Share on other sites More sharing options...
Floob Posted April 8, 2003 Author Share Posted April 8, 2003 This might help you. UK Zones http://www.oscommerce.com/community/contributions,925 How to set out fields: http://wiki.oscommerce.com/helpModsEditAccount Link to comment Share on other sites More sharing options...
karcher Posted April 8, 2003 Share Posted April 8, 2003 Thanks, I had seen that contribution on the counties. I have added a few more based on an official census county list. And then surfed around for some more in Ireland. What I am particularly interested in is whether the zones can play a role in address formating. Otherwise I will use the state field and rename it in the english.php file to reflect 'county', I'll also use the 'suburb' field for an address 2 field. And reorder them etc. Thanks. K K ..................................................................... When the going get's tough, the tough get going. Link to comment Share on other sites More sharing options...
Floob Posted April 8, 2003 Author Share Posted April 8, 2003 Zones are the 'state' field. Yeah, I renamed 'State' on mine to be 'County', this forces the customer to pick one from the zone list. If his country has no zones set, he can type whatever he likes. Link to comment Share on other sites More sharing options...
karcher Posted April 9, 2003 Share Posted April 9, 2003 Thanks, I see that looking at the code in the accounts_details.php file. However, I can't see why it's not working, did you have to change anything to get it to work? I really don't feel up to trawling through all the functions etc. if I don't have to. Then I guess I'll come across the same problem you did in the checkout_shipping.php or general.php files. Did you make a uk style address_format record? Thanks again. K K ..................................................................... When the going get's tough, the tough get going. Link to comment Share on other sites More sharing options...
Floob Posted April 9, 2003 Author Share Posted April 9, 2003 http://www.oscommerce.com/forums/viewtopic.php?t=24264 Link to comment Share on other sites More sharing options...
karcher Posted April 9, 2003 Share Posted April 9, 2003 Thanks Floob Have you got a shop url I could look at? It would be interesting to see a UK-style site. K K ..................................................................... When the going get's tough, the tough get going. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.