Questions tagged [whmcs]

WHMCompleteSolution, also known as WHMCS, is a commercial billing and automation software program developed by WHMCS Ltd.

Originally, WHMCS was designed to integrate only with cPanel and WHM, a leading web hosting control panel. However, WHMCS has expanded to support additional integration with other web hosting control panels, and it now includes support for a wide range of control panels, payment gateways and other third party software.

WHMCS features automated signups for web hosting customers, automatic invoicing and payment processing in multiple currencies, account provisioning, domain registration and management, as well as a fully featured web ticketing and support system for end users.

516 questions
24
votes
6 answers

Create Carriage Return in PHP String?

We have written a small PHP Hook for our billing system that opens a new support ticket with us when an order is placed. It works except that for the "Open Ticket" API function, it takes a string for the message, but we cannot figure out how to put…
Brett Powell
  • 391
  • 2
  • 5
  • 11
16
votes
6 answers

How to find and disable MySQL strict mode?

Hello everybody I wanted to find this mysql strict mode for whmcs and disable it but i didn't had a progress I'm a newbie so sry if I didn't mention other things Can anyone help me? I'm working on WHM/Cpanel
Hamed Atae
  • 183
  • 1
  • 2
  • 8
6
votes
2 answers

Convert strtotime() to StrFTime()

I was asked to write a module for our billing system and completed it using all of the functions I am accustomed to. It was tested on an English setup, but I did not take into account (nor was I aware of) the fact the actual system our company uses…
user470760
5
votes
2 answers

Getting the pdf invoice from WHMCS?

For a small side project, I had to create a call that gets the PDF via WHMCS. I see the API can get the variables, such as quantity, invoice items etc, but I want the same PDF that the system would send if a client had placed an order. I have a PHP…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
4
votes
1 answer

AddOrder issue on WHMCS Local API

I'm adding a new order using WHMCS local API. Everything works fine except custom fields. $command = 'AddOrder'; $postData = array( 'clientid' => $client_id, 'pid' => array($product_id), 'billingcycle' => array('monthly'), …
Hossein
  • 2,592
  • 4
  • 23
  • 39
4
votes
2 answers

whmcs show active products per group

I'm trying to create 4 custom pages in whmcs, each for every productgroup there is. The first page, Web Hosting, has to include all the active web hosting packages for a user. I know that I have to set the variables myself, but I don't understand it…
Odyssee
  • 2,393
  • 2
  • 19
  • 38
4
votes
3 answers

Including PHP file inside smarty template file

I have completely no idea about smarty template system. What I am trying to do is include a php file to get some variable inside a .tpl file (this is a WHMCS template). I have tried like: {php} include ('file.php'); {/php} //doesn't…
тнє Sufi
  • 574
  • 2
  • 9
  • 23
4
votes
1 answer

WHMCS Addon Module admin section template

I can't find it anywhere in the developer documentation but it does hint to the fact that in the _output function of an admin addon module I can call a template file. How do I do this? I would like to call a template file for final output from the…
jfreak53
  • 2,239
  • 7
  • 37
  • 53
3
votes
1 answer

Authentication Failed Error, when Consume WHMCS Api

I'm trying to use the WHMCS API, for example to get client. So when I run the file PHP,it gave me this error in Json: {"result":"error","message":"Authentication Failed"} and when I test username and password they authenticate in the…
S.Snoy
  • 39
  • 8
3
votes
3 answers

WHMCS error occured: Invalid IP ::1, when using External API

I am trying out GetClient Password on External API
Vivek
  • 39
  • 1
  • 2
3
votes
1 answer

WHMCS server's screen - adding custom fields

I'm developing a WHMCS provisioning module for a client. Its mostly standard stuff but they have a requirement to have some custom fields in the server's config screen. I know how to add custom fields in the products config screen, but I can't find…
John Mc Murray
  • 363
  • 5
  • 17
3
votes
0 answers

WHMCS Bridge Affiliates link not working properly?

direct whmcs links work like a charm if you use http://billing.serverturbo.com for example affiliate clicks get counted and also signups are tracked but if you use the bridge links like http://serverturbo.com/dedicated-servers for example it doesn't…
3
votes
1 answer

How do I pass admin module data to Smarty in WHMCS?

I would like to pass some data from a WHMCS admin module to the client summary admin template. In order to get the data from our admin module to the Smarty template, we have been attempting to use an action hook called "AdminAreaPage". This action…
Seth McCauley
  • 983
  • 11
  • 24
3
votes
2 answers

WHMCS how to add function to the system's cron job?

I created an addon for whmcs in whmcs/modules/addons directory which I want to run it by the system's cron job. WHMCS's cron job uses this: php -q /var/www/html/whmcs/whmcs/admin/cron.php to automate module functions (suspension, termination) and…
Lamya Elmorsy
  • 341
  • 4
  • 13
3
votes
1 answer

MySQL sql_mode Turning Strict Mode Off Permanently Linux for WHMCS

I'm not super experienced at this but I've been trying to get the mySQL strict_mode setting to be enforced permanently so that I can install and set up the database to install WHMCS. Problem is I have seen many different posts and people saying you…
Marco Polo
  • 123
  • 2
  • 11
1
2 3
34 35