MrMordem Posted April 13, 2015 Share Posted April 13, 2015 Hi all ! Well, I searched long time but i didn't find the solution. (Or i'm too tired >.<) So, I would like to disabling the Webmail button on the product details page, for somes products. As in this example : My client has a free product, and so hasn't Email option, so this button will be hidden. But how ? PS : Sorry for mistakes and my bad english 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 13, 2015 Share Posted April 13, 2015 if you're using cPanel, then the thread below might help... http://forum.whmcs.com/showthread.php?94458-Remove-or-modify-cPanel-links-for-users there's a template file in modules/cpanel/clientarea.tpl that displays the webmail button... <input type="button" value="{$LANG.cpanelwebmaillogin}" onClick="window.open('http{if $serversecure}s{/if}://{if $serverhostname}{$serverhostname}{else}{$serverip}{/if}:{if $serversecure}2096{else}2095{/if}/')" class="modulebutton" /> you will need to put an {if} statement before this to detect if a product is free or not - and the thread should explain how to do that. 0 Quote Link to comment Share on other sites More sharing options...
MrMordem Posted April 13, 2015 Author Share Posted April 13, 2015 Ho yeah ! Thank very much ! This is exactly what I need ! Thread resolved 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.