bogo Posted December 15, 2008 Share Posted December 15, 2008 Under product and service (also on the order form) you can add custom fields. But how do show those custom fields on the Client Summary Page? Suggestion much appreciated Thanks 0 Quote Link to comment Share on other sites More sharing options...
keefe007 Posted December 24, 2008 Share Posted December 24, 2008 I'd like to know this as well. Keefe 0 Quote Link to comment Share on other sites More sharing options...
npTechnologies Posted December 29, 2008 Share Posted December 29, 2008 (edited) 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 December 29, 2008 by themicro 0 Quote Link to comment Share on other sites More sharing options...
npTechnologies Posted January 9, 2009 Share Posted January 9, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
keefe007 Posted January 9, 2009 Share Posted January 9, 2009 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} 0 Quote Link to comment Share on other sites More sharing options...
pji Posted May 20, 2009 Share Posted May 20, 2009 <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? 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.