Jump to content
Sign in to follow this  
Kian

Client to Group based on Registered Domains

Recommended Posts

The hook assigns clients to groups based on the number of active domains in their accounts (Active, Grace and Redemption). This is particularly useful for Domain Pricing slabs. Let's take this code as example.

$groups['1'] = '10';
$groups['2'] = '25';
$groups['3'] = '100';

The key of $groups array (eg. ['1']) represents the ID of the group while the value the number of active domains. According to the above configuration, here is what happens:

  • Customer A has 10 domains. He goes to client group ID 2. Next day domains become 9. The the customer is removed from the group
  • Customer B has 99 domains. He still goes to client group ID 2 but will be moved to 3 in case he manages to reach 100 domains
  • Customer C has 250 domains. Group ID 3

The hook runs with WHMCS daily cron job meaning that customers are moved (or removed) from groups on a daily basis. Optionally, you can use the following feature to add some restrictions:

  • $activeCustomers rules apply only on Active customers (boolean true or false)

Get the Code »

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Similar Content

    • By thisismatt
      Hey all
      On my WHMCS portal homepage beneath the domain search box I have 3 domain logos showing (ignore the sizing issue!) as per the below screenshot.

      However, when I click through to the pricing page I have all of my Spotlight TLDs visible, as per the second screenshot.

      My question is what controls which TLDs are shown on the homepage? Why is WHMCS showing only 3 (and those particular 3) on the homepage?
      Thanks
      Matt
    • By Pieter Rubeus
      Hi WHMCS
      Can you please add domain search in the header of the admin area next to the intelligent search.
    • By ModulesGarden
      1. New Year’s Brainstorm Winners Revealed!

      As we were entering into the New Year, we sought your advice on the goals we should pursue in 2021. We are eternally grateful for every single piece of suggestion shared constructively in our discussion, as it will help us establish new standards for the continued growth of our product base.

      Now take a last glance at our biggest feats of 2020, and discover the lucky winners who have snatched up an exclusive 20% discount!



      2. cPanel Extended For WHMCS 3.11.0

      With our batteries recharged to the full after the holiday season, we have driven our fresh energy supplies into an ambitious task of broadening the already impressive gamut of functionalities offered by our cPanel Extended For WHMCS!

      The newly launched 3.11.0 version has received a well-earned label of the flawless WHMCS 8.1 support, coupled with all design adjustments required for its integration with the new "Twenty-One" system theme.

      A diverse array of new components unlocks extra power to the clients as they now can block access to their websites for single or a range of IP addresses. Thanks to it, your customers are also empowered to create as well as manage Git repositories without leaving your system.

      Discover how cPanel Extended For WHMCS 3.11.0 can work wonders for your web hosting business!



      Need Custom Software Development For Your Business?
       
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By saywork
      Hello every one,
      I just started my iptv business and i am trying to understand few things .
      I am using smarters addon , and when i add a reseller i have to enter the reseller domain or register with a new one.
      my question is , how does the server connects to the domain? it means that when the reseller sell product the system automatically detect that this domain sold something and connects it to the reseller user from WHMCS?
      Thanks alot,
      Ivan.

    • By ModulesGarden
      In this wonderful time of Christmas, the entire ModulesGarden team wishes you peace of mind, spirit of love, and comfort of the family atmosphere. May the inspirational aura of this holy season surround you and your loved ones all year round!
       
      As each year turns, it is our tradition to give a moment of thought to all the accomplishments of 2020 that shaped our company’s values and vision for the future. We are honored to share them with you now via our Blog along with two heavenly discounts, and invite you to the discussion focused on our future goals as well.

      Come in for an action-packed flashback of 2020!
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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