Jump to content

JuniYadi

Member
  • Posts

    12
  • Joined

  • Last visited

About JuniYadi

Recent Profile Visitors

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

JuniYadi's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Thanks @Kian and @WHMCS Dan After several test and debug. the renew function is indeed executed. it's just that the data on $params is different. for example when the customer transfer and renew function are executed, in params there is no 'serverid' data array. [packageid] => 8 [pid] => 8 [serverid] => 0 [status] => Active [type] => other [producttype] => other but when the renew function is run manually from the admin area, in params there is an array of 'serverid' data. [packageid] => 8 [pid] => 8 [serverid] => 34 [status] => Active [type] => other [producttype] => other this is what makes the renew function fail to execute. i called this function to make url request: $params['serverhostname'] but because the `serverid` does not exist, so there is no server data.
  2. Yes. But in my current problem, the customer is making a payment and the module is doing an 'unsuspend' action but the 'renew' action is not. is it possible to take action together with 'unsuspend' then 'renew' or how?
  3. I tried to make the server module automatically. docs: https://developers.whmcs.com/provisioning-modules/supported-functions/ what I want to ask here, is when the unsuspend module works, will it call the renew action too? because from the results I tested here, the renew action is not performed after the unsuspend action or is there other info on how this works? Do I have to call the renew function on unsuspend? Thanks,
  4. Hi, I'm try to use Product Addons. It's nice feature for example add other product in main product. But look like this missing something like "Resend Product Addons Welcome Email", at this time, we can only "Resend Product Welcome Email" but not Addons. see: https://docs.whmcs.com/Products_Management#Resending_Product_Welcome_Email In my case, sometimes we update custom fields in Product Addons, but we can't resend this information by email to client. Any suggest how to do it? look like this is something missing for this product addons.
  5. Thank @brian! Solved now, if someone need widget. and here the hooks. <?php use WHMCS\View\Menu\Item; add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) { $client = Menu::context('client'); $activeorders = $client->orders->where('status','Active')->count(); if ($client && $activeorders > 0) { $fraudPanel = $homePagePanels->addChild('account status', array( 'label' => 'Account Status', 'icon' => 'fas fa-user-shield', 'extras' => array( 'color' => 'blue', ), 'bodyHtml' => "<p>Account Status: <strong>Premium Account</strong></p>", )); } // Showing to First Panel $fraudPanel->moveToFront(); });
  6. Hi, i'm just implementation fraud protection, and check on order setup for : Tick this box to skip the fraud check for existing clients who already have an active order i want to make widget in client area showing if user already have an active order, then it's show: you can order without fraud check. any suggest query sql or how to do this? Thanks
  7. Hi, so i'm reading in here https://developers.whmcs.com/hooks/module-hooks/ In hooks.php file addons : Hook files are only detected at the time a module is activated and configured. If you add your hook file after the module has already been activated, you may need to deactivate and reactivate your module in order for WHMCS to recognise it. any recomendation tricks to load hooks.php directly in addons without deactive? Since if deactive and actived again, it's need reconfigure with the database.
  8. Hi, today i'm start make a modules automatic provision. i'm try all my code in my dev whmcs license. after all its finish, i'm move the provision module to my production site, but i'm very confused, in my dev whmcs site its normally, but in my production site, action change password its missing.. i'm make sure in my production site its have "clientareachangepw.tpl", and if i change the template to six (default) the change password action still not show. function mymodule_ChangePassword($params) { // my function here } i think its function its correct.. but why not show action change password its make me confused. please help.. thanks
  9. Not working sir. is it correct for include hooks to provision module?
  10. Not working sir, how to i can include hooks to provision module? is it correct? sorry i can't attach any picture on this forum. http://prntscr.com/c61r9y
  11. hello, this is first time to me develop provision module with whmcs, and the module its works perfectly, but in service product section area, i want to delete primary sidebar (overview). something look like this : try with hooks but its not works, <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('Service Details Overview'))) { $primarySidebar->removeChild('Manage Reverse DNS'); } }); thank you
×
×
  • 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