Jump to content

HostBN

Member
  • Posts

    6
  • Joined

  • Last visited

Everything posted by HostBN

  1. I need Manully Accept order and my registrar API have not more date SO Can help me to When I accept order and Order invoice status paid then all domain from the order/invoice will be set the order date to domain expired date
  2. I need When Accept a Domain Order Need set Next Due Date to Expired date = same date I make a Hook not working <?php use WHMCS\Database\Capsule; // Define the hook function function setDomainExpiryDate($params) { // Check if the service is a domain if ($params['params']['domainid']) { $domainId = $params['params']['domainid']; // Retrieve the Next Due Date for the domain $domainData = Capsule::table('tbldomains') ->where('id', $domainId) ->first(); if ($domainData) { $nextDueDate = $domainData->nextduedate; // Update the Expiry Date to match the Next Due Date Capsule::table('tbldomains') ->where('id', $domainId) ->update([ 'expirydate' => $nextDueDate, ]); } } } // Register the hook with WHMCS add_hook('AfterModuleCreate', 1, 'setDomainExpiryDate'); ?>
  3. use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $SecondarySidebar) { $categories = $SecondarySidebar->getChild('Categories'); if (!is_null($categories)){ $googleWorkspaces = $categories->getChild('Google Workspaces'); if (!is_null($googleWorkspaces)) { $googleWorkspaces->setUri('https://mydomain.com/g-suite-pricing-bangladesh') ->setLabel('test') ->setOrder(1); } } });
  4. <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $SecondarySidebar) { if(!is_null($SecondarySidebar->getChild('Categories'))){ $SecondarySidebar->getChild('Categories') ->getChild('Google Workspaces') ->setUri('https://mydomain.com/seo-packages/'); } }); Not working.. I want send user to my main Wordpress site link to buy product. so I need replace the link from category list
  5. <?php add_hook('ClientAreaHeaderOutput', 1, function($vars) { // Get the current logo URL $logoUrl = $vars['logoUrl']; // Update the link of the logo $logoLink = '<a href="https://example.com"><img src="' . $logoUrl . '"></a>'; // Update the header output with the new logo link $vars['headerOutput'] = str_replace($vars['logo'], $logoLink, $vars['headerOutput']); }); the cod not change my logo url or whmcs . Im planning to use different url in logo for clients and guest but im unable to change logo url from hook. I am not interested to modify the Template file for whmcs smooth update in future.
  6. What you think about my Wordpress customise hosting design ? https://hostbn.com
×
×
  • 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