Jump to content

How to delete field "company" in the register form?


otreum

Recommended Posts

Hello,

I’m using version 1.5.4 and trying to delete field “company” in the users’ register form and I half achived it…

I edited file address.tpl and left the following lines commented:

 

<!--{if $field_name eq 'company'}
<p class="text">
<input type="hidden" name="token" value="{$token}" />
<label for="company">{l s='Company'}</label>
<input type="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{else}{if isset($address->company)}{$address->company}{/if}{/if}" />
</p>
{/if}-->

 

With the steps above, the field “company” does not appear in the form,, however, when trying to register the user address, I get the following error:

 

There is 1 error

1.
Invalid tab

 

 

What else should I delete in order not to get the error when registering the address?

Hope you can help me. Thanks.

Regards,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...