Customizatione in Registration process...

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
srajderkar
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Thu Sep 17, 2009 12:09 pm

Customizatione in Registration process...

Post by srajderkar » Thu Sep 17, 2009 12:14 pm

Could you please let me know if it is possible to customize the customer registration process ( add new fields to the user control and save those fields in the database.

Thanks

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Customizatione in Registration process...

Post by AbleMods » Thu Sep 17, 2009 12:56 pm

Yes, within the limits of the ASP.Net security provider. The user registration process is handled by a .Net user control, so source code is easy to find in the ~/ConLib/ folder.

The users data class includes a custom fields component, so it's quite easy to add additional user-specific custom fields to user records as needed. If you are using Visual Studio, you can use the object browser to explore the Users data class and expose the custom fields class for your use.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

srajderkar
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Thu Sep 17, 2009 12:09 pm

Re: Customizatione in Registration process...

Post by srajderkar » Fri Sep 18, 2009 12:03 pm

hi

thanks for your reply, but i could not locate the custom field class using object browser.

Can you please give me the location of the custom field class in the application?

Thanks and Regards

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Customizatione in Registration process...

Post by AbleMods » Sat Sep 19, 2009 3:16 am

Whoops, sorry. Able didn't name it in Users to be consistent with the other custom field sub-classes.

In the Users class it's called "Settings"

Code: Select all

User _User = UserDataSource.Load(123);
_User.Settings.SetValuebyKey("FieldName","FieldValue");
to retrieve a value, you simply load the user data class and...

Code: Select all

string _TestField = _User.Settings.GetValuebyKey("FieldName");
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply