Jump to content

lims

Members
  • Content count

    56
  • Joined

  • Last visited

Community Reputation

5 Neutral

About lims

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Let's we see your CODE ? ====================== source code $client = Menu::context("client"); $clientid = (int) $client->id; if ($clientid===0 || $dueinvoices===0){ return; } here is the same as above $client = Menu::context("client"); if (!is_null($client) && $dueinvoices > 0) { // function here.... }
  2. No, did you mean this invoice stats only count overdue ? but why invoice come from new order show in count ? new invoice is not overdue too just try at look at...
  3. that right... and work, thanks so much @brian!
  4. i just found issues in default template six not count all invoice stats ( in clientareahome.tpl ) 1 invoice = unpaid & 1 invoice from add fund but only count = 1 this is not count invoice if come from add fund balance, just change this {$clientsstats.numunpaidinvoices} to this... for fixed {$clientsstats.numdueinvoices} thanks regards
  5. haw to merger this $clientname = $client['firstname']['lastname']; in $template call = {$clientsdetails.fullname} thanks before
  6. yes, i know that, I deliberately used this code, 'My Invoices Summary' for replace default in invoices page, its can be change to other, but will show two alert invoice thank you so much @brian! your code is perfect and work...
  7. can u help where is this added ?
  8. this use only for same as {if $loggedin} any idea ? already try but not work, maybe other code to use call
  9. i have build this hook for show invoices due in sidebar <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar){ $filename = APP::getCurrentFileName(); $client = Menu::context("client"); $clientid = (int) $client->id; if ($filename!=='clientarea' || $clientid===0){ return; } $primarySidebar->addChild('My Invoices Summary', array( 'label' => Lang::trans("invoicesdue"), 'uri' => '#', 'order' => '1', 'icon' => 'fa-money-bill-wave' )); $invoicesbar = $primarySidebar->getChild('My Invoices Summary'); $invoicesbar->addChild('invoicesdue', array( 'uri' => 'clientarea.php?action=masspay&all=true', 'label' => '<div style="text-align:center;">'.Lang::trans("invoicesduemsg").'</div>', 'order' => 1 )); $invoicesbar->setFooterHtml( '<div style="text-align:center;"><a href="clientarea.php?action=masspay&all=true" class="btn btn-danger">'.formatcurrency($client['dueinvoicesbalance']).'</a></div>' ); }); but only show like this when try change $client['dueinvoicesbalance'] to $client['credit'] that work for credit balance ==> in template i use this {$clientsstats.dueinvoicesbalance} my question : 1. need more code for show $client['dueinvoicesbalance'] 2. invoices sidebar only show if client have unpaid invoices thanks before...
  10. this problem show in homepage and 404 i just add for homepage and page 404 original source from @brian! i like him to more advanced help us original source if (!is_null($client) && !strstr($templatefile, 'store/')) add for homepage and 404 change to if (!is_null($client) && !strstr($templatefile, 'store/') && !strstr($templatefile, 'homepage') && !strstr($templatefile, 'error'))
  11. i'm sorry for miss understand hehe, i thing this issues is marketconect, but issues is sidebar 🤣
  12. @brian! here this full custom already modified <?php namespace WHMCS\Module\Widget; use WHMCS\Carbon; use WHMCS\Module\AbstractWidget; use WHMCS\User\Client; class ClientOnline extends AbstractWidget { protected $title = 'Client Last Login'; protected $weight = 80; protected $cache = true; protected $cacheExpiry = 60; protected $requiredPermission = 'List Clients'; public function getData() { return array( 'client' => Client::orderBy('lastlogin', 'desc')->limit(24) ->get(array('email', 'id', 'firstname', 'lastname', 'ip', 'lastlogin'))->toArray(), ); } public function generateOutput($data) { $clientOutput = ''; $clients = array(); foreach ($data['client'] as $client) { $clientOutput .= '<div class="staff">' . '<a href="clientssummary.php?userid='.$client['id'].'"><img class="body-avatar" src="https://www.gravatar.com/avatar/'.md5($client['email']).'?s=60&d=mm" width="60" height="60"/></a>' . '<div class="name">'.$client['firstname'].' '.$client['lastname'].'</div>' . '<small><a href="http://www.geoiptool.com/en/?IP='.$client['ip'].'" target="_blank" class="name" style="color:red">'.$client['ip'].'</a></small>' . '<div class="note text-muted">' . Carbon::createFromFormat('Y-m-d H:i:s', $client['lastlogin'])->diffForHumans().'</div>' . '</div>'; } return <<<EOF <div class="widget-staff-container clearfix"> {$clientOutput} </div> EOF; } }
  13. lims

    Display datepaid

    new added in viewinvoice.tpl by default this date not show if paid
  14. this menu come from Setup >> MarketConnect in Manage u can manage from this ON or Off promotion
  15. anyone know how to display {$datepaid} without time, (only display date ) thanks before mention @brian! need help please
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated