Jump to content

Bertie

Member
  • Posts

    94
  • Joined

  • Last visited

About Bertie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Bertie's Achievements

Member

Member (2/3)

3

Reputation

  1. Hi all, I've tried to search but didn't seem to come up with what I was looking for. Basically when you visit the "My Invoices" section on the clients side, the invoices seem to be in a random order. You do get the option to click on the colums and change the order yourself. But is there a way to show like the unpaid invoices at the top each time someone goes to the "My Invoices" page? While also allowing them to continue clicking the colums to sort it in the order they want. If this makes sense?
  2. Haven't updated to V8 yet but just wanted to post that removing the overdue invoices stat from the top bar is stupid. If you're going to remove such useful details, at least provide us with a toggle to turn it back on.
  3. That's good to know but it needs to be sooner rather than later.
  4. I'm going to assume it may use the credit card one as when you try and re-send it using "Invoice Created" - A message pop ups saying it's been aborted by the hook. But credit card one sends just fine.
  5. The two templates are the exact same content by the looks of it - Is there a way to find out which one was actually triggered?
  6. We have a hosting package that includes a free renewal and states that on the invoice the client gets. WHMCS raises the invoice for the package as normal but then it also raises an invoice just for the domain name renewal with £0 value. This £0 invoice is the one that still gets sent out via email by the looks of it. Looking at the activity log for "Email Sending Aborted by Hook". There is a lot of "Email Sending Aborted by Hook (Subject: Invoice Payment Confirmation)" and only a couple of "Email Sending Aborted by Hook (Subject: Customer Invoice)" every so often. This is using: 7.9.2 and not 7.10.1 but I can't see updating fixing it unless WHMCS did change something between those versions.
  7. Anything changed in the recent updates of WHMCS to stop this from working? Seems like the £0 email notification is being sent out. I have the following code: <?php # Disable 0.00 Invoices Hook v2 # Written by brian! use WHMCS\Database\Capsule; function disable_00_invoices_v2($vars) { $validtemplates = array("Invoice Created","Invoice Payment Confirmation"); if (in_array($vars["messagename"], $validtemplates)) { $merge_fields = []; $invoicetotal = Capsule::table('tblinvoices')->where('id',$vars['relid'])->value('total'); if ($invoicetotal == "0.00") { $merge_fields['abortsend'] = true; return $merge_fields; } } } add_hook("EmailPreSend", 1, "disable_00_invoices_v2");
  8. Hi, Anyone use the DNS Manager by ModulesGarden and what do they think of it? I can see there was some concerns of security vulnerabilities a few years ago mentioned on a webhostingtalk that seemed to have been fixed. It's got quite a big price tag so wondering if it's worth it in the long run for clients to just log into their clients portal and manage their DNS records there. So yeah just seeing if it anyone uses it and what their honest thoughts are about the plugin. Cheers,
  9. I shall give it a go and see what happens. Regarding your last comment: Yeah I've seen that a credit note function was requested 4 years ago and it's still in "Planned" status. Really not sure what is taking so long considering many countries require such things.
  10. Hi, Is there a way if a client disables auto-renew on a domain name which then removes it from an active invoice. That specific invoice is then re-sent out to the client? For example an invoice on a clients account had two items. One of them was removed as they disabled auto-renew on the domain name. Is it possible to make that invoice to be sent back to the client via email with the updated version? It would only make sense if the invoice had multiple products on them though so not sure if that makes it even harder to do. Have an awkward accounts department for a client who refuses to log into the portal to see the updated invoices. So seeing if there is an easier way to make this better for everyone involved. Cheers,
  11. We have Stripe and GoCardless enabled - We have noticed that clients can now add payment methods to their account and save card details which then parts of it are saved in the database. This wasn't the case before 7.9 - There also doesn't seem to be an option to disable it?
  12. Hi all, Not sure if this is the right place but was wondering if anyone else has looked into implementing security headers into an .htaccess or one of the other ways for their WHMCS installations? For example Content Security Policy header to protect from XSS attacks etc. If you have - Did it go well or was there limitations on what you could implement due to XYZ? Cheers,
  13. I think the hook was located on another website a while back - Thanks guys, I will give it a go!
  14. Hi, Can't post in the original thread: Basically emails are still being sent out when £0 invoices are being raised and causing a bit of confusion with clients so would like to get it disabled. It seems the HOOK I have is not working. I don't mind £0 invoices being raised as I don't think that can be disabled but would love to stop them from being sent out to clients when they raise. This is the hook I have so far: <?php function disable_00_invoices($vars) { $email_template_name = $vars['messagename']; # Email template name being sent $relid = $vars['relid']; # Related ID it's being sent for - client ID, invoice ID, etc... //Checking for certain template name, if so - this is our case if ($email_template_name == "Invoice Created" || $email_template_name == "Invoice Payment Confirmation") { //getting total of the invoice $result = select_query('tblinvoices', 'total', array("id" => $relid)); $data = mysql_fetch_assoc($result); //if it is equal to '0.00' we disable email sending if (isset($data['total']) && $data['total'] == '0.00') $merge_fields['abortsend'] = true; } return $merge_fields; } add_hook("EmailPreSend",1,"disable_00_invoices"); WHMCS Version:7.7.1 Any help will be appreciated. Cheers,
  15. Anyone made the jump to 7.8.3 yet to report back anything major?
×
×
  • 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