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

#   Last name prepopulted

##

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

Less More

- Posts: 75
- Thank you received: 1
-
-

11 years 8 months ago [\#192487](#192487) by [mterry2](/forum/user/33647-mterry2 "View mterry2's Profile")  *[Last name prepopulted](/forum/33-customers/875303-last-name-prepopulted#192487 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome 36.0.1985  Hi. On the address entry screen at checkout, the last name field is pre-populated with the user's first name. How can I change this so either the first name field is pre-populated, or stop the system pre-populating at all?  Screen shot attached.  Thanks")* was created by *[mterry2](/forum/user/33647-mterry2 "View mterry2's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Chrome 36.0.1985

Hi. On the address entry screen at checkout, the last name field is pre-populated with the user's first name. How can I change this so either the first name field is pre-populated, or stop the system pre-populating at all?

Screen shot attached.

Thanks

- [ ![lastname.jpg](/forum/attachment/22706) ](/forum/attachment/22706 "lastname.jpg") [ ](/forum/attachment/22706?download=1 "lastname.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NzUzMDMtbGFzdC1uYW1lLXByZXBvcHVsdGVkP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86562
- Thank you received: 14307
-
-

11 years 8 months ago [\#192512](#192512) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Last name prepopulted](/forum/33-customers/875303-last-name-prepopulted#192512 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome 36.0.1985  Hi. On the address entry screen at checkout, the last name field is pre-populated with the user's first name. How can I change this so either the first name field is pre-populated, or stop the system pre-populating at all?  Screen shot attached.  Thanks")*

Hi,

The system is not pre-populating the field with the user's first name.
The system is pre-populating the field with whatever the user entered as "Name" when he registered on the registration form of Joomla. It just happens that you entered your first name there instead of your last name or your full name, and that's why it looks strange to you.

if you don't want that, you would have to remove the line:
$address-&gt;address_lastname = $name;
in the file components/com_hikashop/views/address/view.html.php

But the best would be to use only the HikaShop registration form so that the user would directly have the firstname and the lastname fields on the registration form.

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

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

Less More

- Posts: 75
- Thank you received: 1
-
-

11 years 8 months ago [\#192595](#192595) by [mterry2](/forum/user/33647-mterry2 "View mterry2's Profile")  Replied by *[mterry2](/forum/user/33647-mterry2 "View mterry2's Profile")* on topic *[Last name prepopulted](/forum/33-customers/875303-last-name-prepopulted#192595 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome 36.0.1985  Hi. On the address entry screen at checkout, the last name field is pre-populated with the user's first name. How can I change this so either the first name field is pre-populated, or stop the system pre-populating at all?  Screen shot attached.  Thanks")*

Thanks Nicolas. Yes, I see. I do use the Hikashop registration re-direct, so can I achieve one of the following as a solution:

1. Either change the registration form to separate first name, last name (as defined in my custom fields), rather than just show "name" as per attached screenshot OR

2. Where it shows name, can I amend the code so it requests "Full name" instead...if so, how do I do this? With an override perhaps?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NzUzMDMtbGFzdC1uYW1lLXByZXBvcHVsdGVkP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86562
- Thank you received: 14307
-
-

11 years 8 months ago [\#192610](#192610) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Last name prepopulted](/forum/33-customers/875303-last-name-prepopulted#192610 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome 36.0.1985  Hi. On the address entry screen at checkout, the last name field is pre-populated with the user's first name. How can I change this so either the first name field is pre-populated, or stop the system pre-populating at all?  Screen shot attached.  Thanks")*

1. If you use the HikaShop registration form, the address fields are displayed on it and so, the user will enter his first name and last name during the registration and the data will already be correct (that is unless you removed the display of the address fields from the registration page).

2. That would be easier if you don't want to change your workflow. Just do a translation override of the key HIKA_USER_NAME :
[ hikashop.com/download/languages.html#modify](https://hikashop.com/download/languages.html#modify)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NzUzMDMtbGFzdC1uYW1lLXByZXBvcHVsdGVkP3RtcGw9bWFya2Rvd24=) 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.052 seconds

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