Jump to content

Custom client fields help (Mobile number)


SMBTom

Recommended Posts

Hi,

 

I'm trying to add a custom client field 'Mobile phone number' just below the default 'Phone number'.

 

I've added the new field in Setup->Custom client fields. It also gives the option to set the 'display order'. As default this is set to 0.

 

Here's where the new field displays on the front end:

 

Client Area.jpg

 

If I change the 'display order' to a different number 9I've tried many different numbers!), it still stays in the same place on the front end. Can anyone tell me how to move this field to the correct position (as per the above screenshot)?

 

Thanks,

Tom

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

The sort order is the order amongst other custom fields, not the order form itself. To change the position of custom fields entirerly you'd need to edit the templates/default/clientregister.tpl and move:

 

{foreach key=num item=customfield from=$customfields}
   <div class="clearfix">
    <label for="customfield{$customfield.id}">{$customfield.name}</label>
	<div class="input">
	    {$customfield.input} {$customfield.description}
	</div>
</div>
{/foreach}

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated