USA_Webmaster Posted August 30, 2016 Share Posted August 30, 2016 How do I reset, or clear domain renewal specific notification for customer? This is what the popover user notification says: Notifications You have 1 domain(s) expiring within the next 7 days. The thing is, when renew is clicked, "Days Until Expire" is 114 days. • stock whmcs theme • div accountNotificationsContent • backend notification popover alert TYVM for your wisdom, 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 31, 2016 Share Posted August 31, 2016 the only way available and I could be wrong, it to edit your template/header.tpl file replace the notification code: <div class="pull-right nav"> <a href="#" class="quick-nav" data-toggle="popover" id="accountNotifications" data-placement="bottom" title="{lang key="notifications"}"><i class="fa fa-info"></i> {$LANG.notifications} ({$clientAlerts|count})</a> <div id="accountNotificationsContent" class="hidden"> {foreach $clientAlerts as $alert} <div class="clientalert text-{$alert->getSeverity()}">{$alert->getMessage()}{if $alert->getLinkText()} <a href="{$alert->getLink()}" class="btn btn-xs btn-{$alert->getSeverity()}">{$alert->getLinkText()}</a>{/if}</div> {foreachelse} <div class="clientalert text-success"><i class="fa fa-check-square-o"></i> {$LANG.notificationsnone}</div> {/foreach} </div> </div> with this: {assign var=newClientAlerts value=[]} {foreach $clientAlerts as $index => $alert} {if strpos($alert->getMessage(), "expiring")!==false && $loggedinuser.userid=='ClientIDHere'} {else} {$newClientAlerts[]=$alert} {/if} {/foreach} {assign var=clientAlerts value=$newClientAlerts} <div class="pull-right nav"> <a href="#" class="quick-nav" data-toggle="popover" id="accountNotifications" data-placement="bottom" title="{lang key="notifications"}"><i class="fa fa-info"></i> {$LANG.notifications} ({$clientAlerts|count})</a> <div id="accountNotificationsContent" class="hidden"> {foreach $clientAlerts as $alert} <div class="clientalert text-{$alert->getSeverity()}">{$alert->getMessage()}{if $alert->getLinkText()} <a href="{$alert->getLink()}" class="btn btn-xs btn-{$alert->getSeverity()}">{$alert->getLinkText()}</a>{/if}</div> {foreachelse} <div class="clientalert text-success"><i class="fa fa-check-square-o"></i> {$LANG.notificationsnone}</div> {/foreach} </div> </div> and add this specific client id in "ClientIDHere" 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 31, 2016 Share Posted August 31, 2016 i'd agree with sentq on this, editing the template will be the simplest way. also, if the notification is giving incorrect information, you may want to report it as a bug. 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.