PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 12-27-04, 12:47 AM   #1
computerwiz5
 
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
computerwiz5 is offline  
Old 12-27-04, 07:43 AM   #2
stevel
XPW
 
stevel's Avatar
 
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:
<tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <?php // +Country-State Selector ?> <td class="main"><?php echo tep_get_country_list('country',$country,'onChange="return refresh_form(create_account);"') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> <?php // -Country-State Selector ?> </tr>

That should do it.
__________________
Steve
stevel is offline  
Old 12-27-04, 09:25 PM   #3
computerwiz5
 
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.
computerwiz5 is offline  
Old 2-21-05, 12:07 PM   #4
Frenchy
 
Posts: n/a
what do you have against us Canadians? hehe
 
Old 2-21-05, 01:17 PM   #5
stevel
XPW
 
stevel's Avatar
 
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
stevel is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:59 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.