RavenMedia Posted February 13, 2013 Share Posted February 13, 2013 We want to make some pages available only to certain client groups. Is there an add-on or way to code it so certain client groups can be given access to a page, while others can't? Google found nothing on this, thanks. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted February 13, 2013 Share Posted February 13, 2013 Yes, you can check the client group in your PHP/TPL (if using WHMCS as the basis for your site) or just teh TPL (if talking about the WHMCS supplied pages) 0 Quote Link to comment Share on other sites More sharing options...
RavenMedia Posted February 13, 2013 Author Share Posted February 13, 2013 Awesome. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
RavenMedia Posted February 13, 2013 Author Share Posted February 13, 2013 (edited) A follow up: Is there a variable to check for specific group id, for instance something like this: {if $groupid==2} SOME CONTENT TO SHOW UP {else} You don't have permissions. {/if} I'm aware that for each group there is a separate ID, I just have no idea how to reach it because I can't find anything regarding it in documentation. I tried finding code where it checked for group IDs for discounts but couldn't find anything. I would appreciate any help on this one. Edited February 13, 2013 by RavenMedia 0 Quote Link to comment Share on other sites More sharing options...
WHMCS JamesX Posted February 13, 2013 Share Posted February 13, 2013 Have a look at Template Syntax. You can use {debug} to see available variables. 0 Quote Link to comment Share on other sites More sharing options...
RavenMedia Posted February 13, 2013 Author Share Posted February 13, 2013 That helped. I've read complete Debug Console like you suggested, I'm now searching for a variable that says if the product is hidden or not. My main goal is to show list of products that are only available for a certain group. For now, I've managed to show content to certain group, now I'm trying to figure out how can I list such hidden products in the code that appear only to the group I want it to appear. If there's no such variable I'll have to link products separately for such group, unless you guys have a better idea? Thanks a lot. 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.