Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Country field in customer signup


Tom73

Recommended Posts

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...