Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Making phone numbers unrequired?


eeto

Recommended Posts

Posted

I'm trying to design my shop to be as easy and fast to use as possible and therefore I would like to make the phone number field on the customer creation page optional or alternatively remove it entirely.

 

I would like to collect only that information which is necessary for my shop and not pester the customers with extra requirements. People are not very keen on giving their phone numbers away everywhere on the web and I'm afraid of ending up losing customers because of that.

 

Can this be done?

  • 2 weeks later...
Posted

There's a contribution for this available from the contributions section, it also incorporates other details in it too. Just have a search of the contributions.

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted
I'm trying to design my shop to be as easy and fast to use as possible and therefore I would like to make the phone number field on the customer creation page optional or alternatively remove it entirely.

 

I would like to collect only that information which is necessary for my shop and not pester the customers with extra requirements. People are not very keen on giving their phone numbers away everywhere on the web and I'm afraid of ending up losing customers because of that.

 

Can this be done?

In Admin, My Store, Configuration, Minimum Values, you need to set a value for the telephone number length. Use 0 if you want no minimum.

 

Tim

Posted

You can also do this very easily by deleting the code on the create_account.php page that says:

			<td><table border="0" cellspacing="2" cellpadding="2">
		  <tr>
			<td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>
			<td class="main"><?php echo tep_draw_input_field('telephone') . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td>
			<td class="main"><?php echo tep_draw_input_field('fax') . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td>
		  </tr>
		</table></td>

Posted

I tried swtnhpy's solution and simply removed the telephone and fax fields from the new customer and customer info pages. This alone didn't exactly solve the problem so I did what knifeman suggested also and made the minimum length of the telephone number 0 and the combination of these two tips seems to have done the trick. No problems so far, at least.

 

Thanks a lot, everyone!

Archived

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

×
×
  • Create New...