Empty last name field if simplified reg. with pass

  • Posts: 117
  • Thank you received: 3
8 years 4 months ago #245574

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
-- PHP version -- : 5.5

Hi,

I've setted a Simplified registration with email and password only. When user click on the confirmation link he's asked to fill the address form. In the form the Last Name field is already filled with the first part of the user email address.

I would leave that field empty till the user do not fill it. How can I do that?

Thanks in advance.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #245594

Hi,

You can try removing the line:
$address->address_lastname = $name;
from the file components/com_hikashop/views/address/view.html.php

The following user(s) said Thank You: crealiagroup

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

  • Posts: 117
  • Thank you received: 3
8 years 4 months ago #246154

Is this an hack or an override? This file seems out of the tmpl folder.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #246171

Hi,

It is a hack. Overriding view.html.php files is not impossible but more complex as you need to do it through a system plugin
www.informit.com/articles/article.aspx?p=1858258&seqNum=8

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

  • Posts: 117
  • Thank you received: 3
8 years 4 months ago #246542

Thanks Nicolas for reply. I would suggest to consider this in future releases. It's very annoying to have the last name prefilled in that case. :)

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

Time to create page: 0.070 seconds
Powered by Kunena Forum