Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a field in signup process


Guest

Recommended Posts

Hello!

 

I an intersted in adding a field to the customer sign up process.

It would be a Drop down menu so that the customer can select their classification.

 

I was wondering how to do this....

 

any ideas?

Link to comment
Share on other sites

Note: I have not tried adding any fields yet, but

 

I would start by looking at:

 

catalog/includes/modules/account_details.php

 

That's the file that controls the fields..of course, you'll probably have to add some fields to your database.

 

Good luck :)

Link to comment
Share on other sites

I just did this for similar reasons (to add a classification field) and here is the process I followed:

 

1. add the field to the customers table using phpMyAdmin

2. add the supporting code in the following files:

/catalog/account_php

/catalog/account_edit.php

/catalog/account_edit_process.php

/catalog/create_account_process.php

/catalog/includes/modules/account_details.php

/catalog/customers.php

 

and the supporting definitions in

 

/catalog/includes/languages/english.php

/catalog/admin/includes/languages/english.php

 

As a general process what I did within each of these files was pick a similar field (e.g. customers_firstname) and search for that term. Everywhere I found it, I knew I had some code to be modified to support the new field.

 

If you would be interested in the new files that support a field called "customers_contract", just write me off-list and I'll send them to you.

 

Hope this helps...

 

paul

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...