lulzkiller Posted June 23, 2021 Share Posted June 23, 2021 Hi Our clients automatically gets assigned a free DNS product, so they can use our DNS service. Is it possibel to hide this product, so its not visible for anyone in the client area when active ? 0 Quote Link to comment Share on other sites More sharing options...
Remitur Posted June 24, 2021 Share Posted June 24, 2021 Yes: just mark it as "hidden" in products management https://docs.whmcs.com/Hiding_and_Retiring_Products 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 24, 2021 Share Posted June 24, 2021 20 hours ago, lulzkiller said: Is it possible to hide this product, so its not visible for anyone in the client area when active ? not from settings - you'd probably have to remove it from the relevant variable & arrays on the pages where it's mentioned. via hooks (or template changes). 3 minutes ago, Remitur said: Yes: just mark it as "hidden" in products management to hide it from the cart, but I took the question to be for a client who already has this product.... one of us will be right. 😎 0 Quote Link to comment Share on other sites More sharing options...
lulzkiller Posted July 18, 2021 Author Share Posted July 18, 2021 On 6/24/2021 at 3:26 PM, brian! said: not from settings - you'd probably have to remove it from the relevant variable & arrays on the pages where it's mentioned. via hooks (or template changes). to hide it from the cart, but I took the question to be for a client who already has this product.... one of us will be right. 😎 You are correct - Its a free dns product, all clients have, so its no need for them to see it it can't do anything anyways. So i guess i have to hide it via templating ? 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted July 19, 2021 Share Posted July 19, 2021 22 hours ago, lulzkiller said: You are correct - Its a free dns product, all clients have, so its no need for them to see it it can't do anything anyways. So i guess i have to hide it via templating ? Can be done via the ClientAreaPageCart hook, checking the $vars['products'] array against the client's active products and then unsetting products found and returning $vars or just $vars['products'] to do an override . No template editing is needed and doing so would add logic that should not be in templates. 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.