|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Join Date: Sep 2004
Location: ATL
Posts: 44
Reputation: 5
|
default country for create account
I thought it would be appropriate to address this question here
Stevel, I saw your modification for the country state selector, I installed it, a long time ago though. Btu now I decided I do not want anyone signing up if they aren’t form the US. How and what do I have to hardcode so all occurrences, like in the create account, address book, etc will have the US id hard coded in there? Is there a contribution. Thanks Danny |
|
|
|
|
#2 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
Well, it probably would have been better to ask in the support thread for Country-State Selector at the osCommerce forum. But anyway...
In the forms you are interested, delete this: Code:
That should do it.
__________________
Steve |
|
|
|
|
#3 |
|
Join Date: Sep 2004
Location: ATL
Posts: 44
Reputation: 5
|
What page do i have to do this too, the create account page, and address book page or what? I do not want them to create a account if there are not in the us, or i do not want them to ship outside the US. I dont want want anything to to with the remainign counties. Only US. What pages would i edit?
Thanks Stevel Last edited by computerwiz5 : 12-28-04 at 01:38 PM. |
|
|
|
|
#4 |
|
Posts: n/a
|
what do you have against us Canadians? hehe
|
|
|
#5 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
My Country-State Selector contribution has edits to a number of files. But you don't need that if you simply want to restrict usage to US, as the contribution has not much value for a single country.
Do these two things. First, open your database using phpmyadmin.powweb.com and select the SQL tab. Type the following in and click GO: DELETE FROM countries WHERE countries_name != 'United States'; This post shows how to get the state drop down to appear by default.
__________________
Steve |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|