Cain72 Posted October 29, 2014 Share Posted October 29, 2014 Hi guys, is it possible to setup a product group within whmcs and have it hidden until AFTER the customer has logged into their account ? in other words, i have a service, i dont want it public, i only want to allow customers the ability to view and purchase while they are logged in .. any ideas or info you can point me towards would be great thanks Cain 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 29, 2014 Share Posted October 29, 2014 you could use the Smarty variable $loggedin to test if someone is logged in, and if so, then display the product group... that could be done by a template edit, possibly a hook too. if I recall, there is a foreach loop in each of the order-forms products.tpl template that displays the group names - the code is slightly different in each, but the principle remains the same. all you should need to do is insert an {if} statement into it to test if the user is logged in, if they are then the hidden product group is shown... the code would likely be along the lines of what I posted in the thread below.. http://forum.whmcs.com/showthread.php?86222-How-to-remove-quot-Register-Domain-quot-and-quot-Transfer-Domain-quot-in-cart-php&p=395627#post395627 0 Quote Link to comment Share on other sites More sharing options...
Cain72 Posted October 30, 2014 Author Share Posted October 30, 2014 thanks brian, ill take a look, thanks for your time Cain 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.