Thumper Posted September 7, 2018 Share Posted September 7, 2018 attempting to show product/service, price, billing cycle, due date, status and a manage button in a table format on the homepage {foreach key=num from=$services item=service} <tr> <td><strong>{$service.group} - {$service.product}</strong>{if $service.domain}<br /><a href="clientarea.php?action=productdetails&id={$service.id}" target="_blank">{$service.domain}</a>{/if}</td> <td>{$service.amount}</td> <td>{$service.billingcycle}</td> <td>{$service.nextduedate}</td> {if $service.rawstatus eq 'active'} <td><span class="label label-success {$service.rawstatus}">{$service.statustext}</span></td> {elseif $service.rawstatus eq 'fraud'} <td><span class="label label-warning {$service.rawstatus}">{$service.statustext}</span></td> {elseif $service.rawstatus eq 'terminated'} <td><span class="label label-danger {$service.rawstatus}">{$service.statustext}</span></td> {elseif $service.rawstatus eq 'cancelled'} <td><span class="label label-info {$service.rawstatus}">{$service.statustext}</span></td> {else} <td><span class="label label-grey {$service.rawstatus}">{$service.statustext}</span></td> {/if} <td> <a href="clientarea.php?action=productdetails&id={$service.id}"> <i class="icon icon-list-alt"></i> {$LANG.clientareaviewdetails}</a> </td> </tr> {foreachelse} <tr> <td colspan="6" class="textcenter">{$LANG.norecordsfound}</td> </tr> {/foreach} I use this code on the clientareaproducts.tpl page, and I get data, but nothing on the clientareahome. So far I have gathered that a hook would need or should be used. but how do I call the required variables? how do I call my custom hook? Any help with this would be appreciated. 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.