Jump to content


Senior Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About pratik_asabe

  • Rank
    Junior Member
  1. Hello, I want a custome button on product page just like a Login to cPanel button on cpanel product but i want to visible that only for VPS products. In than button i should be able to add any custom URL. Please guide me through toachive this. Thanks.
  2. Cyber Tech Solution is my firm established in 2016. We provide IT services including Web Hosting, We launched a web hosting in 2018 by the product name 'Clouder' and we're continuously working hard to improve our website so that users will find the ease of access here. Here is our web hosting website - Clouder: https://www.thecybertechsolution.com/hosting/
  3. Hello there, I want to change a URL of 'Add Web Hosting' box on domain checker page which usually points to cart page, but I want to change it and point it to my desired location. [refer screenshot]
  4. Thanks a lot, Brian! You are great!! it works like a charm.
  5. Thanks a ton!! However while looking into your provided thread, I love the separate sidebar for the cPanel & webmail and I wanted to implement it on my system, however, I do not want to provide static cPanel link for my client instead I want to stick to the single sign-on link coz my client love that, so can you please provide me the updated hook to add single sign-on feature in your hook. Thanks a ton in advance!! use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { $service = Menu::context('service'); $servertype = $service->product->servertype; if ($servertype!="cpanel"){ return; } $domain = $service->domain; $username = $service->username; $cpanelhref = 'http://'.$domain.':2082/login/'; $webmailhref = 'http://'.$domain.':2095/login/'; $command = 'DecryptPassword'; $postData = array('password2' => $service->password); $results = localAPI($command, $postData); $password = $results['password']; $bodyhtml = '<form method="post" action="'.$cpanelhref.'" target="_blank"> <input type="hidden" name="user" value ="'.$username.'"/> <input type="hidden" name="pass" value ="'.$password.'"/> <input class="btn btn-success btn-sm btn-block" type="submit" value="'.Lang::trans('cpanellogin').'"/> <input class="btn btn-primary btn-sm btn-block" type="submit" formaction="'.$webmailhref.'" value="'.Lang::trans('cpanelwebmaillogin').'"/> </form>'; if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->removeChild('Login to cPanel') ->removeChild('Login to Webmail'); } $primarySidebar->addChild('cPanel Login', array( 'label' => 'cPanel Logins', 'icon' => 'fa-server', 'order' => 20, 'footerHtml' => $bodyhtml, )); });
  6. Hello there, I recently added a hook for inserting a website name in webmail sidebar option instead of default server hostname:2096 I achieved domainname:2096, but problem with this hook is it is inserting website without checking first whether that child menu item is present or not there and because of that I'm getting an error on other module's product details page such as VPS service in which hook tries to set a URI for a menu child which does not exist and in result I'm unable to view my product details page, so I want an addition in my hook that checks always first if the menu child exists before it tries to add website name in it. hook is: use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { $service = Menu::context('service'); $domain = $service->domain; if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->getChild('Login to Webmail') ->setUri('http://'.$domain.'/webmail'); } I hope somebody will help me with what I'm trying to achieve. Thanks in advance.
  7. I want to remove Private Nameserver option from domain management only for the shared hosting client, in short, I wanted to show it to only reseller clients. So anyone gives me any custom hook or anything then it would be great. Thanks.
  8. Hello members, I need to, 1. Create one hook to remove sidebar from cart page (refer screenshot below), also 2. I need to know how can I do css modification to increase total & tax calculation box (entire box) for only desktop? not for mobile devices, to achieve this is it ok to use css media queries? Thanks in advance.. 🙂
  9. Yes I did everything and I noticed that even if we add two servers separately in having separate group for each of the servers it will fetch packages from default server only but this does not cause any error, we can still take orders but difference is at the time when we accept the order we have to select manually on which server this client should go.. it needs bit of logic to do all automation, its not full automation its kind of a semi-automated process.. and btw, thanks for guiding me.. appreciate it.. 🙂
  10. I made another group for another server but its showing that 'server not found' error.. Is it cause by not being set as default server? or it will be still get provisioned when order is get accepted..? and what is the process to work on tis situation? Beacuase my one server is from my hosting provider (coz im a reseller) & another server is from amazon aws which is created by me and it also working fine and everything is ok, except the problem that I mentioned (refer screenshot) P.S. All servers are cPanel servers. Thanks..
  11. Hello all, Recently I was trying one experiment but it doesn't work as I expected.. Im not saying it didn't work at all but not the way I wanted.. I have just setup a second server in WHMCS. Would it be possible for WHMCS to set up automation on 2 separate servers at the same time like this? - Hosting Package 1. Upon hosting payment and domain name sign up - WHMCS will set up Server 1 automatically with nameservers: ns1.mydomain.com ns2.mydomain.com Hosting Package 2. Upon hosting payment and domain name sign up - WHMCS will set up Server 2 automatically with nameservers: ns3.mydomain.com ns4.mydomain.com What are the steps to set this up correctly? Also, I see a "default" server with "*" indicator for automation set-up. If I set the second server to default, does that mean that I will lose all automation for server 1? Also what happens when the auto suspension/termination kicks in for server 1 when cron jobs run? Will it be ignored since server 2 is the new default?
  12. Hello all, My name is Pratik and thanks in advance for giving love and support here.. 🙂
  13. Welcome to WHMCS.Community pratik_asabe! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

  • 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