Jump to content

How can I restrict products to other products?


Poirot

Recommended Posts

Hi all

I have a product that I only want to be available to existing clients who already have at least one of 4 other products.

I know how I can restrict add-on to certain products, but how can I restrict products to other products?

 

Thanks

Link to comment
Share on other sites

the trick to this would be determining a method to identify if the client already had product a,b,c or d in their account - two possible solutions would be to either query the database, or to assign these clients to a client group.

 

http://docs.whmcs.com/Client_Groups

 

personally, i'd go down the "Client Group" path as it's probably the simpler of the two... you could put your product X into its own group (though not essential) and show it only to those in the particular Client Group (e.g anyone who already has product a,b,c or d) - if memory serves, you can access the clientgroup variable in the templates, so you should be able to test if they're a member of the group or not.

 

there is an addon that can automatically assign clients who purchase specific products to specific client groups - that would take care of future occurrences, but you'd probably have to either manually assign existing clients with a,b,c or d to the client group, or use a sql query to do it quickly.

 

http://forum.whmcs.com/showthread.php?45488-WHMCS-Set-Client-Groups

 

it could be worth contacting Lee, the author of the above module, as he'll no doubt be very familiar with Client Groups... he might also be able to help with the template modifications required to do this, but if not, let me know and I can look into it further.

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