Dropdown List of Countries |
Post Reply |
Author | |
theqc
Newbie Joined: 18-August-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 26-August-2009 at 4:55pm |
In the account setup and checkout page, there is a dropdown list of countries. Is there a quick way I can place US at the top of the list? Funny, I have performed so much major surgery on this cart, but something like this is throwing me off. Thanks in advance!
|
|
theqc
Newbie Joined: 18-August-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Hello.
Just want to post an update that I got this working in case anybody ever needs to figure this out. All I did was create a new column in the "countries" database called "countryOrder" and gave the record "united state" a value of 1 and on the page includes/javascript/pcStateAndProvince.asp I change line 11 of the code. What I have bolded is what I added. query="SELECT CountryCode,countryName,pcSubDivisionID, countryOrder FROM countries ORDER BY countryOrder DESC, countryName ASC" Hope this can help someone out. Later |
|
sirene
Newbie Joined: 22-November-2009 Location: Austria Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Where did you get the value set to 1?
|
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Hi Sirene,
From theqc's post I take it that he added the additional database field and set it's value direct in the DB. (Edited for typo) Edited by Hamish - 18-December-2009 at 6:56am |
|
sirene
Newbie Joined: 22-November-2009 Location: Austria Status: Offline Points: 6 |
Post Options
Thanks(0)
|
What
is written in the SQL File?
CREATE TABLE [countries]( [countryName] [nvarchar](255) NULL, [countryCode] [nvarchar](255) NULL, [countryOrder] [nvarchar](255) NULL, [pcSubDivisionID] [int] NULL CONSTRAINT [DBX_pcSubDivisionID_20378] DEFAULT ((0)) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |