lgayle Posted August 21, 2005 Share Posted August 21, 2005 my store is www.gaylesgift.com whenever someone is trying to create a new account the defaut is the United States but the default United States is not working only if I choose the one at the bottom can you please tell me how to get rid of the 1st United States or just have the right one working Thank you Lorraine Link to comment Share on other sites More sharing options...
satish Posted August 21, 2005 Share Posted August 21, 2005 my store is www.gaylesgift.com whenever someone is trying to create a new account the defaut is the United States but the default United States is not working only if I choose the one at the bottom can you please tell me how to get rid of the 1st United States or just have the right one working Thank you Lorraine <{POST_SNAPBACK}> Well please check your table country in the data base. <td class="main"><select name="country"><option value="223" SELECTED>United States</option> <option value="246">United States</option> this is what w get when we go thru your site. ON one place the value for that country is 223 which is right on another time it is 246 which is wrong. SO it appears that your DB is corrupted. Drop that table and create a new table and then set val thru admin then it should work. If you need further assistance jsut drop me a line. Satish Mantri Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
lgayle Posted August 21, 2005 Author Share Posted August 21, 2005 Well please check your table country in the data base.<td class="main"><select name="country"><option value="223" SELECTED>United States</option> <option value="246">United States</option> this is what w get when we go thru your site. ON one place the value for that country is 223 which is right on another time it is 246 which is wrong. SO it appears that your DB is corrupted. Drop that table and create a new table and then set val thru admin then it should work. If you need further assistance jsut drop me a line. Satish Mantri <{POST_SNAPBACK}> Yes I really need your help because I am not good with this can you please help Thank you so kindly Lorraine Link to comment Share on other sites More sharing options...
lgayle Posted August 21, 2005 Author Share Posted August 21, 2005 Can anyone point me in the direction on how to get to these files that I can change them Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted August 21, 2005 Share Posted August 21, 2005 It isn't a file you'll need to change, it is the database that your shop refers to. there is a table in the db called countries, it has a mistake in it. There are two entries for the united states, and one is incorrect. It sounds like someone tried to set it up so that the US was defaulted into the countries box, which is ok, but they made a mistake in entering it into the table. If you want to start with a completely clean table, you can run these commands on your database to clean up your countries table, using whatever utility you use (such as phpmyadmin, or cpanel). If this doesn't sound familiar to you, let us know. DROP TABLE IF EXISTS countries; CREATE TABLE countries ( countries_id int NOT NULL auto_increment, countries_name varchar(64) NOT NULL, countries_iso_code_2 char(2) NOT NULL, countries_iso_code_3 char(3) NOT NULL, address_format_id int NOT NULL, PRIMARY KEY (countries_id), KEY IDX_COUNTRIES_NAME (countries_name) ); INSERT INTO countries VALUES (1,'Afghanistan','AF','AFG','1'); INSERT INTO countries VALUES (2,'Albania','AL','ALB','1'); INSERT INTO countries VALUES (3,'Algeria','DZ','DZA','1'); INSERT INTO countries VALUES (4,'American Samoa','AS','ASM','1'); INSERT INTO countries VALUES (5,'Andorra','AD','AND','1'); INSERT INTO countries VALUES (6,'Angola','AO','AGO','1'); INSERT INTO countries VALUES (7,'Anguilla','AI','AIA','1'); INSERT INTO countries VALUES (8,'Antarctica','AQ','ATA','1'); INSERT INTO countries VALUES (9,'Antigua and Barbuda','AG','ATG','1'); INSERT INTO countries VALUES (10,'Argentina','AR','ARG','1'); INSERT INTO countries VALUES (11,'Armenia','AM','ARM','1'); INSERT INTO countries VALUES (12,'Aruba','AW','ABW','1'); INSERT INTO countries VALUES (13,'Australia','AU','AUS','1'); INSERT INTO countries VALUES (14,'Austria','AT','AUT','5'); INSERT INTO countries VALUES (15,'Azerbaijan','AZ','AZE','1'); INSERT INTO countries VALUES (16,'Bahamas','BS','BHS','1'); INSERT INTO countries VALUES (17,'Bahrain','BH','BHR','1'); INSERT INTO countries VALUES (18,'Bangladesh','BD','BGD','1'); INSERT INTO countries VALUES (19,'Barbados','BB','BRB','1'); INSERT INTO countries VALUES (20,'Belarus','BY','BLR','1'); INSERT INTO countries VALUES (21,'Belgium','BE','BEL','1'); INSERT INTO countries VALUES (22,'Belize','BZ','BLZ','1'); INSERT INTO countries VALUES (23,'Benin','BJ','BEN','1'); INSERT INTO countries VALUES (24,'Bermuda','BM','BMU','1'); INSERT INTO countries VALUES (25,'Bhutan','BT','BTN','1'); INSERT INTO countries VALUES (26,'Bolivia','BO','BOL','1'); INSERT INTO countries VALUES (27,'Bosnia and Herzegowina','BA','BIH','1'); INSERT INTO countries VALUES (28,'Botswana','BW','BWA','1'); INSERT INTO countries VALUES (29,'Bouvet Island','BV','BVT','1'); INSERT INTO countries VALUES (30,'Brazil','BR','BRA','1'); INSERT INTO countries VALUES (31,'British Indian Ocean Territory','IO','IOT','1'); INSERT INTO countries VALUES (32,'Brunei Darussalam','BN','BRN','1'); INSERT INTO countries VALUES (33,'Bulgaria','BG','BGR','1'); INSERT INTO countries VALUES (34,'Burkina Faso','BF','BFA','1'); INSERT INTO countries VALUES (35,'Burundi','BI','BDI','1'); INSERT INTO countries VALUES (36,'Cambodia','KH','KHM','1'); INSERT INTO countries VALUES (37,'Cameroon','CM','CMR','1'); INSERT INTO countries VALUES (38,'Canada','CA','CAN','1'); INSERT INTO countries VALUES (39,'Cape Verde','CV','CPV','1'); INSERT INTO countries VALUES (40,'Cayman Islands','KY','CYM','1'); INSERT INTO countries VALUES (41,'Central African Republic','CF','CAF','1'); INSERT INTO countries VALUES (42,'Chad','TD','TCD','1'); INSERT INTO countries VALUES (43,'Chile','CL','CHL','1'); INSERT INTO countries VALUES (44,'China','CN','CHN','1'); INSERT INTO countries VALUES (45,'Christmas Island','CX','CXR','1'); INSERT INTO countries VALUES (46,'Cocos (Keeling) Islands','CC','CCK','1'); INSERT INTO countries VALUES (47,'Colombia','CO','COL','1'); INSERT INTO countries VALUES (48,'Comoros','KM','COM','1'); INSERT INTO countries VALUES (49,'Congo','CG','COG','1'); INSERT INTO countries VALUES (50,'Cook Islands','CK','COK','1'); INSERT INTO countries VALUES (51,'Costa Rica','CR','CRI','1'); INSERT INTO countries VALUES (52,'Cote D\'Ivoire','CI','CIV','1'); INSERT INTO countries VALUES (53,'Croatia','HR','HRV','1'); INSERT INTO countries VALUES (54,'Cuba','CU','CUB','1'); INSERT INTO countries VALUES (55,'Cyprus','CY','CYP','1'); INSERT INTO countries VALUES (56,'Czech Republic','CZ','CZE','1'); INSERT INTO countries VALUES (57,'Denmark','DK','DNK','1'); INSERT INTO countries VALUES (58,'Djibouti','DJ','DJI','1'); INSERT INTO countries VALUES (59,'Dominica','DM','DMA','1'); INSERT INTO countries VALUES (60,'Dominican Republic','DO','DOM','1'); INSERT INTO countries VALUES (61,'East Timor','TP','TMP','1'); INSERT INTO countries VALUES (62,'Ecuador','EC','ECU','1'); INSERT INTO countries VALUES (63,'Egypt','EG','EGY','1'); INSERT INTO countries VALUES (64,'El Salvador','SV','SLV','1'); INSERT INTO countries VALUES (65,'Equatorial Guinea','GQ','GNQ','1'); INSERT INTO countries VALUES (66,'Eritrea','ER','ERI','1'); INSERT INTO countries VALUES (67,'Estonia','EE','EST','1'); INSERT INTO countries VALUES (68,'Ethiopia','ET','ETH','1'); INSERT INTO countries VALUES (69,'Falkland Islands (Malvinas)','FK','FLK','1'); INSERT INTO countries VALUES (70,'Faroe Islands','FO','FRO','1'); INSERT INTO countries VALUES (71,'Fiji','FJ','FJI','1'); INSERT INTO countries VALUES (72,'Finland','FI','FIN','1'); INSERT INTO countries VALUES (73,'France','FR','FRA','1'); INSERT INTO countries VALUES (74,'France, Metropolitan','FX','FXX','1'); INSERT INTO countries VALUES (75,'French Guiana','GF','GUF','1'); INSERT INTO countries VALUES (76,'French Polynesia','PF','PYF','1'); INSERT INTO countries VALUES (77,'French Southern Territories','TF','ATF','1'); INSERT INTO countries VALUES (78,'Gabon','GA','GAB','1'); INSERT INTO countries VALUES (79,'Gambia','GM','GMB','1'); INSERT INTO countries VALUES (80,'Georgia','GE','GEO','1'); INSERT INTO countries VALUES (81,'Germany','DE','DEU','5'); INSERT INTO countries VALUES (82,'Ghana','GH','GHA','1'); INSERT INTO countries VALUES (83,'Gibraltar','GI','GIB','1'); INSERT INTO countries VALUES (84,'Greece','GR','GRC','1'); INSERT INTO countries VALUES (85,'Greenland','GL','GRL','1'); INSERT INTO countries VALUES (86,'Grenada','GD','GRD','1'); INSERT INTO countries VALUES (87,'Guadeloupe','GP','GLP','1'); INSERT INTO countries VALUES (88,'Guam','GU','GUM','1'); INSERT INTO countries VALUES (89,'Guatemala','GT','GTM','1'); INSERT INTO countries VALUES (90,'Guinea','GN','GIN','1'); INSERT INTO countries VALUES (91,'Guinea-bissau','GW','GNB','1'); INSERT INTO countries VALUES (92,'Guyana','GY','GUY','1'); INSERT INTO countries VALUES (93,'Haiti','HT','HTI','1'); INSERT INTO countries VALUES (94,'Heard and Mc Donald Islands','HM','HMD','1'); INSERT INTO countries VALUES (95,'Honduras','HN','HND','1'); INSERT INTO countries VALUES (96,'Hong Kong','HK','HKG','1'); INSERT INTO countries VALUES (97,'Hungary','HU','HUN','1'); INSERT INTO countries VALUES (98,'Iceland','IS','ISL','1'); INSERT INTO countries VALUES (99,'India','IN','IND','1'); INSERT INTO countries VALUES (100,'Indonesia','ID','IDN','1'); INSERT INTO countries VALUES (101,'Iran (Islamic Republic of)','IR','IRN','1'); INSERT INTO countries VALUES (102,'Iraq','IQ','IRQ','1'); INSERT INTO countries VALUES (103,'Ireland','IE','IRL','1'); INSERT INTO countries VALUES (104,'Israel','IL','ISR','1'); INSERT INTO countries VALUES (105,'Italy','IT','ITA','1'); INSERT INTO countries VALUES (106,'Jamaica','JM','JAM','1'); INSERT INTO countries VALUES (107,'Japan','JP','JPN','1'); INSERT INTO countries VALUES (108,'Jordan','JO','JOR','1'); INSERT INTO countries VALUES (109,'Kazakhstan','KZ','KAZ','1'); INSERT INTO countries VALUES (110,'Kenya','KE','KEN','1'); INSERT INTO countries VALUES (111,'Kiribati','KI','KIR','1'); INSERT INTO countries VALUES (112,'Korea, Democratic People\'s Republic of','KP','PRK','1'); INSERT INTO countries VALUES (113,'Korea, Republic of','KR','KOR','1'); INSERT INTO countries VALUES (114,'Kuwait','KW','KWT','1'); INSERT INTO countries VALUES (115,'Kyrgyzstan','KG','KGZ','1'); INSERT INTO countries VALUES (116,'Lao People\'s Democratic Republic','LA','LAO','1'); INSERT INTO countries VALUES (117,'Latvia','LV','LVA','1'); INSERT INTO countries VALUES (118,'Lebanon','LB','LBN','1'); INSERT INTO countries VALUES (119,'Lesotho','LS','LSO','1'); INSERT INTO countries VALUES (120,'Liberia','LR','LBR','1'); INSERT INTO countries VALUES (121,'Libyan Arab Jamahiriya','LY','LBY','1'); INSERT INTO countries VALUES (122,'Liechtenstein','LI','LIE','1'); INSERT INTO countries VALUES (123,'Lithuania','LT','LTU','1'); INSERT INTO countries VALUES (124,'Luxembourg','LU','LUX','1'); INSERT INTO countries VALUES (125,'Macau','MO','MAC','1'); INSERT INTO countries VALUES (126,'Macedonia, The Former Yugoslav Republic of','MK','MKD','1'); INSERT INTO countries VALUES (127,'Madagascar','MG','MDG','1'); INSERT INTO countries VALUES (128,'Malawi','MW','MWI','1'); INSERT INTO countries VALUES (129,'Malaysia','MY','MYS','1'); INSERT INTO countries VALUES (130,'Maldives','MV','MDV','1'); INSERT INTO countries VALUES (131,'Mali','ML','MLI','1'); INSERT INTO countries VALUES (132,'Malta','MT','MLT','1'); INSERT INTO countries VALUES (133,'Marshall Islands','MH','MHL','1'); INSERT INTO countries VALUES (134,'Martinique','MQ','MTQ','1'); INSERT INTO countries VALUES (135,'Mauritania','MR','MRT','1'); INSERT INTO countries VALUES (136,'Mauritius','MU','MUS','1'); INSERT INTO countries VALUES (137,'Mayotte','YT','MYT','1'); INSERT INTO countries VALUES (138,'Mexico','MX','MEX','1'); INSERT INTO countries VALUES (139,'Micronesia, Federated States of','FM','FSM','1'); INSERT INTO countries VALUES (140,'Moldova, Republic of','MD','MDA','1'); INSERT INTO countries VALUES (141,'Monaco','MC','MCO','1'); INSERT INTO countries VALUES (142,'Mongolia','MN','MNG','1'); INSERT INTO countries VALUES (143,'Montserrat','MS','MSR','1'); INSERT INTO countries VALUES (144,'Morocco','MA','MAR','1'); INSERT INTO countries VALUES (145,'Mozambique','MZ','MOZ','1'); INSERT INTO countries VALUES (146,'Myanmar','MM','MMR','1'); INSERT INTO countries VALUES (147,'Namibia','NA','NAM','1'); INSERT INTO countries VALUES (148,'Nauru','NR','NRU','1'); INSERT INTO countries VALUES (149,'Nepal','NP','NPL','1'); INSERT INTO countries VALUES (150,'Netherlands','NL','NLD','1'); INSERT INTO countries VALUES (151,'Netherlands Antilles','AN','ANT','1'); INSERT INTO countries VALUES (152,'New Caledonia','NC','NCL','1'); INSERT INTO countries VALUES (153,'New Zealand','NZ','NZL','1'); INSERT INTO countries VALUES (154,'Nicaragua','NI','NIC','1'); INSERT INTO countries VALUES (155,'Niger','NE','NER','1'); INSERT INTO countries VALUES (156,'Nigeria','NG','NGA','1'); INSERT INTO countries VALUES (157,'Niue','NU','NIU','1'); INSERT INTO countries VALUES (158,'Norfolk Island','NF','NFK','1'); INSERT INTO countries VALUES (159,'Northern Mariana Islands','MP','MNP','1'); INSERT INTO countries VALUES (160,'Norway','NO','NOR','1'); INSERT INTO countries VALUES (161,'Oman','OM','OMN','1'); INSERT INTO countries VALUES (162,'Pakistan','PK','PAK','1'); INSERT INTO countries VALUES (163,'Palau','PW','PLW','1'); INSERT INTO countries VALUES (164,'Panama','PA','PAN','1'); INSERT INTO countries VALUES (165,'Papua New Guinea','PG','PNG','1'); INSERT INTO countries VALUES (166,'Paraguay','PY','PRY','1'); INSERT INTO countries VALUES (167,'Peru','PE','PER','1'); INSERT INTO countries VALUES (168,'Philippines','PH','PHL','1'); INSERT INTO countries VALUES (169,'Pitcairn','PN','PCN','1'); INSERT INTO countries VALUES (170,'Poland','PL','POL','1'); INSERT INTO countries VALUES (171,'Portugal','PT','PRT','1'); INSERT INTO countries VALUES (172,'Puerto Rico','PR','PRI','1'); INSERT INTO countries VALUES (173,'Qatar','QA','QAT','1'); INSERT INTO countries VALUES (174,'Reunion','RE','REU','1'); INSERT INTO countries VALUES (175,'Romania','RO','ROM','1'); INSERT INTO countries VALUES (176,'Russian Federation','RU','RUS','1'); INSERT INTO countries VALUES (177,'Rwanda','RW','RWA','1'); INSERT INTO countries VALUES (178,'Saint Kitts and Nevis','KN','KNA','1'); INSERT INTO countries VALUES (179,'Saint Lucia','LC','LCA','1'); INSERT INTO countries VALUES (180,'Saint Vincent and the Grenadines','VC','VCT','1'); INSERT INTO countries VALUES (181,'Samoa','WS','WSM','1'); INSERT INTO countries VALUES (182,'San Marino','SM','SMR','1'); INSERT INTO countries VALUES (183,'Sao Tome and Principe','ST','STP','1'); INSERT INTO countries VALUES (184,'Saudi Arabia','SA','SAU','1'); INSERT INTO countries VALUES (185,'Senegal','SN','SEN','1'); INSERT INTO countries VALUES (186,'Seychelles','SC','SYC','1'); INSERT INTO countries VALUES (187,'Sierra Leone','SL','SLE','1'); INSERT INTO countries VALUES (188,'Singapore','SG','SGP', '4'); INSERT INTO countries VALUES (189,'Slovakia (Slovak Republic)','SK','SVK','1'); INSERT INTO countries VALUES (190,'Slovenia','SI','SVN','1'); INSERT INTO countries VALUES (191,'Solomon Islands','SB','SLB','1'); INSERT INTO countries VALUES (192,'Somalia','SO','SOM','1'); INSERT INTO countries VALUES (193,'South Africa','ZA','ZAF','1'); INSERT INTO countries VALUES (194,'South Georgia and the South Sandwich Islands','GS','SGS','1'); INSERT INTO countries VALUES (195,'Spain','ES','ESP','3'); INSERT INTO countries VALUES (196,'Sri Lanka','LK','LKA','1'); INSERT INTO countries VALUES (197,'St. Helena','SH','SHN','1'); INSERT INTO countries VALUES (198,'St. Pierre and Miquelon','PM','SPM','1'); INSERT INTO countries VALUES (199,'Sudan','SD','SDN','1'); INSERT INTO countries VALUES (200,'Suriname','SR','SUR','1'); INSERT INTO countries VALUES (201,'Svalbard and Jan Mayen Islands','SJ','SJM','1'); INSERT INTO countries VALUES (202,'Swaziland','SZ','SWZ','1'); INSERT INTO countries VALUES (203,'Sweden','SE','SWE','1'); INSERT INTO countries VALUES (204,'Switzerland','CH','CHE','1'); INSERT INTO countries VALUES (205,'Syrian Arab Republic','SY','SYR','1'); INSERT INTO countries VALUES (206,'Taiwan','TW','TWN','1'); INSERT INTO countries VALUES (207,'Tajikistan','TJ','TJK','1'); INSERT INTO countries VALUES (208,'Tanzania, United Republic of','TZ','TZA','1'); INSERT INTO countries VALUES (209,'Thailand','TH','THA','1'); INSERT INTO countries VALUES (210,'Togo','TG','TGO','1'); INSERT INTO countries VALUES (211,'Tokelau','TK','TKL','1'); INSERT INTO countries VALUES (212,'Tonga','TO','TON','1'); INSERT INTO countries VALUES (213,'Trinidad and Tobago','TT','TTO','1'); INSERT INTO countries VALUES (214,'Tunisia','TN','TUN','1'); INSERT INTO countries VALUES (215,'Turkey','TR','TUR','1'); INSERT INTO countries VALUES (216,'Turkmenistan','TM','TKM','1'); INSERT INTO countries VALUES (217,'Turks and Caicos Islands','TC','TCA','1'); INSERT INTO countries VALUES (218,'Tuvalu','TV','TUV','1'); INSERT INTO countries VALUES (219,'Uganda','UG','UGA','1'); INSERT INTO countries VALUES (220,'Ukraine','UA','UKR','1'); INSERT INTO countries VALUES (221,'United Arab Emirates','AE','ARE','1'); INSERT INTO countries VALUES (222,'United Kingdom','GB','GBR','1'); INSERT INTO countries VALUES (223,'United States','US','USA', '2'); INSERT INTO countries VALUES (224,'United States Minor Outlying Islands','UM','UMI','1'); INSERT INTO countries VALUES (225,'Uruguay','UY','URY','1'); INSERT INTO countries VALUES (226,'Uzbekistan','UZ','UZB','1'); INSERT INTO countries VALUES (227,'Vanuatu','VU','VUT','1'); INSERT INTO countries VALUES (228,'Vatican City State (Holy See)','VA','VAT','1'); INSERT INTO countries VALUES (229,'Venezuela','VE','VEN','1'); INSERT INTO countries VALUES (230,'Viet Nam','VN','VNM','1'); INSERT INTO countries VALUES (231,'Virgin Islands (British)','VG','VGB','1'); INSERT INTO countries VALUES (232,'Virgin Islands (U.S.)','VI','VIR','1'); INSERT INTO countries VALUES (233,'Wallis and Futuna Islands','WF','WLF','1'); INSERT INTO countries VALUES (234,'Western Sahara','EH','ESH','1'); INSERT INTO countries VALUES (235,'Yemen','YE','YEM','1'); INSERT INTO countries VALUES (236,'Yugoslavia','YU','YUG','1'); INSERT INTO countries VALUES (237,'Zaire','ZR','ZAR','1'); INSERT INTO countries VALUES (238,'Zambia','ZM','ZMB','1'); INSERT INTO countries VALUES (239,'Zimbabwe','ZW','ZWE','1'); Link to comment Share on other sites More sharing options...
lgayle Posted August 21, 2005 Author Share Posted August 21, 2005 Thank you for this I did what you said but it's still showing up 2 United States It isn't a file you'll need to change, it is the database that your shop refers to. there is a table in the db called countries, it has a mistake in it. There are two entries for the united states, and one is incorrect. It sounds like someone tried to set it up so that the US was defaulted into the countries box, which is ok, but they made a mistake in entering it into the table. If you want to start with a completely clean table, you can run these commands on your database to clean up your countries table, using whatever utility you use (such as phpmyadmin, or cpanel). If this doesn't sound familiar to you, let us know. DROP TABLE IF EXISTS countries; CREATE TABLE countries ( countries_id int NOT NULL auto_increment, countries_name varchar(64) NOT NULL, countries_iso_code_2 char(2) NOT NULL, countries_iso_code_3 char(3) NOT NULL, address_format_id int NOT NULL, PRIMARY KEY (countries_id), KEY IDX_COUNTRIES_NAME (countries_name) ); INSERT INTO countries VALUES (1,'Afghanistan','AF','AFG','1'); INSERT INTO countries VALUES (2,'Albania','AL','ALB','1'); INSERT INTO countries VALUES (3,'Algeria','DZ','DZA','1'); INSERT INTO countries VALUES (4,'American Samoa','AS','ASM','1'); INSERT INTO countries VALUES (5,'Andorra','AD','AND','1'); INSERT INTO countries VALUES (6,'Angola','AO','AGO','1'); INSERT INTO countries VALUES (7,'Anguilla','AI','AIA','1'); INSERT INTO countries VALUES (8,'Antarctica','AQ','ATA','1'); INSERT INTO countries VALUES (9,'Antigua and Barbuda','AG','ATG','1'); INSERT INTO countries VALUES (10,'Argentina','AR','ARG','1'); INSERT INTO countries VALUES (11,'Armenia','AM','ARM','1'); INSERT INTO countries VALUES (12,'Aruba','AW','ABW','1'); INSERT INTO countries VALUES (13,'Australia','AU','AUS','1'); INSERT INTO countries VALUES (14,'Austria','AT','AUT','5'); INSERT INTO countries VALUES (15,'Azerbaijan','AZ','AZE','1'); INSERT INTO countries VALUES (16,'Bahamas','BS','BHS','1'); INSERT INTO countries VALUES (17,'Bahrain','BH','BHR','1'); INSERT INTO countries VALUES (18,'Bangladesh','BD','BGD','1'); INSERT INTO countries VALUES (19,'Barbados','BB','BRB','1'); INSERT INTO countries VALUES (20,'Belarus','BY','BLR','1'); INSERT INTO countries VALUES (21,'Belgium','BE','BEL','1'); INSERT INTO countries VALUES (22,'Belize','BZ','BLZ','1'); INSERT INTO countries VALUES (23,'Benin','BJ','BEN','1'); INSERT INTO countries VALUES (24,'Bermuda','BM','BMU','1'); INSERT INTO countries VALUES (25,'Bhutan','BT','BTN','1'); INSERT INTO countries VALUES (26,'Bolivia','BO','BOL','1'); INSERT INTO countries VALUES (27,'Bosnia and Herzegowina','BA','BIH','1'); INSERT INTO countries VALUES (28,'Botswana','BW','BWA','1'); INSERT INTO countries VALUES (29,'Bouvet Island','BV','BVT','1'); INSERT INTO countries VALUES (30,'Brazil','BR','BRA','1'); INSERT INTO countries VALUES (31,'British Indian Ocean Territory','IO','IOT','1'); INSERT INTO countries VALUES (32,'Brunei Darussalam','BN','BRN','1'); INSERT INTO countries VALUES (33,'Bulgaria','BG','BGR','1'); INSERT INTO countries VALUES (34,'Burkina Faso','BF','BFA','1'); INSERT INTO countries VALUES (35,'Burundi','BI','BDI','1'); INSERT INTO countries VALUES (36,'Cambodia','KH','KHM','1'); INSERT INTO countries VALUES (37,'Cameroon','CM','CMR','1'); INSERT INTO countries VALUES (38,'Canada','CA','CAN','1'); INSERT INTO countries VALUES (39,'Cape Verde','CV','CPV','1'); INSERT INTO countries VALUES (40,'Cayman Islands','KY','CYM','1'); INSERT INTO countries VALUES (41,'Central African Republic','CF','CAF','1'); INSERT INTO countries VALUES (42,'Chad','TD','TCD','1'); INSERT INTO countries VALUES (43,'Chile','CL','CHL','1'); INSERT INTO countries VALUES (44,'China','CN','CHN','1'); INSERT INTO countries VALUES (45,'Christmas Island','CX','CXR','1'); INSERT INTO countries VALUES (46,'Cocos (Keeling) Islands','CC','CCK','1'); INSERT INTO countries VALUES (47,'Colombia','CO','COL','1'); INSERT INTO countries VALUES (48,'Comoros','KM','COM','1'); INSERT INTO countries VALUES (49,'Congo','CG','COG','1'); INSERT INTO countries VALUES (50,'Cook Islands','CK','COK','1'); INSERT INTO countries VALUES (51,'Costa Rica','CR','CRI','1'); INSERT INTO countries VALUES (52,'Cote D\'Ivoire','CI','CIV','1'); INSERT INTO countries VALUES (53,'Croatia','HR','HRV','1'); INSERT INTO countries VALUES (54,'Cuba','CU','CUB','1'); INSERT INTO countries VALUES (55,'Cyprus','CY','CYP','1'); INSERT INTO countries VALUES (56,'Czech Republic','CZ','CZE','1'); INSERT INTO countries VALUES (57,'Denmark','DK','DNK','1'); INSERT INTO countries VALUES (58,'Djibouti','DJ','DJI','1'); INSERT INTO countries VALUES (59,'Dominica','DM','DMA','1'); INSERT INTO countries VALUES (60,'Dominican Republic','DO','DOM','1'); INSERT INTO countries VALUES (61,'East Timor','TP','TMP','1'); INSERT INTO countries VALUES (62,'Ecuador','EC','ECU','1'); INSERT INTO countries VALUES (63,'Egypt','EG','EGY','1'); INSERT INTO countries VALUES (64,'El Salvador','SV','SLV','1'); INSERT INTO countries VALUES (65,'Equatorial Guinea','GQ','GNQ','1'); INSERT INTO countries VALUES (66,'Eritrea','ER','ERI','1'); INSERT INTO countries VALUES (67,'Estonia','EE','EST','1'); INSERT INTO countries VALUES (68,'Ethiopia','ET','ETH','1'); INSERT INTO countries VALUES (69,'Falkland Islands (Malvinas)','FK','FLK','1'); INSERT INTO countries VALUES (70,'Faroe Islands','FO','FRO','1'); INSERT INTO countries VALUES (71,'Fiji','FJ','FJI','1'); INSERT INTO countries VALUES (72,'Finland','FI','FIN','1'); INSERT INTO countries VALUES (73,'France','FR','FRA','1'); INSERT INTO countries VALUES (74,'France, Metropolitan','FX','FXX','1'); INSERT INTO countries VALUES (75,'French Guiana','GF','GUF','1'); INSERT INTO countries VALUES (76,'French Polynesia','PF','PYF','1'); INSERT INTO countries VALUES (77,'French Southern Territories','TF','ATF','1'); INSERT INTO countries VALUES (78,'Gabon','GA','GAB','1'); INSERT INTO countries VALUES (79,'Gambia','GM','GMB','1'); INSERT INTO countries VALUES (80,'Georgia','GE','GEO','1'); INSERT INTO countries VALUES (81,'Germany','DE','DEU','5'); INSERT INTO countries VALUES (82,'Ghana','GH','GHA','1'); INSERT INTO countries VALUES (83,'Gibraltar','GI','GIB','1'); INSERT INTO countries VALUES (84,'Greece','GR','GRC','1'); INSERT INTO countries VALUES (85,'Greenland','GL','GRL','1'); INSERT INTO countries VALUES (86,'Grenada','GD','GRD','1'); INSERT INTO countries VALUES (87,'Guadeloupe','GP','GLP','1'); INSERT INTO countries VALUES (88,'Guam','GU','GUM','1'); INSERT INTO countries VALUES (89,'Guatemala','GT','GTM','1'); INSERT INTO countries VALUES (90,'Guinea','GN','GIN','1'); INSERT INTO countries VALUES (91,'Guinea-bissau','GW','GNB','1'); INSERT INTO countries VALUES (92,'Guyana','GY','GUY','1'); INSERT INTO countries VALUES (93,'Haiti','HT','HTI','1'); INSERT INTO countries VALUES (94,'Heard and Mc Donald Islands','HM','HMD','1'); INSERT INTO countries VALUES (95,'Honduras','HN','HND','1'); INSERT INTO countries VALUES (96,'Hong Kong','HK','HKG','1'); INSERT INTO countries VALUES (97,'Hungary','HU','HUN','1'); INSERT INTO countries VALUES (98,'Iceland','IS','ISL','1'); INSERT INTO countries VALUES (99,'India','IN','IND','1'); INSERT INTO countries VALUES (100,'Indonesia','ID','IDN','1'); INSERT INTO countries VALUES (101,'Iran (Islamic Republic of)','IR','IRN','1'); INSERT INTO countries VALUES (102,'Iraq','IQ','IRQ','1'); INSERT INTO countries VALUES (103,'Ireland','IE','IRL','1'); INSERT INTO countries VALUES (104,'Israel','IL','ISR','1'); INSERT INTO countries VALUES (105,'Italy','IT','ITA','1'); INSERT INTO countries VALUES (106,'Jamaica','JM','JAM','1'); INSERT INTO countries VALUES (107,'Japan','JP','JPN','1'); INSERT INTO countries VALUES (108,'Jordan','JO','JOR','1'); INSERT INTO countries VALUES (109,'Kazakhstan','KZ','KAZ','1'); INSERT INTO countries VALUES (110,'Kenya','KE','KEN','1'); INSERT INTO countries VALUES (111,'Kiribati','KI','KIR','1'); INSERT INTO countries VALUES (112,'Korea, Democratic People\'s Republic of','KP','PRK','1'); INSERT INTO countries VALUES (113,'Korea, Republic of','KR','KOR','1'); INSERT INTO countries VALUES (114,'Kuwait','KW','KWT','1'); INSERT INTO countries VALUES (115,'Kyrgyzstan','KG','KGZ','1'); INSERT INTO countries VALUES (116,'Lao People\'s Democratic Republic','LA','LAO','1'); INSERT INTO countries VALUES (117,'Latvia','LV','LVA','1'); INSERT INTO countries VALUES (118,'Lebanon','LB','LBN','1'); INSERT INTO countries VALUES (119,'Lesotho','LS','LSO','1'); INSERT INTO countries VALUES (120,'Liberia','LR','LBR','1'); INSERT INTO countries VALUES (121,'Libyan Arab Jamahiriya','LY','LBY','1'); INSERT INTO countries VALUES (122,'Liechtenstein','LI','LIE','1'); INSERT INTO countries VALUES (123,'Lithuania','LT','LTU','1'); INSERT INTO countries VALUES (124,'Luxembourg','LU','LUX','1'); INSERT INTO countries VALUES (125,'Macau','MO','MAC','1'); INSERT INTO countries VALUES (126,'Macedonia, The Former Yugoslav Republic of','MK','MKD','1'); INSERT INTO countries VALUES (127,'Madagascar','MG','MDG','1'); INSERT INTO countries VALUES (128,'Malawi','MW','MWI','1'); INSERT INTO countries VALUES (129,'Malaysia','MY','MYS','1'); INSERT INTO countries VALUES (130,'Maldives','MV','MDV','1'); INSERT INTO countries VALUES (131,'Mali','ML','MLI','1'); INSERT INTO countries VALUES (132,'Malta','MT','MLT','1'); INSERT INTO countries VALUES (133,'Marshall Islands','MH','MHL','1'); INSERT INTO countries VALUES (134,'Martinique','MQ','MTQ','1'); INSERT INTO countries VALUES (135,'Mauritania','MR','MRT','1'); INSERT INTO countries VALUES (136,'Mauritius','MU','MUS','1'); INSERT INTO countries VALUES (137,'Mayotte','YT','MYT','1'); INSERT INTO countries VALUES (138,'Mexico','MX','MEX','1'); INSERT INTO countries VALUES (139,'Micronesia, Federated States of','FM','FSM','1'); INSERT INTO countries VALUES (140,'Moldova, Republic of','MD','MDA','1'); INSERT INTO countries VALUES (141,'Monaco','MC','MCO','1'); INSERT INTO countries VALUES (142,'Mongolia','MN','MNG','1'); INSERT INTO countries VALUES (143,'Montserrat','MS','MSR','1'); INSERT INTO countries VALUES (144,'Morocco','MA','MAR','1'); INSERT INTO countries VALUES (145,'Mozambique','MZ','MOZ','1'); INSERT INTO countries VALUES (146,'Myanmar','MM','MMR','1'); INSERT INTO countries VALUES (147,'Namibia','NA','NAM','1'); INSERT INTO countries VALUES (148,'Nauru','NR','NRU','1'); INSERT INTO countries VALUES (149,'Nepal','NP','NPL','1'); INSERT INTO countries VALUES (150,'Netherlands','NL','NLD','1'); INSERT INTO countries VALUES (151,'Netherlands Antilles','AN','ANT','1'); INSERT INTO countries VALUES (152,'New Caledonia','NC','NCL','1'); INSERT INTO countries VALUES (153,'New Zealand','NZ','NZL','1'); INSERT INTO countries VALUES (154,'Nicaragua','NI','NIC','1'); INSERT INTO countries VALUES (155,'Niger','NE','NER','1'); INSERT INTO countries VALUES (156,'Nigeria','NG','NGA','1'); INSERT INTO countries VALUES (157,'Niue','NU','NIU','1'); INSERT INTO countries VALUES (158,'Norfolk Island','NF','NFK','1'); INSERT INTO countries VALUES (159,'Northern Mariana Islands','MP','MNP','1'); INSERT INTO countries VALUES (160,'Norway','NO','NOR','1'); INSERT INTO countries VALUES (161,'Oman','OM','OMN','1'); INSERT INTO countries VALUES (162,'Pakistan','PK','PAK','1'); INSERT INTO countries VALUES (163,'Palau','PW','PLW','1'); INSERT INTO countries VALUES (164,'Panama','PA','PAN','1'); INSERT INTO countries VALUES (165,'Papua New Guinea','PG','PNG','1'); INSERT INTO countries VALUES (166,'Paraguay','PY','PRY','1'); INSERT INTO countries VALUES (167,'Peru','PE','PER','1'); INSERT INTO countries VALUES (168,'Philippines','PH','PHL','1'); INSERT INTO countries VALUES (169,'Pitcairn','PN','PCN','1'); INSERT INTO countries VALUES (170,'Poland','PL','POL','1'); INSERT INTO countries VALUES (171,'Portugal','PT','PRT','1'); INSERT INTO countries VALUES (172,'Puerto Rico','PR','PRI','1'); INSERT INTO countries VALUES (173,'Qatar','QA','QAT','1'); INSERT INTO countries VALUES (174,'Reunion','RE','REU','1'); INSERT INTO countries VALUES (175,'Romania','RO','ROM','1'); INSERT INTO countries VALUES (176,'Russian Federation','RU','RUS','1'); INSERT INTO countries VALUES (177,'Rwanda','RW','RWA','1'); INSERT INTO countries VALUES (178,'Saint Kitts and Nevis','KN','KNA','1'); INSERT INTO countries VALUES (179,'Saint Lucia','LC','LCA','1'); INSERT INTO countries VALUES (180,'Saint Vincent and the Grenadines','VC','VCT','1'); INSERT INTO countries VALUES (181,'Samoa','WS','WSM','1'); INSERT INTO countries VALUES (182,'San Marino','SM','SMR','1'); INSERT INTO countries VALUES (183,'Sao Tome and Principe','ST','STP','1'); INSERT INTO countries VALUES (184,'Saudi Arabia','SA','SAU','1'); INSERT INTO countries VALUES (185,'Senegal','SN','SEN','1'); INSERT INTO countries VALUES (186,'Seychelles','SC','SYC','1'); INSERT INTO countries VALUES (187,'Sierra Leone','SL','SLE','1'); INSERT INTO countries VALUES (188,'Singapore','SG','SGP', '4'); INSERT INTO countries VALUES (189,'Slovakia (Slovak Republic)','SK','SVK','1'); INSERT INTO countries VALUES (190,'Slovenia','SI','SVN','1'); INSERT INTO countries VALUES (191,'Solomon Islands','SB','SLB','1'); INSERT INTO countries VALUES (192,'Somalia','SO','SOM','1'); INSERT INTO countries VALUES (193,'South Africa','ZA','ZAF','1'); INSERT INTO countries VALUES (194,'South Georgia and the South Sandwich Islands','GS','SGS','1'); INSERT INTO countries VALUES (195,'Spain','ES','ESP','3'); INSERT INTO countries VALUES (196,'Sri Lanka','LK','LKA','1'); INSERT INTO countries VALUES (197,'St. Helena','SH','SHN','1'); INSERT INTO countries VALUES (198,'St. Pierre and Miquelon','PM','SPM','1'); INSERT INTO countries VALUES (199,'Sudan','SD','SDN','1'); INSERT INTO countries VALUES (200,'Suriname','SR','SUR','1'); INSERT INTO countries VALUES (201,'Svalbard and Jan Mayen Islands','SJ','SJM','1'); INSERT INTO countries VALUES (202,'Swaziland','SZ','SWZ','1'); INSERT INTO countries VALUES (203,'Sweden','SE','SWE','1'); INSERT INTO countries VALUES (204,'Switzerland','CH','CHE','1'); INSERT INTO countries VALUES (205,'Syrian Arab Republic','SY','SYR','1'); INSERT INTO countries VALUES (206,'Taiwan','TW','TWN','1'); INSERT INTO countries VALUES (207,'Tajikistan','TJ','TJK','1'); INSERT INTO countries VALUES (208,'Tanzania, United Republic of','TZ','TZA','1'); INSERT INTO countries VALUES (209,'Thailand','TH','THA','1'); INSERT INTO countries VALUES (210,'Togo','TG','TGO','1'); INSERT INTO countries VALUES (211,'Tokelau','TK','TKL','1'); INSERT INTO countries VALUES (212,'Tonga','TO','TON','1'); INSERT INTO countries VALUES (213,'Trinidad and Tobago','TT','TTO','1'); INSERT INTO countries VALUES (214,'Tunisia','TN','TUN','1'); INSERT INTO countries VALUES (215,'Turkey','TR','TUR','1'); INSERT INTO countries VALUES (216,'Turkmenistan','TM','TKM','1'); INSERT INTO countries VALUES (217,'Turks and Caicos Islands','TC','TCA','1'); INSERT INTO countries VALUES (218,'Tuvalu','TV','TUV','1'); INSERT INTO countries VALUES (219,'Uganda','UG','UGA','1'); INSERT INTO countries VALUES (220,'Ukraine','UA','UKR','1'); INSERT INTO countries VALUES (221,'United Arab Emirates','AE','ARE','1'); INSERT INTO countries VALUES (222,'United Kingdom','GB','GBR','1'); INSERT INTO countries VALUES (223,'United States','US','USA', '2'); INSERT INTO countries VALUES (224,'United States Minor Outlying Islands','UM','UMI','1'); INSERT INTO countries VALUES (225,'Uruguay','UY','URY','1'); INSERT INTO countries VALUES (226,'Uzbekistan','UZ','UZB','1'); INSERT INTO countries VALUES (227,'Vanuatu','VU','VUT','1'); INSERT INTO countries VALUES (228,'Vatican City State (Holy See)','VA','VAT','1'); INSERT INTO countries VALUES (229,'Venezuela','VE','VEN','1'); INSERT INTO countries VALUES (230,'Viet Nam','VN','VNM','1'); INSERT INTO countries VALUES (231,'Virgin Islands (British)','VG','VGB','1'); INSERT INTO countries VALUES (232,'Virgin Islands (U.S.)','VI','VIR','1'); INSERT INTO countries VALUES (233,'Wallis and Futuna Islands','WF','WLF','1'); INSERT INTO countries VALUES (234,'Western Sahara','EH','ESH','1'); INSERT INTO countries VALUES (235,'Yemen','YE','YEM','1'); INSERT INTO countries VALUES (236,'Yugoslavia','YU','YUG','1'); INSERT INTO countries VALUES (237,'Zaire','ZR','ZAR','1'); INSERT INTO countries VALUES (238,'Zambia','ZM','ZMB','1'); INSERT INTO countries VALUES (239,'Zimbabwe','ZW','ZWE','1'); <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
lgayle Posted August 21, 2005 Author Share Posted August 21, 2005 Please take a look at what I have entered countries Field Type Null Default countries_id int(11) No countries_name varchar(64) No countries_iso_code_2 char(2) No countries_iso_code_3 char(3) No address_format_id int(11) No 0 Indexes: Keyname Type Cardinality Field PRIMARY PRIMARY 3 countries_id am I missing somthing? Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted August 21, 2005 Share Posted August 21, 2005 The problem then is in the mod done to set up the US as the default country. Do you know how this was done? What code was changed? As it is, I can olny select from 4 countries on your site, the wrong usa, and the first 3 A countries! Jeremy Link to comment Share on other sites More sharing options...
lgayle Posted August 21, 2005 Author Share Posted August 21, 2005 I am not sure how the person set it up before I just wanted to get rid of that United states that's in my site I am not sure where it is pulling from but I don't have anything associate with it in my site that I know of PLEASE SOMEONE HELP ME I AM HAVING A BAD DAY I WHEN TO CHURCH AND COME BACK AND THING THINGS WOULD BE BETTER BUT WORST Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted August 21, 2005 Share Posted August 21, 2005 What you're going to need to do, to get rid of some of the problems, is to ensure that when the US is selected, it is the 223 country id, because other parts of the site use that id I believe. One way to do so is to use this mod: http://www.oscommerce.com/community/contri...default+country I know I tried to use a different country id to put the US and Canada at the top of the countries dropdown, and began to have problems in my shipping modules. Jeremy Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted August 21, 2005 Share Posted August 21, 2005 It's ok you'll be able to sort it out eventually, just a bit harder when you have to figure out what someone else did. If you go look in the db itself, is there a listing for the US with a country id of 246? Link to comment Share on other sites More sharing options...
lgayle Posted August 21, 2005 Author Share Posted August 21, 2005 This is what my code is inside the address_book_details.php <td class="main"><?php echo tep_get_country_list('country', $entry['entry_country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted August 21, 2005 Share Posted August 21, 2005 Ok, that's stock, according to the mod, you'd switch that to <td class="main"><?php echo (($entry['entry_country_id'] == '') ? tep_get_country_list('country', 223) : tep_get_country_list('country', $entry['entry_country_id'])) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> What about in create account.php, what's in there? Link to comment Share on other sites More sharing options...
lgayle Posted August 21, 2005 Author Share Posted August 21, 2005 <?php /* $Id: create_account.php,v 1.4 2004/09/25 15:09:15 DMG Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // needs to be included earlier to set the success message in the messageStack require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT); $process = false; if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) { $process = true; if (ACCOUNT_GENDER == 'true') { if (isset($HTTP_POST_VARS['gender'])) { $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']); } else { $gender = false; } } $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']); if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']); if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']); $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']); if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']); $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']); $city = tep_db_prepare_input($HTTP_POST_VARS['city']); if (ACCOUNT_STATE == 'true') { $state = tep_db_prepare_input($HTTP_POST_VARS['state']); if (isset($HTTP_POST_VARS['zone_id'])) { $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']); } else { $zone_id = false; } } $country = tep_db_prepare_input($HTTP_POST_VARS['country']); $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']); $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']); if (isset($HTTP_POST_VARS['newsletter'])) { $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']); } else { $newsletter = false; } $password = tep_db_prepare_input($HTTP_POST_VARS['password']); $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']); $error = false; if (ACCOUNT_GENDER == 'true') { if ( ($gender != 'm') && ($gender != 'f') ) { $error = true; $messageStack->add('create_account', ENTRY_GENDER_ERROR); } } if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR); } if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR); } if (ACCOUNT_DOB == 'true') { if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) { $error = true; $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR); } } if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR); } elseif (tep_validate_email($email_address) == false) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } else { $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $check_email = tep_db_fetch_array($check_email_query); // BOF: daithik - PWA // if ($check_email['total'] > 0) { // $error = true; // $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); // } if ($check_email['total'] > 0) { //PWA delete account $get_customer_info = tep_db_query("select customers_id, customers_email_address, purchased_without_account from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $customer_info = tep_db_fetch_array($get_customer_info); $customer_id = $customer_info['customers_id']; $customer_email_address = $customer_info['customers_email_address']; $customer_pwa = $customer_info['purchased_without_account']; if ($customer_pwa !='1') { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); } else { tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . $customer_id . "'"); } } // EOF: daithik - PWA } if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR); } if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_POST_CODE_ERROR); } if (strlen($city) < ENTRY_CITY_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_CITY_ERROR); } if (is_numeric($country) == false) { $error = true; $messageStack->add('create_account', ENTRY_COUNTRY_ERROR); } if (ACCOUNT_STATE == 'true') { $zone_id = 0; $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); // State selection bug fix applied 10/1/2004 DMG if ($entry_state_has_zones == true) { $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name = '" . tep_db_input($state) . "' OR zone_code = '" . tep_db_input($state) . "')"); if (tep_db_num_rows($zone_query) == 1) { $zone = tep_db_fetch_array($zone_query); $zone_id = $zone['zone_id']; } else { $error = true; $messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT); } } else { if (strlen($state) < ENTRY_STATE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_STATE_ERROR); } } } if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR); } if (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_PASSWORD_ERROR); } elseif ($password != $confirmation) { $error = true; $messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING); } if ($error == false) { $sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_email_address' => $email_address, 'customers_telephone' => $telephone, 'customers_fax' => $fax, 'customers_newsletter' => $newsletter, 'customers_password' => tep_encrypt_password($password)); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob); tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); $customer_id = tep_db_insert_id(); $sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $firstname, 'entry_lastname' => $lastname, 'entry_street_address' => $street_address, 'entry_postcode' => $postcode, 'entry_city' => $city, 'entry_country_id' => $country); if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender; if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company; if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb; if (ACCOUNT_STATE == 'true') { if ($zone_id > 0) { $sql_data_array['entry_zone_id'] = $zone_id; $sql_data_array['entry_state'] = ''; } else { $sql_data_array['entry_zone_id'] = '0'; $sql_data_array['entry_state'] = $state; } } tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array); $address_id = tep_db_insert_id(); tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'"); tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())"); if (SESSION_RECREATE == 'True') { tep_session_recreate(); } $customer_first_name = $firstname; $customer_default_address_id = $address_id; $customer_country_id = $country; $customer_zone_id = $zone_id; tep_session_register('customer_id'); tep_session_register('customer_first_name'); tep_session_register('customer_default_address_id'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); // restore cart contents $cart->restore_contents(); // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; // ICW - CREDIT CLASS CODE BLOCK ADDED ******************************************************* BEGIN if (NEW_SIGNUP_GIFT_VOUCHER_AMOUNT > 0) { $coupon_code = create_coupon_code(); $insert_query = tep_db_query("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $coupon_code . "', 'G', '" . NEW_SIGNUP_GIFT_VOUCHER_AMOUNT . "', now())"); $insert_id = tep_db_insert_id($insert_query); $insert_query = tep_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $insert_id ."', '0', 'Admin', '" . $email_address . "', now() )"); $email_text .= sprintf(EMAIL_GV_INCENTIVE_HEADER, $currencies->format(NEW_SIGNUP_GIFT_VOUCHER_AMOUNT)) . "\n\n" . sprintf(EMAIL_GV_REDEEM, $coupon_code) . "\n\n" . EMAIL_GV_LINK . tep_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $coupon_code,'NONSSL', false) . "\n\n"; } if (NEW_SIGNUP_DISCOUNT_COUPON != '') { $coupon_code = NEW_SIGNUP_DISCOUNT_COUPON; $coupon_query = tep_db_query("select * from " . TABLE_COUPONS . " where coupon_code = '" . $coupon_code . "'"); $coupon = tep_db_fetch_array($coupon_query); $coupon_id = $coupon['coupon_id']; $coupon_desc_query = tep_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $coupon_id . "' and language_id = '" . (int)$languages_id . "'"); $coupon_desc = tep_db_fetch_array($coupon_desc_query); $insert_query = tep_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $coupon_id ."', '0', 'Admin', '" . $email_address . "', now() )"); $email_text .= EMAIL_COUPON_INCENTIVE_HEADER . "\n" . sprintf("%s", $coupon_desc['coupon_description']) ."\n\n" . sprintf(EMAIL_COUPON_REDEEM, $coupon['coupon_code']) . "\n\n" . "\n\n"; } // $email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; // ICW - CREDIT CLASS CODE BLOCK ADDED ******************************************************* END tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); $content = CONTENT_CREATE_ACCOUNT; $javascript = 'form_check.js.php'; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
Guest Posted August 22, 2005 Share Posted August 22, 2005 my store is www.gaylesgift.com whenever someone is trying to create a new account the defaut is the United States but the default United States is not working only if I choose the one at the bottom can you please tell me how to get rid of the 1st United States or just have the right one working Thank you Lorraine <{POST_SNAPBACK}> Lorraine, You have a great site there. I looked around a bit and have several comments for you. First off, under Shipping and Returns, under your phone number you have a banner that says "15% off Gaylesgif.com". you lost a 'T' somewhere. Under View Our Catalog, you have "Please click here to view our cloting catalog." You lost an "H". I looked for whereever you would have lost the 'E' but couldn't find one. ;) Under "Latest news" you have a nice piece about "Your Wedding" product line, but I felt lost after reading it. It was like being at a dead-end. I couldn't find that product line anywhere. Maybe you would want to have a category for that line set aside so the reader can go right to it. I saw one with wedding products, but I wasn't sure if that was the line or not. I went to Order history, not having ordered anything, to look around. It said I hadn't ordered, and had two buttons marked 'Back'. The one on the right just kept refreshing the same page, but the one on the left returned me to merchandise. Finally, where did you find that US Flag under languages? I seem to be stuck with the Brittish flag. As I learn more, I'll set mine up for US default and maybe when I get some money flowing, I'll consider adding other countries to my acceptable locations list. You have a great looking site. Good luck. Buck Link to comment Share on other sites More sharing options...
lgayle Posted August 22, 2005 Author Share Posted August 22, 2005 Thank you I will address your concern in a bit Link to comment Share on other sites More sharing options...
COOLumbia Posted August 22, 2005 Share Posted August 22, 2005 Also, you list Credit Cards that you except, making it seem as though you accept all cards EXCEPT Visa, MasterCard and Discover. Link to comment Share on other sites More sharing options...
lgayle Posted August 22, 2005 Author Share Posted August 22, 2005 Please check it out again and tell me what you think Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted August 22, 2005 Share Posted August 22, 2005 At a glance, I don't see anything in that code that woul set up the default country. Are you sure there isn't an extra entry for the US in your database? Did you download that mod, and make the changes listed in it. There are two other files to change. Jeremy Link to comment Share on other sites More sharing options...
lgayle Posted August 22, 2005 Author Share Posted August 22, 2005 Can you please tell me what other 2 files I need to change to take the extra United States out Link to comment Share on other sites More sharing options...
lgayle Posted August 22, 2005 Author Share Posted August 22, 2005 Someone please help with with my problem 2 United States is still showing up HELP HELP Link to comment Share on other sites More sharing options...
lgayle Posted August 23, 2005 Author Share Posted August 23, 2005 Help please anyone Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.