Skip to main content

Empty last name field if simplified reg. with pass

More
10 years 2 months ago #245574 by crealiagroup
-- 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.

More
10 years 2 months ago #245594 by nicolas
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.

More
10 years 2 months ago #246154 by crealiagroup
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.

More
10 years 2 months ago #246171 by nicolas
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.

More
10 years 2 months ago #246542 by crealiagroup
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.205 seconds
Powered by Kunena Forum