Jump to content

Limit Support Departments based on Product/Service.


KuJoe

Recommended Posts

Is it possible to limit which support departments a user sees based on the product/service they purchased? I would like to offer 2 seperate hosting accounts (1 free and 1 paid), the paid hosting has priority Tech Support(24x7) and free one does not. Is this possible without having my techs check each time whether or not the client has paid for the priority support? Thanks.

Link to comment
Share on other sites

A client can have multiple products so they could have both of those hosting options.

 

Offering priority support if they have any paid hosting product (meaning they could also have free hosting) could be tested for by doing a SQL query for their username and the package ID of the fee package. If they have it then allow the template to include the priority department. Otherwise allow it to only show the standard support.

 

You could execute it all in a {php}{/php} template setup.

 

That being said, you could also create an external php script that does the above and have it return a variable based on a passed user id. So call yoursite.com/whmcs/ispaid.php?uid=1 and it returns "true" if the client has paid hosting or not. Then include the link like above. It's a cleaner interface; easier to upgrade.

 

There *MAY* be something like a "purchased product id list" in the template variables you could test against but you have to include {debug} in the specific template to take a look at them. I don't have access to it at the moment so you're on your own with that one.

 

Regards,

Justin

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