Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Account creation: Required fields


Geoff Moses

Recommended Posts

Posted

Hello,

 

In my webstore I'd like to alter which of the fields are required when a user is creating an account, and maybe add or delete some of the fields themselves.

 

What is the easiest way to do this? Thanks in advance for all help.

 

-Geoff

Posted

Hello Enigma!

 

Thanks for your help. Would you be able to offer any help on how to modify the files to be able to turn on/ off required fields? Unfortunately I don't have much knowledge of PHP. How easy would this modification be to do?

 

Thanks again for your help,

 

-Geoff

Posted

you have to add validation code for the required fields aside of the asterisk indicator. And that code, will be specific to each of the extra fields you want. You might want to see how the email or telephone number is processed and duplicate the code for your custom fields.

Posted

Which file(s) would I find this information that I need to change?

 

you have to add validation code for the required fields aside of the asterisk indicator. And that code, will be specific to each of the extra fields you want. You might want to see how the email or telephone number is processed and duplicate the code for your custom fields.
Posted

catalog\includes\form_check.js.php

catalog\create_account.php

are the files you have to modify. Have you installed the contribution?

Posted

Ok, thanks for the help. Yes, I have installed the contribution.

 

Also, do you know whether I need to use the checkout_confirmation.php file that came with the contribution? When I use it, it causes my page to be displayed incorrectly. And when I use my original, it displays normally.

 

Thankyou for your assistance :)

 

-Geoff

Posted

yes you may have to check the html code and see if the html tags are used properly. Sometimes we add features or customize the stores with templates and the contributions typically are tested with the default osc files.

Archived

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

×
×
  • Create New...