Jump to content


Popular Content

Showing content with the highest reputation on 02/09/21 in all areas

  1. 1 point
    Hello, I have searched this forum but haven't find anything that could help me. I'd like to resell Storage-Boxes by Hetzner (BX) to my clients via WHMCS from https://www.hetzner.de/storage-box At least I'd like to sell single accounts on each BX. So I wonder if anybody knows if there's an WHMCS-Addon to sell Hetzners "Storage-Boxes"? Or at least how to provision Accounts on them via WHMCS? Have a nice day, Sascha
  2. 1 point
    When using a child theme this error is showing on the payment gateway for Stripe "Required Template Changes Not Found: We were unable to detect the presence of the required WHMCS 7.1 template changes for Stripe compatibility in your active order form or client area template. Please ensure the changes itemised in the 7.1 upgrade here have been applied. Please see Template Changes for more information." Adding this file to the child theme makes that error go away - account-paymentmethods-manage.tpl
  3. 1 point

    Version 1.0.0


    An issue has been identified in the 8.1.0 release - published on 29th December 2020, that when utilizing a Child Theme, the pagination property is not inherited from the parent. This can result in partial loading or missing items from various sections in the Client Area:
  4. 1 point
    To start with, deleting invoices, not the best approach. It's better to cancel them outright. This way, for all legal purposes they're still there That being said, here's a hook that'll run through these and cancel them on run. There's two spots you want to change, pretty well documented there. Save this as a php file in whmcs/includes/hooks <?php /* Hook to automatically cancel invoices after XXX days on cron run Provided courtesy of https://www.whmcs.guru/ */ if (!defined("WHMCS")) die("This file cannot be accessed directly"); use Illuminate\Database\Capsule\Manager as Capsule; function guru_unpaid_addfunds($vars) { //BEGIN CHANGE SECTION //change the period here $olderthan = "30"; //whmcs API user, change it $apiuser="CHANGEME"; //END CHANGE SECTION logActivity('Starting daily funds invoice cleanup ', 0); $invoices = Capsule::table('tblinvoices')->select('id', 'date')->WHERE('status', 'Unpaid')->get(); foreach ($invoices as $data) { $myid = $data->id; $mydate = $data->date; $createdon = strtotime($mydate); $calctime = time() - ($olderthan * 24 * 60 * 60); if ($createdon > $calctime) { //skip it, we shouldn't be here yet continue; } //do something with myid and unique column $numrows = Capsule::table('tblinvoiceitems') ->select('id')->WHERE('invoiceid', $myid) ->WHERE('type', 'AddFunds')->count(); //invoice matches , cancel it if ($numrows > 0) { $notedate = date("F j, Y"); //this invoice matches, so let's delete it $command = 'UpdateInvoice'; $values['invoiceid'] = $myid; $values['status'] = 'Cancelled'; $values['notes'] = "Automatically cancelled via daily cron run on $notedate"; $results = localAPI($command, $values, $apiuser); logActivity('Invoice ID $myid - Cancelled due to daily funds invoice cleanup', 0); //print_r($results); } } logActivity('Ending daily funds invoice cleanup ', 0); } add_hook("DailyCronJob",1,"guru_unpaid_addfunds"); ?> This will log the cancellation, both in admin logs, and in the invoice notes itself (will overwrite anything in the existing invoice notes), and trigger only on unpaid addfunds invoices
  • Newsletter

    Want to keep up to date with all our latest news and information?
    Sign Up
  • 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