Jump to content


Senior Member
  • Content count

  • Joined

  • Last visited

  • Days Won


Craft last won the day on November 25

Craft had the most liked content!

Community Reputation

8 Neutral


About Craft

  • Rank
    Senior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Craft

    Some logs appears on Domain Register

    @brian! any help here? :)
  2. That's what I need exactly, thank you :)
  3. There are some logs appears on Domain Register or Transfer How to hide it?
  4. Ok fine, I found this hook to add anything to (Open Ticket) page add_hook('ClientAreaPageSubmitTicket', 1, function($vars) { if (!is_null($secondarySidebar->addChild('Test'))) { $secondarySidebar->getChild('Test') ->addChild('Test'); } }); But it doesn't work, I think I need to edit something in the code :) I tried also add_hook('ClientAreaPageSubmitTicket', 1, function(MenuItem $secondarySidebar) But doesn't work too. Reference: https://developers.whmcs.com/hooks-reference/ticket/
  5. Regarding to "Open Ticket" page, the secondary sidebar nav "Support" is only appearing when there a "Recent Tickets" available. And if there is no any "Recent Tickets", the "Support" nav is disappeared. How can I show "Support" nav all the time?
  6. Perfect I did it, thank you :)
  7. I would like to remove some SidebarNav using this hook (https://developers.whmcs.com/themes/sidebars/) I tried to remove "My Account" section in "Account Details" page with menuitemname "My Account" using the following code and it WORKS FINE :) <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('My Account'))) { $primarySidebar->removeChild('My Account'); } }); My issue that I would like to remove the following sections from other pages but it doesn't work. It doesn't work for "Contacts" section in "Home" page with menuitemname "Client Contacts" It doesn't work for "Shortcuts" section in "Home" page with menuitemname "Client Shortcuts" It doesn't work for "Actions" section in "Services" page with menuitemname "My Services Actions" It doesn't work for "Actions" section in "My Domains" page with menuitemname "My Domains Actions" It doesn't work for "Billing" section in "Billing" page with menuitemname "Billing" It doesn't work for "Support" section in "Support Tickets" page with menuitemname "Support" It doesn't work for "Actions" section in "View Cart" page with menuitemname "Actions" Example: if (!is_null($primarySidebar->getChild('My Services Actions'))) { $primarySidebar->removeChild('My Services Actions'); }
  8. Your way of thinking is correct.. But I remember when I was using the old code for the old whmcs versions, there was no any updating to client domain status. Kindly find the attached old code for the old whmcs versions, it's nearby to the new code. jetserver_AutoAcceptOrders.php
  9. Haha don't worry, I'm not a noobie :) Yes, I changed to "true" when I tried yesterday. I tried this also now, and unfortunately same issue The problem is we shouldn't set the domain's status to "Active" until it's actually been registered.
  10. The registrar I'm using (registercom)
  11. I tried that but nothing happened, same issue :)
  12. This is the hook code, how can I pass it? function AutoAcceptOrders_settings() { return array( 'apiuser' => '', // one of the admins username 'autosetup' => true, // determines whether product provisioning is performed 'sendregistrar' => false, // determines whether domain automation is performed 'sendemail' => true, // sets if welcome emails for products and registration confirmation emails for domains should be sent 'ispaid' => true, // set to true if you want to accept only paid orders ); } function AutoAcceptOrders_accept($vars) { $settings = AutoAcceptOrders_settings(); $ispaid = true; if($vars['InvoiceID']) { $result = localAPI('GetInvoice', array( 'invoiceid' => $vars['invoiceId'], ), $settings['apiuser']); $ispaid = ($result['result'] == 'success' && $result['balance'] <= 0) ? true : false; } logActivity("Order isPaid: ".$ispaid,0); if(( $settings['ispaid'] && $ispaid)) { $result = localAPI('AcceptOrder', array( 'orderid' => $vars['orderId'], 'autosetup' => $settings['autosetup'], 'sendemail' => $settings['sendemail'], ), $settings['apiuser']); logActivity("Order Accept", 0); if(is_array($result)){ foreach($result as $index=>$value){ logActivity("$index:$value",0); } } } } add_hook('OrderPaid', 1, 'AutoAcceptOrders_accept');`
  13. Craft

    Discount for the first term only

    I solved it with an easier way :) I will use promocode in the product links, so: I will create a separate promocode for all my terms for each plan and the customer will choose the term from the beginning (from my website which is not related to whmcs), then I will redirect him with the product link with the specific promocode regarding to his selected term. Also I should use "&skipconfig=1" to not open the "Configure" page to the customer and use "&billingcycle=annually" to redirect him to the checkout page direct.
  14. Craft

    Auto Accept Order

    Make sure that you are using a valid emails here: Setup >> General Settings >> General tab >> (Email Address) field Setup >> General Settings >> Mail tab >> (System Emails From Email) field
  15. Craft

    Auto Accept Order

    That’s correct because the order should be paid first then it will accept the order Now you need to solve the payment issue first

Important Information

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