Remove 'name' field from registration

  • Posts: 272
  • Thank you received: 7
11 years 2 months ago #149689

-- HikaShop version -- : latest
-- Joomla version -- :2.5.19


I would like to remove the 'name' field from the registration form, as users are getting confused why they have to enter their name twice twice. Please see attachment. I know I have to edit the view User > Registration, but can you tell me what bit of code I need to remove in order for this 'name field to disappear?

That would be really appreciated.

Attachments:

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

  • Posts: 272
  • Thank you received: 7
11 years 2 months ago #149691

Would I just delete the code in red:

?>
<table cellpadding="0" cellspacing="0" border="0" class="hikashop_contentpane">
<?php if(!$this->simplified_registration){ ?>
<tr class="hikashop_registration_name_line" id="hikashop_registration_name_line">
<td class="key">
<label id="namemsg" for="register_name">
<?php echo JText::_( 'HIKA_USER_NAME' ); ?>
</label>
</td>
<td>
<input type="text" name="data[register][name]" id="register_name" value="<?php echo $this->escape($this->mainUser->get( 'name' ));?>" class="inputbox required" maxlength="50" /> *
</td>
</tr>

<tr class="hikashop_registration_username_line" id="hikashop_registration_username_line">
<td class="key">
<label id="usernamemsg" for="register_username">
<?php echo JText::_( 'HIKA_USERNAME' ); ?>
</label>
</td>
<td>

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #149699

Hello,
I think that reading that thread will probably help you :

With both the Essential and the Business version, you can set the registration option of the config to simplified registration to remove the name, username and passwords fields.
It's not possible to just remove the two firsts. The password will be generated automatically and sent via email to the user.

The fields are generated dynamically so you can't just change them like that, unfortunately.

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

  • Posts: 272
  • Thank you received: 7
11 years 2 months ago #149705

Hi Mohammed,

I am neither an Essential or Business user so that does not help.
Previously on another website I removed the 'name' field and it was not a problem. It seems only a problem if you remove 'user name' as all emails use the 'user-name'. Can you please confirm?

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

  • Posts: 83905
  • Thank you received: 13581
  • MODERATOR
11 years 2 months ago #149763

Then yes, you can remove that code.

The following user(s) said Thank You: boopoo

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

  • Posts: 272
  • Thank you received: 7
10 years 9 months ago #167692

Hi Nicolas,

I am building a new site and would like to remove the the 'Name' field from view User | Registration. I tried to remove the following from the view user / registration as before, but the name field is still there. Any ideas?

<tr class="hikashop_registration_name_line" id="hikashop_registration_name_line">
		<td class="key">
			<label id="namemsg" for="register_name">
				<?php echo JText::_( 'HIKA_USER_NAME' ); ?>
			</label>
		</td>
			<td>
				<input type="text" name="data[register][name]" id="register_name" value="<?php echo $this->escape($this->mainUser->get( 'name' ));?>" class="inputbox required" maxlength="50" /> *
			</td>
	</tr>

Last edit: 10 years 9 months ago by Jerome. Reason: [code] is nice !! not color

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

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
10 years 9 months ago #167694

Hi,

You're editing the wrong view (registration and it's "registration_bootstrap" ; because you're no on Joomla 3 with bootstrap).

But, if you remove the "name from the registration, I can tell you that you will have some bug afterwards.
This field is required, and it's not for nothing. So if you remove it, the registration won't work anymore.
That's why HikaShop have options in the registration in order to have a "simplified registration".

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 272
  • Thank you received: 7
10 years 9 months ago #168603

Hi Jerome,

Can you show me an example of the 'simplified registration' in action? How much more simplified is it?

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

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
10 years 9 months ago #168667

Hi,

I guess the easier for you will be to see it directly in our demo website.
You can access to the front-end and to the back-end using the "demo" account ; so don't hesitate to change the configuration to test the results.

demo.hikashop.com/

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 272
  • Thank you received: 7
10 years 9 months ago #168784

Jerome - the guest login is just what I need so time I move to your paying packages.
Can you please tell me one thing. A developer has made various changes to the views in my hikashop, in order to make hikashop and my template Bootstrap compatible for responsive layout. If I upload the essential version of hikashop, is that going to be an issue?

I guess I just have to try and see right?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #168788

Hi,

If the overrides have been done in the template folder, or via our interface so nothing will be lost and it will not be an issue.

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

Time to create page: 0.090 seconds
Powered by Kunena Forum