ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Dropdown List of Countries
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dropdown List of Countries

 Post Reply Post Reply
Author
Message
theqc View Drop Down
Newbie
Newbie


Joined: 18-August-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote theqc Quote  Post ReplyReply Direct Link To This Post Topic: Dropdown List of Countries
    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!
Back to Top
theqc View Drop Down
Newbie
Newbie


Joined: 18-August-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote theqc Quote  Post ReplyReply Direct Link To This Post Posted: 27-August-2009 at 8:46am
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

Back to Top
sirene View Drop Down
Newbie
Newbie


Joined: 22-November-2009
Location: Austria
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote sirene Quote  Post ReplyReply Direct Link To This Post Posted: 18-December-2009 at 5:30am
Where did you get the value set to 1?
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 18-December-2009 at 6:55am
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
Back to Top
sirene View Drop Down
Newbie
Newbie


Joined: 22-November-2009
Location: Austria
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote sirene Quote  Post ReplyReply Direct Link To This Post Posted: 20-April-2010 at 4:44am
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))
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.111 seconds.