Jump to content

DennisHermannsen

Member
  • Posts

    888
  • Joined

  • Last visited

  • Days Won

    46

DennisHermannsen last won the day on March 26

DennisHermannsen had the most liked content!

4 Followers

About DennisHermannsen

Recent Profile Visitors

5995 profile views

DennisHermannsen's Achievements

Senior Member

Senior Member (3/3)

  • Helpful Rare
  • Great Support Rare

Recent Badges

135

Reputation

9

Community Answers

  1. That's most likely an issue with the module. That would also explain why the requests are failing. It seems the request just contains an empty array.
  2. Yeah, I must say I'm a bit disappointed that a hotfix hasn't been made available for such a simple issue after more than two weeks.
  3. For everyone having this issue, I've created the following script that checks if the time paid is equal to 00:00:00. If it is, it updates the time for the transaction. When an invoices goes to "Paid" status, it also updates the time. <?php use WHMCS\Billing\Invoice; use WHMCS\Database\Capsule; use WHMCS\Carbon; add_hook('AddTransaction', 1, function($vars) { $now = Carbon::now(); $transactionDate = Carbon::parse($vars['date']); if($transactionDate->toTimeString() === '00:00:00') { $transaction = Capsule::table('tblaccounts') ->where('id', $vars['id']) ->update( [ 'date' => $now, ]); } }); add_hook('InvoicePaidPreEmail', 1, function($vars) { $now = Carbon::now(); $invoice = Invoice::find($vars['invoiceid']); if($invoice->datepaid->toTimeString() === '00:00:00') { $invoice->datepaid = $now; $invoice->save(); } }); Create a new PHP file in /includes/hooks/ and paste the contents into the new file.
  4. @WHMCS John did this also mess with the AddTransaction hook? $vars['date'] is supposed to be a datetime object but it's returned as a string.
  5. The issue is that TLD X might have 14 days of redemption while TLD Y have 45. If you set Termination Days to 30, you'd have to set Days Overdue to 45. This means that clients still have the possibility to pay for an invoice for a product that has been terminated. It would be really great if Auto Cancellation took the Redemption Period into consideration.
  6. I'm looking forward to testing this out. How will it work for domains with a grace/redemption period? Does it take that into account or will it just cancel any overdue invoice after X amount of days no matter what?
  7. Working again, yes. Feels almost weird. I was getting used to the fixed width 🙂
  8. Use the $templatefile variable. {if $templatefile === 'domain-pricing'} .... {/if} You can see all template files inside /templates/template-name/
  9. $customfield is not a file. It's an element from the $customfields array.
  10. @pRieStaKos WHMCS uses BootStrap 4. Only the Six template (which is 9 years old at this point) uses BootStrap 3.
  11. Check the version history for the API method. It's deprecated since version 8.
  12. Your cPanel license is limited to X amount of users (X is either 1, 5, 30, 100, 150, 200, 250 etc). If you have a cPanel 100 account cPanel license, you will get the error "Creating the account would exceed the number of licensed users. Please upgrade your license and try again." when trying to create account number 101. You will need to upgrade the amount of accounts you can create with your cPanel license.
  13. Your cPanel license is limited to X amount of users, and you're trying to create number X+1. You will need to upgrade your cPanel license.
  14. The "e" in the URL parameter is just short for "express". e=false just means it's not using express checkout.
  15. You most likely got lucky and deleted your cookies. The selected theme is stored in a cookie. It worked for me once but was back to the broken layout the next day.
×
×
  • 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