Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

company required to fillin at create_account.php


chemjul2005

Recommended Posts

I want my customers to be able to fill out their company, but it isn't required. So I have put the minimum value to zero. This works, except that in the form is still shows the red star behind the field so people think they should fill it out. Where do I remove the red star?

Link to comment
Share on other sites

Company is not a required field in a standard OSC installation. To remove the red asterisk edit this line in create_account.php:

 

<td class="main"><?php echo tep_draw_input_field('company') . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>

 

 

 

Chris

Link to comment
Share on other sites

  • 4 weeks later...

I'm glad it worked for you.

 

My solution was going to be to go to includes/languages/english.php, find

"define('ENTRY_COMPANY_TEXT', '*');" and change it to

"define('ENTRY_COMPANY_TEXT', '');" (remove the "*").

Link to comment
Share on other sites

I'm glad it worked for you.

 

My solution was going to be to go to includes/languages/english.php, find

"define('ENTRY_COMPANY_TEXT', '*');" and change it to

"define('ENTRY_COMPANY_TEXT', '');" (remove the "*").

 

 

Yes, thats the correct way, some do like doing stuff the hard way though! biggrin.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...