[Skip to main content](#vessel-content)

#   strange behavior address input on registrationform

##

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

10 years 5 months ago [\#241909](#241909) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#241909 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1

Hi,

The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the "address_lastname"? See screenshot...

- [ ![form.png](/forum/attachment/31832) ](/forum/attachment/31832 "form.png") [ ](/forum/attachment/31832?download=1 "form.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

10 years 5 months ago [\#241910](#241910) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#241910 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi,

It's not the first section of the clients email address. It's the first section of the user name of the customer that is used to prefill the last name field, thanks to the code: Code:

$name = $userCMS-&gt;get('name'); $pos = strpos($name, ' '); if($pos !== false) { $address-&gt;address_firstname = substr($name, 0, $pos); $name = substr($name, $pos + 1); } $address-&gt;address_lastname = $name;

in the file components/com_hikashop/views/address/view.html.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

10 years 5 months ago [\#241965](#241965) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#241965 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi Nicolas,

Ok, has this been changed recently, as I never had this problem before? I did change the Login/Register page to "simplified registration with password". The customer then only fills in his/her emailaddress and own password. On the next page they have to enter the address info. On this page then, the name is prefilled, but it can't be the customers lastname, as he /she didn't submit this name before, only the emailaddress. Maybe that's where this is going wrong?

Michel

- [ ![registrationpage.jpg](/forum/attachment/31849) ](/forum/attachment/31849 "...rationpage.jpg") [ ](/forum/attachment/31849?download=1 "...rationpage.jpg")
- [ ![addresspage.jpg](/forum/attachment/31850) ](/forum/attachment/31850 "addresspage.jpg") [ ](/forum/attachment/31850?download=1 "addresspage.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

10 years 5 months ago [\#242017](#242017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#242017 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi,

It has alwasy been like that as far as I can remember.
In simplified registration, the email is used as username and the part before the @ is used as name of the user account.
So it explains why you get the first part of the email in the last name field of the address.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")**
- [![ydingilski's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37980.png)](/forum/user/37980-ydingilski "View ydingilski's Profile")
- [ Offline](/forum/user/37980-ydingilski)

Less More

- Posts: 52
- Thank you received: 0
-
-
-
- [](http://www.filkab.solar)
-

9 years 9 months ago [\#260954](#260954) by [ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")  Replied by *[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#260954 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi Nicolas,
I have a standard (Registration) type registration. I'm trying to remove the core NAME field and set it's value to be equal to the USERNAME field value.
Could you please post the required code if this is easily achievable. Thank you in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#260956](#260956) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#260956 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi,

Best would be to use the "simplified registration" where the username will be use the email address.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")**
- [![ydingilski's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37980.png)](/forum/user/37980-ydingilski "View ydingilski's Profile")
- [ Offline](/forum/user/37980-ydingilski)

Less More

- Posts: 52
- Thank you received: 0
-
-
-
- [](http://www.filkab.solar)
-

9 years 9 months ago [\#261029](#261029) by [ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")  Replied by *[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#261029 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi,
I've checked this option but as I already have many registered users this is not applicable. It totally screws up the login of the registered users.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#261061](#261061) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#261061 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi,

Unfortunately, if you want to remove the core name and merge it with the username ; it will require some core hack.
Because these fields are core field in Joomla and the HikaShop registration function are handling these fields with "hard code" because they cannot change.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")**
- [![ydingilski's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37980.png)](/forum/user/37980-ydingilski "View ydingilski's Profile")
- [ Offline](/forum/user/37980-ydingilski)

Less More

- Posts: 52
- Thank you received: 0
-
-
-
- [](http://www.filkab.solar)
-

9 years 9 months ago [\#261143](#261143) by [ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")  Replied by *[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#261143 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi Jerome,
By "REMOVE" I meant hide and then set the value to be equal to the USERNAME field. I thought it could be done not so hard as the simplified registration is doing something similar.
I just want to make sure that you also meant HIDE and it requires core hack?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

9 years 9 months ago [\#261187](#261187) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[strange behavior address input on registrationform](/forum/27-checkout/884880-strange-behavior-address-input-on-registrationform#261187 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The last week I get much orders with a strange lastname. The first section of the clients emailaddress is prefilled into the &quot;address&#95;lastname&quot;? See screenshot...")*

Hi,

I still don't see why the simplified registration would change anything for your existing users ?
They'll still be able to use their username to login. And you can install a small authentication plugin (free) to allow the login with their email address so that everyone can use their email address.

To me, it looks way simpler than trying to remove a field that is required. As the field is required, HikaShop checks that you've filled it. If you remove it or hide it, HikaShop will still check that you entered something and if you don't, it will display an error message. To prevent that would require modifing the function register of the file administrator/components/com_hikashop/classes/user.php to remove that check. And you can understand that we can't remove that check by default since normally you want that error message if the customer doesn't enter something in the field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDg4MC1zdHJhbmdlLWJlaGF2aW9yLWFkZHJlc3MtaW5wdXQtb24tcmVnaXN0cmF0aW9uZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
