Jump to content

How to display 'custom Fields' on summary page?


bogo

Recommended Posts

  • 2 weeks later...

I am looking to do this exact thing myself and I am hoping this can be accomplished easily.

And as was stated above, this is the customer fields under products and services, not client custom fields.

 

We put such information here as remote reboot login information that would be nice for the customer to access when they login.

Edited by themicro
Link to comment
Share on other sites

  • 2 weeks later...

With Matt's help I was able to get these custom product fields to display on the clientareaproductdetails.tlp templete.

 

If you click admin only on these in WHMCS, they will not show up in the client area :)

 

Here is what I did. In the clientareaproductdetails.tpl templete, I added the following just after where it give the product status :

 

{foreach key=num item=customfield from=$customfields}

<tr><td class="fieldarea">{$customfield.name}:</td><td>{$customfield.value}</td></tr>

{/foreach}

 

Or course you can display these anywhere on the page you like.

 

This basically the same as the config option loop but of course for the product custom fields.

Link to comment
Share on other sites

How do I add this to the product summary page?

 

Here's the code that generates it in the clientsummary.tpl

 

{foreach key=num from=$productsummary item=product}
<tr onmouseover="this.className='admindatatablehighlight'" onmouseout="this.className=''"><td align=center><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$product.id}">{$product.idshort}</a></td><td style="padding-left:5px;padding-right:5px">{$product.dpackage} - {$product.domain}</td><td align="center">{$product.amount}</td><td align=center>{$product.dbillingcycle}</td><td align=center>{$product.regdate}</td><td align=center>{$product.nextduedate}</td><td align="center">{$product.domainstatus}</td><td align="center"><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$product.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}

Link to comment
Share on other sites

  • 4 months later...

<snipped>

 

I'm trying to display the $service.username, which I can do in clientareaproducts.tpl, in the clientssummary.tpl page. Is there are corresponding $product.fieldname to be able to display this?

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