Jump to content

Clear Domain Renewal Notification (popover alert)


USA_Webmaster

Recommended Posts

:?:

 

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,

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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