Jump to content

hmaddy

Member
  • Content Count

    35
  • Joined

  • Last visited

Community Reputation

0 Neutral

About hmaddy

  • Rank
    Member

Recent Profile Visitors

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

  1. How can i create and add my own widget on clientsummary page.
  2. How can i add or create our own widget on admin area like this.
  3. How can i check the user have an active product or services using hooks or api
  4. how to add new line or content in admin area summary page and inside clients information.
  5. This will work only if the emails are working correctly. admin cannot reset a password.
  6. How to add some commands on click save button on this page.
  7. <?php function hmk_config() { $configarray = array( "name" => "myname", "description" => "Config function for hm addonmodule", "version" => "1.0", "author" => "WHMCS", "fields" => array( "option1" => array ("FriendlyName" => "AdminUser", "Type" => "dropdown", "Options" => "1,2,3,4,5", "Description" => "Sample Dropdown", "Default" => "1", ), "option2" => array ("FriendlyName" => "Department", "Type" => "dropdown", "Options" => "1,2,3,4,5", "Description" => "Sample Dropdown", "Default" => "1", ), "option3" => array ("FriendlyName" => "KYC Period (Months)", "Type" => "dropdown", "Options" => "12,24,36", "Description" => "Sample Dropdown", "Default" => "1", ), )); return $configarray; } This is my config function. on this config function, i need to add the existing admin users from the database to option1 drop down and the all the existing departments to option2 dropdown. Anybody please help me to add these.
  8. i am using ticket open api and its works fine. But i need to split the line of message. now its creates ticket like "Hello sir, this is your ticket" i need it as Hello sir, This is your ticket For this how to add the split command., i tried \n, <p> and </p> and br also.
  9. i tried to echo the variables to a file. its not creating. like echo $invoiceid >> /home/mail/public_html/log.txt
  10. <?php use WHMCS\User\Client; add_hook('OrderPaid', 1, function($vars) { // Perform hook code here... $client = Client::find($vars['userId']); $fname = client->firstname; $email = client->email; $orderid = $vars['orderid']; $userid = $vars['userid']; $invoiceid = $vars['invoiceid']; ?> This is also not working.
  11. <?php use WHMCS\User\Client; add_hook('OrderPaid', 1, function($vars) { // Perform hook code here... $client = Client::find($vars['userId']); $fname = client->firstname; $email = client->email; $orderid = $vars['orderid']; $userid = $vars['userid']; $invoiceid = $vars['invoiceid']; ?> Now how can i check it whether the data is available or not.
  12. add_hook('OrderPaid', 1, function($vars) { 1. Above hook will work only on order time or it will execute in order time and renewal also. 2. on this hook how can i get or collect customer name, and email id to a variable.
  13. i would like to collect some data from the database to variables. how can i do it on hooks. Eg: customerid, orderid, invoice number, etc etc to some variables like oid,cids and invno; please reply with example.
  14. any sample hook to catch the order details.
  15. how to check an order and create a new ticket. i need to open a new ticket, if the order is a vps/server.
×
×
  • 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