Jump to content

Is it possible to show clients custom field value in  WHMCS  AdminArea ClientSummary Page


serverbd

Recommended Posts

Is it possible to show clients custom field value in 

WHMCS  AdminArea ClientSummary Page?

I try admin template 

/admin/templates/blend/clientssummary.tpl

No Luck

{if $customfields}
{foreach from=$customfields key=num item=customfield}{$customfield.value}
{/foreach}
{/if}

 

Link to comment
Share on other sites

$customfields is probably not valid there. What you can do is leave the template change and inject the variable with a AdminAreaPage hook, limiting it to the summary page.  You would need to fetch the client and its custom fields and return that.   An other option is to simply return your html via AdminAreaClientSummaryPage hook but that outputs above everything and you may need javascript to move it in to position. 

Link to comment
Share on other sites

On 10/31/2021 at 7:50 PM, serverbd said:

Is it possible to show clients custom field value in 

WHMCS  AdminArea ClientSummary Page?

I try admin template 

/admin/templates/blend/clientssummary.tpl

No Luck


{if $customfields}
{foreach from=$customfields key=num item=customfield}{$customfield.value}
{/foreach}
{/if}

 

Add {debug} in /admin/templates/blend/clientssummary.tpl and check the provided data you can use on that template/page. Or create a hook to return the customfields to that template.

Link to comment
Share on other sites

6 hours ago, pRieStaKos said:

Add {debug} in /admin/templates/blend/clientssummary.tpl and check the provided data you can use on that template/page. Or create a hook to return the customfields to that template.

Thanks dear..

I make a hook and working perfect..

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