sc123 Posted May 1, 2008 Posted May 1, 2008 I have no need for a "Country" field in my OSC 2.2 RC2 installation. Specifically, I'm trying to remove the option from create_account.php. Here is what I've done so far: I removed: <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> I commented out: if (is_numeric($country) == false) { $error = true; $messageStack->add('create_account', ENTRY_COUNTRY_ERROR); } However, this causes various problems and there are a great deal more references to "country" in create_account.php and I'm wondering if there is a better way to go about this, or what else I need to remove to get rid of the field requirement. Suggestions?
web-project Posted May 1, 2008 Posted May 1, 2008 I recommend to use the "Second Address Line" contribution as the guide, follow and instead of adding the Second Address Line remove the Country field. Second Address Line http://addons.oscommerce.com/info/1855 I hope it will help, good luck. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
sc123 Posted May 1, 2008 Author Posted May 1, 2008 I recommend to use the "Second Address Line" contribution as the guide, follow and instead of adding the Second Address Line remove the Country field.Second Address Line http://addons.oscommerce.com/info/1855 I hope it will help, good luck. Thanks for the reply. I took a look at that contrib but I don't see how it is going to help me remove the country field and requirement - it just adds another address line, and the installation document is massive. It also doesn't have anything to do with removing the country field.
Guest Posted May 12, 2008 Posted May 12, 2008 G'Day, Hope this helps... I commented out all the lines containing fields I wanted to remove including the country pull down list but got the "please select Country" error when I tested the form. To fix this I made this simple change at around line 109. if (is_numeric($country) == false) { $error = false; Hope that helps..
Recommended Posts
Archived
This topic is now archived and is closed to further replies.