Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Required Fields


Laney

Recommended Posts

I would like to change the "required" fields to optional fields, not all of them but all that has to do with snail mail address (including phone #).

 

Can someone help me with that?

 

BTW, setting the minimum values to zero in admin don't disable that.

 

thanks,

 

Elaine

"There are only 10 types of people in this world: those who understand binary, and those who don't. "

Link to comment
Share on other sites

The customer details doesn't include all the fields (check yours). In any case, I don't want to disable the address, I want to make them "optional" fields.

 

When I set the customer details to false, it completely disables the field.

 

I don't think you understood my question.

 

Elaine

 

Change the settings in admin->configuration->Customer Details. 

 

Jack

"There are only 10 types of people in this world: those who understand binary, and those who don't. "

Link to comment
Share on other sites

Probably not. If you want the fields to still display but not be required, you need to edit the code in create account. Remove the code

<?php echo FORM_REQUIRED_INFORMATION; ?>

and then the code that checks for it like

 if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
     $error = true;

     $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);
   }

There is no in-built method although you could search the contributions. I found this one with a quick search on create account. There may be others.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

yep, that's what I want to do.

thank you, I will try your suggestion first, then will look into the contribuition.

 

Elaine

 

Probably not. If you want the fields to still display but not be required, you need to edit the code in create account. Remove the code
<?php echo FORM_REQUIRED_INFORMATION; ?>

and then the code that checks for it like

 if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
? ? ?$error = true;

? ? ?$messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);
? ?}

There is no in-built method although you could search the contributions. I found this one with a quick search on create account. There may be others.

 

Jack

"There are only 10 types of people in this world: those who understand binary, and those who don't. "

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...