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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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') . '&nbsp;' . (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. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| 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 |