crspyjohn Posted May 20, 2012 Share Posted May 20, 2012 Is it possible to hide terminated / cancelled products from the client in the client area? I want them to still be visible in the admin area but not the client area. 0 Quote Link to comment Share on other sites More sharing options...
ffeingol Posted May 20, 2012 Share Posted May 20, 2012 As far as I know you can't do it, but we'd love to have this an an option that the client could choose. We have clients with large numbers of domains (for example) that are canceled and they would prefer not to see them. If there was a client preference to not display canceled, fraud, terminated services it would be great. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted May 21, 2012 Share Posted May 21, 2012 Yes, relatively easy, put an {if} checking the status in your tpl's 0 Quote Link to comment Share on other sites More sharing options...
ffeingol Posted May 21, 2012 Share Posted May 21, 2012 Yes, we know we could do it all in templates but it would be nice if it was just a feature. Not all clients want it hidden, so we have to add custom client fields that they can check/uncheck and then template code to check how the custom field is set and the suppress the display if needed. That is extra code for data that's already been grabbed from the database. If it was handled within WHMCS the data would have never been selected from the database. 0 Quote Link to comment Share on other sites More sharing options...
acosaburca_1 Posted March 24, 2013 Share Posted March 24, 2013 How to do that? a example? 0 Quote Link to comment Share on other sites More sharing options...
Si Posted March 24, 2013 Share Posted March 24, 2013 check this out: http://forum.whmcs.com/showthread.php?52278-Hide-Services-in-My-Services-by-Status-%28Cancelled-Terminated-etc-%29 have had it for months and it works brilliantly. using 5.1.5 0 Quote Link to comment Share on other sites More sharing options...
postcd Posted January 28, 2014 Share Posted January 28, 2014 (edited) Yes, relatively easy, put an {if} checking the status in your tpl's I think the file to edit is: /templates/yourtemplatename/clientareaproductdetails.tpl Then adding something like: {if $loggedin} User is logged in so display client only information {else} User is not logged in so display this {/if} but instead of login status add productstatus == Termianted, but im not yet sure about right syntax and exact placement in template file. Update: according to whmcs, that variable should be: $domainstatus {if $domainstatus eq "Terminated"} do your hiding here {/if} Please can anyone contribute where to add opening IF and closing IF? Isnt it to be added before: <div data-toggle="tab" id="tab1" class="tab-content"> ? Edited January 28, 2014 by postcd 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.