Tom73 Posted July 10, 2003 Share Posted July 10, 2003 Hi, I have been looking for a solution to 1. remove the country field from the customer signup and 2. add a field like `mobile` phone number. Does someone know a good solution for this? (Too bad that you can't turn them on/off in the admin module like can be done with gender/comp/suburb/state ; probably too many dependencies with payment/shipping mods?) Thanks, Tom Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 Is it enough to just change the field to a hidden field with the correct country? <input type="hidden" value="223"> This assuming you want to enter the USA in the country field. Regards, Rob Link to comment Share on other sites More sharing options...
Tom73 Posted July 10, 2003 Author Share Posted July 10, 2003 Hi, in what file do I have to do this? I looked in the customer_detail file but I cannot find the tag. Thanks, Tom Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 Find <td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> and change it to <td class="main"><input type="hidden" value="223"> </td> This sets the country automatically to the USA. Keep in mind that all calculations for shipping etc.. will now assume all your customenrs are US based. Regards, Rob Link to comment Share on other sites More sharing options...
Tom73 Posted July 10, 2003 Author Share Posted July 10, 2003 Hi Rob, Thanks, country field is gone but when I submit the form it comes back with all the values, like I haven't filled out everything (no error msgs though). Looks like the form validator is doing 'something'? Thanks, Tom Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 Sorry, I'm being sloppy, you need to change it to: <td class="main"><input name="country" type="hidden" value="223"> </td> Regards, Rob Link to comment Share on other sites More sharing options...
Tom73 Posted July 10, 2003 Author Share Posted July 10, 2003 Thanks a lot Rob, that worked perfectly ! Thanks, Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.