I'm creating a site that allows people to purchase subscriptions to the site which will give them member discounts.
When they subscribe I need to collect some information that I can query later. Adding product options isn't enough.
What is the best way to go about this? Will I be using the ac_CustomFields table? Thanks!!
Adding Custom Fields For Customer
Re: Adding Custom Fields For Customer
You can also use the ac_UserSettings table. It can store FieldName and FieldValue pairs of data for users.
You use to get the value for a user.
And you use to save the value for a user.
I hope that gets you pointed in the right direction.
You use
Code: Select all
string ValueToGet = AbleContext.Current.User.Settings.GetValueByKey("FieldToGet")
And you use
Code: Select all
AbleContext.Current.User.Settings.SetValueByKey("FieldToSave", "ValueToSave")
I hope that gets you pointed in the right direction.
Re: Adding Custom Fields For Customer
Haven't tried saving yet but displaying is working great! Thank you for your help!
May