hi,
i was able to add “username” as new profile field in adding/editing a profile .i am trying to figure out to make the value unique in the database. username should be unique per user.
Can it be done via admin or do i need to dig in into the code? can you show me where to add it in the code
thanks
Ash
[quote name='abacus' timestamp='1436797820' post='222723']
hi,
i was able to add “username” as new profile field in adding/editing a profile .i am trying to figure out to make the value unique in the database. username should be unique per user.
Can it be done via admin or do i need to dig in into the code? can you show me where to add it in the code
thanks
Ash
[/quote]
new profile fields do not add new DB field in table. We use a one to many relation in cscart_user_profiles → cscart_profiles_fields
So if you want to make a unique field on DB level - yes you should digg in the code.
Probably best solution is to add a new DB field to cscart_user_profiles or cscart_users table.