Jump to content

David Duarte

Newbie
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

6 Neutral

About David Duarte

  • Rank
    Junior Member

Recent Profile Visitors

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

  1. Hello Mark, This typo was in the Portuguese version from which the English version was translated. I've already done the correction in my system. Thank you very much for your help! Best regards, David Duarte
  2. Hello there, We think that's not useful to display the auto renew option as ON for cancelled/expired domains on client area. In fact this can be pretty confuse for customers. If you prefer to show just the domain status for cancelled/expired domains, just do the following: file: templatename/clientareadomains.tpl replace: <td> {if $domain.autorenew} <i class="fas fa-fw fa-check text-success"></i> {$LANG.domainsautorenewenabled} {else} <i class="fas fa-fw fa-times text-danger"></i> {$LANG.domainsautorenewdisabled} {/if} </td> by: <td> if $domain.status eq 'Active'} {if $domain.autorenew} <i class="fas fa-fw fa-check text-success"></i> {$LANG.domainsautorenewenabled} {else} <i class="fas fa-fw fa-times text-danger"></i> {$LANG.domainsautorenewdisabled} {/if} {else}<i class="fas fa-fw fa-times text-muted"></i> {$LANG.domainsautorenewdisabled} {/if} </td>
  3. Hello there, On V 7.6 we now have the notifications NEW string ready for translation. Before having this option available, we decided to replace the text NEW by the number of notifications, as we think this can easily attract the user attention. On this minimalistic version, if the user don't have any notification the div is not displayed, we only show what needs to be shown ūüėČ Feel free to use it. {if count($clientAlerts) > 0} <div class="notifications"> <li> <a href="#" data-toggle="popover" id="accountNotifications" data-placement="bottom"> {$LANG.notifications} <span class="label label-info">{count($clientAlerts)}</span> <b class="caret"></b> </a> <div id="accountNotificationsContent" class="hidden"> <ul class="client-alerts"> {foreach $clientAlerts as $alert} <li> <a href="{$alert->getLink()}"> <i class="fas fa-fw fa-{if $alert->getSeverity() == 'danger'}exclamation-circle{elseif $alert->getSeverity() == 'warning'}exclamation-triangle{elseif $alert->getSeverity() == 'info'}info-circle{else}check-circle{/if}"></i> <div class="message">{$alert->getMessage()}</div> </a> </li> {foreachelse} <li class="none"> {$LANG.notificationsnone} </li> {/foreach} </ul> </div> </li></div>{else}<br /><br />{/if} Best regards, David Duarte
  4. Hello there, After a lot of thinking, here you have a template for the Upcoming Domain Renewal Notice that will cover all scenarios. Subject: Domain {$domain_name} is due to expire in {$domain_days_until_expiry} days Dear {$client_name}, Domain {$domain_name} is due to expire in {$domain_days_until_expiry} days - {if $domain_do_not_renew eq "0"}Auto Renew On{else}Auto Renew Off{/if}. {if $domain_days_until_expiry eq "60"}{if $domain_do_not_renew eq "0"}As you have Auto Renew On, you will receive the renewal invoice 30 days before the expiration date.{else}If you would like to have the domain renewed, please access client area and turn On the Auto Renew option.{/if}{else}{if $domain_do_not_renew eq "0"}As you have Auto Renew On, you should have already received the renewal invoice. If you still didn't received the invoice, please contact our sales department. If you have already received the renewal invoice, please pay it as soon as possible to avoid the risk of domain expiration.{else}To renew the domain, please click on the following url {$domain_renewal_url}.{/if}{/if} {if $domain_days_until_expiry eq "7"}If domain {$domain_name} expires, the website and emails using this domain will no longer work.{/if} {if $domain_days_until_expiry eq "3"}If domain {$domain.name} expires, the website and emails using this domain will no longer work, and the domain may be available to be registered by someone else. WARNING: To renew an expired domain, when possible, you may have to pay a fee of up to $250.{/if} Explanation If you have configured the First Renewal Notice to be sent 60 days prior to the expiration date, and the customer has Auto Renew On, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 60 days - Auto Renew On. As you have Auto Renew On, you will receive the renewal invoice 30 days before the expiration date. If you have configured the First Renewal Notice to be sent 60 days prior to the expiration date, and the customer has Auto Renew Off, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 60 days - Auto Renew Off. If you would like to have the domain renewed, please access client area and turn On the Auto Renew option. If you have configured the Second Renewal Notice to be sent 30 days prior to the expiration date, and the customer has Auto Renew On, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 30 days - Auto Renew On. As you have Auto Renew On, you should have already received the renewal invoice. If you still didn't received the invoice, please contact our sales department. If you have already received the renewal invoice, please pay it as soon as possible to avoid the risk of domain expiration. If you have configured the Second Renewal Notice to be sent 30 days prior to the expiration date, and the customer has Auto Renew Off, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 30 days - Auto Renew Off. To renew the domain, please click on the following url {$domain_renewal_url}. If you have configured the Third Renewal Notice to be sent 7 days prior to the expiration date, and the customer has Auto Renew On, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 7 days - Auto Renew On. As you have Auto Renew On, you should have already received the renewal invoice. If you still didn't received the invoice, please contact our sales department. If you have already received the renewal invoice, please pay it as soon as possible to avoid the risk of domain expiration. If domain example.com expires, the website and emails using this domain will no longer work. If you have configured the Third Renewal Notice to be sent 7 days prior to the expiration date, and the customer has Auto Renew Off, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 7 days - Auto Renew Off. To renew the domain, please click on the following url {$domain_renewal_url}. If domain example.com expires, the website and emails using this domain will no longer work. If you have configured the Fourth Renewal Notice to be sent 3 days prior to the expiration date, and the customer has Auto Renew On, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 3 days - Auto Renew On. As you have Auto Renew On, you should have already received the renewal invoice. If you still didn't received the invoice, please contact our sales department. If you have already received the renewal invoice, please pay it as soon as possible to avoid the risk of domain expiration. If domain example.com expires, the website and emails using this domain will no longer work, and the domain may be available to be registered by someone else. WARNING: To renew an expired domain, when possible, you may have to pay a fee of up to $250. If you have configured the Fourth Renewal Notice to be sent 3 days prior to the expiration date, and the customer has Auto Renew Off, here you have the content he will receive on that Notice: Dear Customer Name, Domain example.com is due to expire in 3 days - Auto Renew Off. To renew the domain, please click on the following url {$domain_renewal_url}. If domain example.com expires, the website and emails using this domain will no longer work, and the domain may be available to be registered by someone else. WARNING: To renew an expired domain, when possible, you may have to pay a fee of up to $250. I hope that this will be useful for someone. Best regards, David Duarte
  5. David Duarte

    Include Support SideBar on submitticket.php

    Now with icons <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (APP::getCurrentFileName()=="submitticket"){ if (!is_null($secondarySidebar->getChild('Support'))) { }else{ $secondarySidebar->addChild('sidebar1', array( 'label' => Lang::trans('navsupport'), 'order' => '10', 'icon' => 'fa-support', )); $secondarySidebar->getChild('sidebar1') ->addChild('child1', array( 'label' => Lang::trans('clientareanavsupporttickets'), 'uri' => 'supporttickets.php', 'icon' => 'fa-ticket' )); $secondarySidebar->getChild('sidebar1') ->addChild('child2', array( 'label' => Lang::trans('announcementstitle'), 'uri' => 'announcements', 'icon' => 'fa-list' )); $secondarySidebar->getChild('sidebar1') ->addChild('child3', array( 'label' => Lang::trans('knowledgebasetitle'), 'uri' => 'knowledgebase', 'icon' => 'fa-info-circle' )); } } });
  6. David Duarte

    Include Support SideBar on submitticket.php

    Hello Brian, Thank you very much for your help. With your tips I was able to code what I needed. Here you have the code, as it can be useful for someone else. <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (APP::getCurrentFileName()=="submitticket"){ if (!is_null($secondarySidebar->getChild('Support'))) { }else{ $secondarySidebar->addChild('sidebar1', array( 'label' => Lang::trans('navsupport'), 'order' => '10', 'icon' => 'fa-support' )); $secondarySidebar->getChild('sidebar1') ->addChild('child1', array( 'label' => Lang::trans('clientareanavsupporttickets'), 'uri' => 'supporttickets.php' )); $secondarySidebar->getChild('sidebar1') ->addChild('child2', array( 'label' => Lang::trans('announcementstitle'), 'uri' => 'announcements' )); $secondarySidebar->getChild('sidebar1') ->addChild('child3', array( 'label' => Lang::trans('knowledgebasetitle'), 'uri' => 'knowledgebase' )); } } });
  7. David Duarte

    Responsive Tables

    Dear Friends, Did someone found a solution to get tables of Services, Domains, Tickets, Invoices responsive using six template? We really need this... Thank you, David Duarte
  8. David Duarte

    Include Support SideBar on submitticket.php

    After all it seems the primary and secondary bar are included only if the customer has tickets. I would like to have the secondary bar even if he has no tickets.
  9. Dear friends, I've already tried to include the Support Secondary Sidebar on submitticket.php page, but I was not able. I can add a custom sidebar, but what I would like is to show the Support default secondary Sidebar. Any idea if this can be done and how? Thank you very much. Best regards, David Duarte
  10. Welcome to WHMCS.Community David Duarte! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines