vadimisakanov Posted January 14, 2012 Share Posted January 14, 2012 Hi, hosting and billing professionals! I'm trying to customize my WHMCS userspace and have difficulties with that. I want to put a list of products that a user has signed up to on the page https://mydomain.com/members/clientarea.php through editing clientareahome.tpl. I simply copy the followint code from clientareproducts.tpl: <table class="data" width="100%" border="0" cellpadding="10" cellspacing="0"> <tr> <th><a href="clientarea.php?action=products{if $q}&q={$q}{/if}&orderby=product">{$LANG.orderproduct}</a>{if $orderby eq "product"} <img src="images/{$sort}.gif" alt="" border="0" />{/if}</th> <th><a href="clientarea.php?action=products{if $q}&q={$q}{/if}&orderby=price">{$LANG.orderprice}</a>{if $orderby eq "price"} <img src="images/{$sort}.gif" alt="" border="0" />{/if}</th> <th><a href="clientarea.php?action=products{if $q}&q={$q}{/if}&orderby=billingcycle">{$LANG.orderbillingcycle}</a>{if $orderby eq "billingcycle"} <img src="images/{$sort}.gif" alt="" border="0" />{/if}</th> <th><a href="clientarea.php?action=products{if $q}&q={$q}{/if}&orderby=nextduedate">{$LANG.clientareahostingnextduedate}</a>{if $orderby eq "nextduedate"} <img src="images/{$sort}.gif" alt="" border="0" />{/if}</th> <th width="20"> </th> </tr> {foreach key=num item=service from=$services} <tr class="clientareatable{$service.class}"> <td>{$service.group} - {$service.product}{if $service.domain}<br /> <a href="http://{$service.domain}" target="_blank">{$service.domain}</a>{/if}</td> <td>{$service.amount}</td> <td>{$service.billingcycle}</td> <td>{$service.nextduedate}</td> <td><form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails"> <input type="hidden" name="id" value="{$service.id}" /> <input type="image" src="images/viewdetails.gif" alt="{$LANG.clientareaviewdetails}" /> </form></td> </tr> {foreachelse} <tr> <td colspan="6">{$LANG.norecordsfound}</td> </tr> {/foreach} </table> and paste it to clientareahome.tpl After that WHMCS does put the table with that contents on the clientarea.php page, but it does not display any products, just saying "No records found". What am I doing wrong and how is it better to display user's products right on the clientarea.php page? Thanks for attention! 0 Quote Link to comment Share on other sites More sharing options...
agilityweb Posted February 13, 2012 Share Posted February 13, 2012 do you find the solution to this as I am having the same issue? 0 Quote Link to comment Share on other sites More sharing options...
Sk43 Posted April 30, 2012 Share Posted April 30, 2012 Anyone? Thanks in advance. SK 0 Quote Link to comment Share on other sites More sharing options...
jerett Posted May 7, 2012 Share Posted May 7, 2012 Curious as well in this. 0 Quote Link to comment Share on other sites More sharing options...
bss42 Posted May 15, 2012 Share Posted May 15, 2012 Hello, it's because the $products array is not enable in clienareahome.tpl , you must retrieve it with a hook 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.