Poirot Posted June 5, 2014 Share Posted June 5, 2014 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 5, 2014 Share Posted June 5, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 6, 2014 Share Posted June 6, 2014 as someone pointed out to me in another thread, there is already an addon that can hide groups based on client groups... https://www.serverping.net/clients/cart.php?gid=3 a combination of the two addons might solve your issue. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.