Jump to content

Show a specific customer field in the invoice.


Recommended Posts

Hello!

We are trying to print a specific customer field in the invoice but not in the bottom part (as default).

We having some troubles with call specific customer field.

Construction {$client_custom_field_typeofcustomer} (from manual page https://docs.whmcs.com/clients/the-client-area/custom-fields/ ) didn't help.

For now, we have found such solution (in templates/viewinvoice.tpl):

{foreach from=$customfields item=customfield}
      {if $customfield.id == 3}
          {assign var="myCustomName" value=$customfield.fieldname}
          {assign var="myCustomValue" value=$customfield.value}
      {/if}
{/foreach}

{$myCustomName}: {$myCustomValue}<br />

But I suspect there is another way to show the name of this Customer field and it's parameter.

Customer field name - Company number.

Thank you in advance for your help!

Best regards!

Link to comment
Share on other sites

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