Jump to content

Disabling Webmail on Product Detals


MrMordem

Recommended Posts

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 :/

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated