-
Content Count
35 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout hmaddy

-
Rank
Member
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
hmaddy started following Line break in API, Widget on client summary, Widget on Admin Area and and 5 others
-
How can i create and add my own widget on clientsummary page.
-
How can i add or create our own widget on admin area like this.
-
How can i check the user have an active product or services using hooks or api
-
how to add new line or content in admin area summary page and inside clients information.
-
This will work only if the emails are working correctly. admin cannot reset a password.
- 12 replies
-
- resetuser password
- Manage Users
- (and 4 more)
-
How to add some commands on click save button on this page.
-
<?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.
-
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.
-
i tried to echo the variables to a file. its not creating. like echo $invoiceid >> /home/mail/public_html/log.txt
-
<?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.
-
<?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.
-
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.
-
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.
-
any sample hook to catch the order details.
-
how to check an order and create a new ticket. i need to open a new ticket, if the order is a vps/server.