Geoff Moses Posted February 23, 2006 Posted February 23, 2006 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
Guest Posted February 23, 2006 Posted February 23, 2006 there is a contribution for account fields, you could modify it further for optional fields http://www.oscommerce.com/community/contributions,3179
Geoff Moses Posted February 23, 2006 Author Posted February 23, 2006 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
Guest Posted February 23, 2006 Posted February 23, 2006 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.
Geoff Moses Posted February 23, 2006 Author Posted February 23, 2006 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.
Guest Posted February 23, 2006 Posted February 23, 2006 catalog\includes\form_check.js.php catalog\create_account.php are the files you have to modify. Have you installed the contribution?
Geoff Moses Posted February 23, 2006 Author Posted February 23, 2006 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
Guest Posted February 23, 2006 Posted February 23, 2006 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.