Add Username Field On Regisration Form

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
1 year 5 months ago #352477

Hi there,

On the registration form, there isn't a field for Username, but when you look at the login form it ask for Username and Password.

How can I add a "Username" field in the "Register" section of the form? Also, it shows the Email Address as the greeting when the user logs in, I would prefer that it showed the Username.



Thanks!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 5 months ago #352480

Hi,

You don't have the username field because you've set the "registration" setting of the HikaShop configuration to "simplified registration with password". In that case, the system uses the email address provided as username.
So you have two options there:
- you change that setting to "registration" to have the normal registration form with the username.
- you use a translation override to change the text "username" on the login form to "email".
It's the translation key HIKA_USERNAME you want to change :
www.hikashop.com/download/languages.html#modify

Please Log in or Create an account to join the conversation.

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
1 year 5 months ago #352499

Hi Nicolas,

Is there a reason for the "Name" field, as per the red circle? We are already collecting the name in the registration section so that field is not needed. Is it possible to remove it?



Thank you!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 5 months ago #352501

Hi,

The name field is for the user account in Joomla. That's the name displayed by Joomla in the login module once you're logged in for example.
The firstname and lastname fields are for the address of the customer.
When you're in "simplified" registration mode, HikaShop automatically uses the firstname and lastname fields to fill the "name" of the Joomla user account.
When you're in normal registration mode, HikaShop displays the same fields as the Joomla registration form, plus the address fields. That's why you see that "name" field there.
To remove it, go in the Display>Views menu, edit the sub_block_login_registration view file and use the view builder to delete the name area.

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum