osCmax v2.5 User Manual
Results 1 to 4 of 4

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 ...

      
  1. #1
    Member
    Join Date
    May 2005
    Posts
    42
    Rep Power
    0


    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.

  2. #2
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    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

  3. #3
    New Member
    Join Date
    Jan 2005
    Posts
    9
    Rep Power
    0


    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') .

  4. #4
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •