Jump to content

Client Groups


Ragonz

Recommended Posts

38 minutes ago, Ragonz said:

I wonder if its possible to assign client groups to customers if they purchase a specific addon/configurable option

yes - Kian has previously published a couple of related hooks, but the one more relevant to your situation is the one that assigns client groups based on product ordering.

so as written, it's only reacting to purchases of specific products - if you wanted to expand that to reacting to  config options and/or addons, then that's going to require more queries to check whether the order contains such items - no doubt Kian will be able to expand the hook to meet your need.

Link to comment
Share on other sites

17 hours ago, brian! said:

yes - Kian has previously published a couple of related hooks, but the one more relevant to your situation is the one that assigns client groups based on product ordering.

so as written, it's only reacting to purchases of specific products - if you wanted to expand that to reacting to  config options and/or addons, then that's going to require more queries to check whether the order contains such items - no doubt Kian will be able to expand the hook to meet your need.

That sounds brilliant. The client groups are somehow useless with the limited options today and no way to automate the assigment. That certainly makes sense, assign groups based on a specific product they purchased. I hope WHMCS takes more attention to adding functions to client groups in the future.

Link to comment
Share on other sites

I updated both versions of the script to support product addons and configurable options. For configurable options you can assign client to group in two different ways. I show you an example. Let's suppose we have the following configurable option:

  • Configurable Option: Backup Space (config ID 5)
    • Option 1: 10 GB (option ID 70)
    • Option 2: 20 GB (option ID 71)
    • Option 3: 30 GB (option ID 72)

You can assign customers to, say, client group "Elvis" group based on:

  • Any match. It doesn't matter what option I select. It can be 10, 20 or 30 GB. I still go to "Elvis"
  • Specific match. You can assign me to "Elvis" only if I select specific options. For example only if I select 30 GB. Selecting 10 or 20 GB has no effect

Here you can find detaild instruction the script. If it doesn't work let me know.

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.

  • 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