osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

need help deleting the country option when creating account

This is a discussion on need help deleting the country option when creating account within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, I want to delete the country pull down, as I only deliver to the US - I tried deleting ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-13-2005, 02:00 PM
Member
 
Join Date: May 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
markymrk22
Default need help deleting the country option when creating account

Hi,

I want to delete the country pull down, as I only deliver to the US - I tried deleting the code for it, but then I get error messages when trying to create an account.

I deleted this code

<tr>
<td class="main"><?php echo ENTRY_COUNTRY; ?></td>
<td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
</tr>


on the create_account php file




Any other suggestions, on how to get ride of the pull down and not get that error message?

Thanks for the help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-13-2005, 08:10 PM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 212
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
Default RE: need help deleting the country option when creating acco

Just take the other countries out of your database so US is the only option. Then if you decide to add lets say Canada you can just add it back in. You can do it though your Admin panel although I think that would be time consuming. I did it using PHP MyAdmin and it was pretty easy. Plus you can easily add countries back later.
__________________
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-19-2005, 06:01 AM
New Member
 
Join Date: Jan 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
14steve14
Default

I only use oscommerce, and am here just browing these forums. Nothing better to do.

In oscommerce, you can select the country that is top of the dropdown box, leaving all the others there. If the coding is the same as oscommerce this would be an option for you. All you have to do is to add the following after the country select list. '223' which is the code for the usa. The line in oscommerce will look something like this, less the numbers.

<td class="main"><?php echo tep_get_country_list('country','222') .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-19-2005, 08:31 AM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 212
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
Default

The problem with that is people from other countries can and will place orders and he doesn't want to sell outside the US. Sometimes it's more trouble than it's worth dealing with foriegn orders, and you get charged for transaction fees for the order and the credit on the merchant account. It's really easy to change the database and the problem is completely fixed.
__________________
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Cust Account Creation - no refresh on country select rjavery osCMax v2 Customization/Mods 6 10-22-2006 03:35 PM
How to set Create Account - Country - to UK default fuzzyphil osCMax v2 Customization/Mods 2 04-09-2006 06:36 PM
Creating an account Milmod osCommerce 2.2 Installation Help 0 09-05-2005 08:30 PM
Buying without creating an account???? streby osCMax v1.7 General Mods Discussion 12 05-16-2004 11:57 AM
Error when creating account herwig osCommerce 2.2 Installation Help 1 12-14-2003 10:19 AM


All times are GMT -8. The time now is 12:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax