Yurii Varenytsia Posted March 19 Share Posted March 19 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! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.