Osaul Posted April 15, 2016 Share Posted April 15, 2016 Hello guys, We have been upgraded billing-system WHMCS up to v6.2.2 and starting use template Six. Some of our customers want to see credit balance when they login to client area. After that we found very nice solution (https://wiki.whmcs.com/showthread.php?106891-Display-Credit-Balance-In-Six-Template) and solved this issue. At now we must solve next issue - most of our customers want to see in My Invoices which exactly kind of transaction have all invoices (refill or charge), but without login to each invoice. If you have more 100 invoices there are very difficult to login each and check what is exactly the invoice - charge or refill balance? Do you know some good solution? We try to find something via forum, but there are no results yet. Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
Osaul Posted April 19, 2016 Author Share Posted April 19, 2016 When we used WHMCS v.5 we found: <table class="table table-striped table-framed table-centered no-more-tables"> <thead> <tr> <th{if $orderby eq "id"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=id">{$LANG.invoicestitle}</a></th> <th{if $orderby eq "date"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=date">{$LANG.invoicesdatecreated}</a></th> <th{if $orderby eq "duedate"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=duedate">{$LANG.invoicesdatedue}</a></th> <th{if $orderby eq "total"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=total">{$LANG.invoicestotal}</a></th> <th{if $orderby eq "status"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=status">{$LANG.invoicesstatus}</a></th> <th> </th> </tr> </thead> <tbody> {foreach from=$invoices item=invoice} <tr> <td data-title="{$LANG.invoicestitle}"><a href="viewinvoice.php?id={$invoice.id}" target="_blank"><strong>{$invoice.invoicenum}</strong></a></td> <td data-title="{$LANG.invoicesdatecreated}">{$invoice.datecreated}</td> <td data-title="{$LANG.invoicesdatedue}">{$invoice.datedue}</td> <td data-title="{$LANG.invoicestotal}">{$invoice.total}</td> <td data-title="{$LANG.invoicesstatus}"><span class="label {$invoice.rawstatus}">{$invoice.statustext}</span></td> <td class="last textcenter"><a href="viewinvoice.php?id={$invoice.id}" target="_blank" class="btn">{$LANG.invoicesview}</a></td> </tr> Replaced with: <table class="table table-striped table-framed table-centered no-more-tables"> <thead> <tr> <th{if $orderby eq "id"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=id">{$LANG.invoicestitle}</a></th> <th{if $orderby eq "date"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=date">{$LANG.invoicesdatecreated}</a></th> <th{if $orderby eq "duedate"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=duedate">{$LANG.invoicesdatedue}</a></th> <th><a href="#">{$LANG.invoicetype}</a></th> <th{if $orderby eq "total"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=total">{$LANG.invoicestotal}</a></th> <th{if $orderby eq "status"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=status">{$LANG.invoicesstatus}</a></th> <th> </th> </tr> </thead> <tbody> {foreach from=$invoices item=invoice} <tr> <td data-title="{$LANG.invoicestitle}"><a href="viewinvoice.php?id={$invoice.id}" target="_blank"><strong>{$invoice.invoicenum}</strong></a></td> <td data-title="{$LANG.invoicesdatecreated}">{$invoice.datecreated}</td> <td data-title="{$LANG.invoicesdatedue}">{$invoice.datedue}</td> {getinvoicetype invoiceid=$invoice.invoicenum refill=$LANG.invoicerefill charge=$LANG.invoicecharge title=$LANG.invoicetype} <td data-title="{$LANG.invoicestotal}">{$invoice.total}</td> <td data-title="{$LANG.invoicesstatus}"><span class="label {$invoice.rawstatus}">{$invoice.statustext}</span></td> <td class="last textcenter"><a href="viewinvoice.php?id={$invoice.id}" target="_blank" class="btn">{$LANG.invoicesview}</a></td> </tr> At now we want do it for template Six. How we can correctly add this solution to clientareainvoices.tpl? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 19, 2016 Share Posted April 19, 2016 what's {getinvoicetype} - a Smarty plugin? if so, it might still work in v6 - the smarty plugins folder has moved, but once in the correct directory, it might work... /vendor/smarty/smarty/libs/plugins/ 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.