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
2
votes
1 answer

WHMCS Allow PHP script access to download file

I have a script I have made, and I am attempting to create an auto-updater. It retrieves a zip file with file_get_contents() then unzips it. I have the updater ready, but I don't want a zip file of my script just laying around on my server for…
alexander7567
  • 665
  • 13
  • 35
2
votes
2 answers

WHMCS is being hacked by {php} and Eval base64 code through tickets

WHMCS uses Smarty for it's template system, though a great template system it has a flaw, the {php} tags. These tags allow smarty to interpret PHP code directly in the template, or in this case through the ticket system when a new ticket is created.…
jfreak53
  • 2,239
  • 7
  • 37
  • 53
2
votes
1 answer

whmcs select two custom field values per one client php mysql

I'm trying to select some user data from a client table and some custom field values from another. My problem seems to be looping through the results. I keep getting duplicate client rows per one custom value field. this is the SQL query to get the…
2
votes
2 answers

How do I add a div conditionally based on file name?

I have put this code in header.tpl but the div is appearing on all pages {if cart.php}
This is Cart.PHP
{/if} I want this div to be appear in the header of cart.php page only.
Fahad Ur Rehman
  • 348
  • 1
  • 5
  • 18
1
vote
2 answers

Allowing Drupal login using WHM, cPanel or WHMCS login details?

Currently, I have decided to use Drupal as the primary login area where users can do stuff. Problem is, I want to automatically allow for the logging in of users using their cpanel, whm or whmcs login details. Anyone?
rockstardev
  • 13,479
  • 39
  • 164
  • 296
1
vote
2 answers

http to https | https to http

I have installed SSL for my website http://digitalexperts.net. The website is based on Drupal 7, for which I don't need SSL. But I also have WHMCS installed on my website in a folder named billing. The path is http://digitalexperts.net/billing Now I…
Fahad Ur Rehman
  • 348
  • 1
  • 5
  • 18
1
vote
4 answers

Smart way to generate a FORM key with PHP

I have a form, in whmcs that I want user to only be able to submit once, so they cant submit it and refresh to resubmit... I was thinking about unsetting $_POST or redirecting, but neither would work in this situation, how would I generate a key and…
Saulius Antanavicius
  • 1,371
  • 6
  • 25
  • 55
1
vote
0 answers

WHMCS Clover Integration

So I've been trying to figure this out for a while now but haven't been able to fix it. My payment processor is Clover, which there isn't a pre-built WHMCS gateway for. So I am attempting to make my own but I'm doing something wrong but I can't…
1
vote
1 answer

Get PHP data on TPL file

I am new to WHMCS and php and i would like to add a new custom php file that displays all the tlds and their pricing ... For that, i have created a new file : domainList.php under /public_html/ directory : domainList.php
veolio
  • 11
  • 1
1
vote
0 answers

Whmcs hook to restrick specific products/groups doesn't work

What is wrong with this hook code.
whoo
  • 25
  • 2
1
vote
0 answers

WHMCS Registrar Module Issue

Actually we are using WHMCS Email Notification module to sell a ccTLD which does not have a integrated registrar. In this case Email Notification sends us notification whenever user register a domain or save nameserver and we perform that action…
Apon Aex
  • 11
  • 3
1
vote
2 answers

Redirection to a page for new customers without an active product WHMCS

Good morning, I made a hook to try to redirect new customers and those who no longer have an active product among product group 1 : add_hook('ClientAreaPage', 1, function($vars) { if ($_SERVER['REQUEST_URI'] === '/store/adhesion') { …
Jim1120
  • 63
  • 6
1
vote
1 answer

define custom WHMCS invoice status

I need to create a custom invoice status for "Disputed" payments. I found an article that said to just modify the status column in the DB table 'tblinvoices' with the desired status, but doing this doesn't register that as a status in the sense that…
1
vote
0 answers

Smarty - href link not displaying

I have the following code block in a Smarty .tpl file used in my WHMCS template. {foreach from=$departments key=num item=department}
Steph3071
  • 321
  • 2
  • 11
1
vote
0 answers

cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

I am using https://github.com/darthsoup/laravel-whmcs package for integration of WHMCS APIs I set up my WHMCS_API_URL, WHMCS_API_IDENTIFIER, WHMCS_API_SECRET and WHMCS_API_ACCESSKEY in .env file my Laravel Application I put code for fetching my…
Adnan Ali
  • 61
  • 6