Registration data is incorrectly inserted

  • Posts: 45
  • Thank you received: 1
8 years 7 months ago #237351

-- HikaShop version -- : 2.6.0

Hi!
I need help with a little problem, which appears when registered Customers add new address data in Personal Profile. In Joomla registration form it is only one field "UserName" but in address form it is "First Name" and "Last Name" fields. Username always inserted in to "Last name"... I don't know how to fix it... I will be happy if somebody knows how to cancel this or insert "UserName" into "First Name".

Thank You!
Olga

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 7 months ago #237355

Hi,

That's indeed how it is.
The system actually tries to cut the user name in two but if there is no space, then it puts the name in the last name field.
If you want the opposite, you can change the line:
$address->address_lastname = $name;
to:
$address->address_firstname = $name;
in the file components/com_hikashop/views/address/view.html.php

The following user(s) said Thank You: Displey

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

  • Posts: 45
  • Thank you received: 1
8 years 7 months ago #237695

Hello, Nicolas!
Thank you so much!

Olga

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

Time to create page: 0.059 seconds
Powered by Kunena Forum