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

#   wrong last name pre filled in address form during

##

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

12 years 11 months ago [\#136591](#136591) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  *[wrong last name pre filled in address form during](/forum/27-checkout/864358-wrong-last-name-pre-filled-in-address-form-during#136591 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I use CB for registration. I ask only email and password for registration so the username and joomla name assigned to user is the email address.  Now when I go to checkout the address form of hikashop show me the last name field already filled in with the email address value ('cause it take it from joomla name field).  That's bad 'cause csn confuse customers. Is it possible to not pre fill that field in this case?")* was created by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I use CB for registration. I ask only email and password for registration so the username and joomla name assigned to user is the email address.

Now when I go to checkout the address form of hikashop show me the last name field already filled in with the email address value ('cause it take it from joomla name field).

That's bad 'cause csn confuse customers. Is it possible to not pre fill that field in this case?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDM1OC13cm9uZy1sYXN0LW5hbWUtcHJlLWZpbGxlZC1pbi1hZGRyZXNzLWZvcm0tZHVyaW5nP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

12 years 11 months ago [\#136623](#136623) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[wrong last name pre filled in address form during](/forum/27-checkout/864358-wrong-last-name-pre-filled-in-address-form-during#136623 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I use CB for registration. I ask only email and password for registration so the username and joomla name assigned to user is the email address.  Now when I go to checkout the address form of hikashop show me the last name field already filled in with the email address value ('cause it take it from joomla name field).  That's bad 'cause csn confuse customers. Is it possible to not pre fill that field in this case?")*

The issue here is really CB which set the email in the name of the user account... It should set the name not the email really.

If you don't want HikaShop to us the joomla user account name for that, you can always edit the file components/com_hikashop/views/address/view.html.php and remove the code: Code:

$userCMS = JFactory::getUser(); if(!$userCMS-&gt;guest){ $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; }

But that's a hack...

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

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

12 years 11 months ago -  12 years 11 months ago [\#136637](#136637) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[wrong last name pre filled in address form during](/forum/27-checkout/864358-wrong-last-name-pre-filled-in-address-form-during#136637 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I use CB for registration. I ask only email and password for registration so the username and joomla name assigned to user is the email address.  Now when I go to checkout the address form of hikashop show me the last name field already filled in with the email address value ('cause it take it from joomla name field).  That's bad 'cause csn confuse customers. Is it possible to not pre fill that field in this case?")*

CB can't set name in this case because I dont ask for it during registration. I ask only an email and password so CB can fill joomla name only with that email value.

You say that it is an hack. Not a normal view override in this case? You mean I will lose that when upgrade?

Last edit: 12 years 11 months ago by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDM1OC13cm9uZy1sYXN0LW5hbWUtcHJlLWZpbGxlZC1pbi1hZGRyZXNzLWZvcm0tZHVyaW5nP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

12 years 11 months ago [\#136766](#136766) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[wrong last name pre filled in address form during](/forum/27-checkout/864358-wrong-last-name-pre-filled-in-address-form-during#136766 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I use CB for registration. I ask only email and password for registration so the username and joomla name assigned to user is the email address.  Now when I go to checkout the address form of hikashop show me the last name field already filled in with the email address value ('cause it take it from joomla name field).  That's bad 'cause csn confuse customers. Is it possible to not pre fill that field in this case?")*

That's correct. It's not a view override as you have to edit the file directly via FTP.
You will have to reapply the change when you update/upgrade.

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

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