ocastaned Posted December 26, 2015 Share Posted December 26, 2015 How can I make the client area invoice history default to display in reverse order (latest invoices first) on WHMCS 6.2? I am on six template. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 27, 2015 Share Posted December 27, 2015 open /templates/six/clientareainvoices.tpl between these lines: {/if} table.draw(); add the following code: table.order(0, 'desc'); so it should look like this: {/if} table.order(0, 'desc'); table.draw(); This will sort invoices by "Invoice ID", for "Invoice Date" replace 0 with 1, "Due Date" 2 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 27, 2015 Share Posted December 27, 2015 in clientareainvoices.tpl, change... {if $orderby == 'default'} table.order([4, 'desc'], [2, 'asc']); to... {if $orderby == 'default'} table.order([1, 'desc'], [4, 'desc']); that will sort it by invoice date (new -> old), and then by status. 0 Quote Link to comment Share on other sites More sharing options...
ocastaned Posted December 27, 2015 Author Share Posted December 27, 2015 Thank you so much guys. That worked very well. 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.