Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About PatInt

  • Rank
    Junior Member

Recent Profile Visitors

583 profile views
  1. $email = $vars['clientsdetails'][2]; $firstname = $vars['clientsdetails'][0]; $lastname = $vars['clientsdetails'][1]; Is what the vars look like
  2. Thanks for the reply. I've added the AfterModuleCreate and AfterModuleTerminate hooks, but I'm missing something when extracting the array data. In the code below, I've shown the details I use to compile the AC $post array. This format works for my WHMCS ClientAdd hook, that captures accounts created without purchases, so I know the code is good there. What am I missing? Thanks add_hook('AfterModuleTerminate', 1, function($vars) { $myserviceid = "Service ID: " . $vars['serviceid']; $myuserid = "User ID: " . $vars['userid']; $mypid = "P ID: " . $vars['pid']; $myserverid = "Server ID: " . $vars['serverid']; $mydomain = "Domain: " . $vars['domain']; $mynodtype = "Mod Type: " . $vars['moduletype']; $email = "clientsdetails: " . $vars['clientsdetails'][2]; $firstname = "clientsdetails: " . $vars['clientsdetails'][0]; $lastname = "clientsdetails: " . $vars['clientsdetails'][1]; $post = array( 'email' => $email, 'first_name' => $firstname, 'last_name' => $lastname, 'tags' => $myserviceid, // assign to lists: 'p[2]' => 2, // example list ID (REPLACE '123' WITH ACTUAL LIST ID, IE: p[5] = 5) 'status[2]' => 1, // 1: active, 2: unsubscribed (REPLACE '123' WITH ACTUAL LIST ID, IE: status[5] = 1) // use the folowing only if status=1 'instantresponders[2]' => 1, // set to 0 to if you don't want to sent instant autoresponders 'p[1]' => 1, // some additional lists? 'status[1]' => 1, // some additional lists? 'instantresponders[1]' => 1, // set to 0 to if you don't want to sent instant autoresponders );
  3. Hi there I use ActiveCampaign (AC) for marketing and PM. I have a webhook that creates a contact in AC, when a new client account is created. Just First, Last and Email currently. The hook also Tags the contact with [WHMCS], so I know where they came from. I would like to Tag them with the service they order/subscribe to. I looked into Provisioning modules, but some are obfuscated, so I can't get access to the module details, so didn't pursue that any further, but I can't see a hook that would provide this info either. I'm happy to run an update query via cron, to update contacts in AC, once a day, if that's what is needed. I would happily outsource this as my PHP skills are not at that level. So my question is - does anyone have any thoughts on the best way that this could be achieved? Thanks
  4. Hi WHMCS - General Release7.10.1-release.1 We have our system set to renew the domain FOC, if the customer renews the Hosting. This works fine, and I understand the renewal dates must be aligned for this to happen, and all aligned. We have the WHMCS service/product - payment type set to recurring, and an annual price set. There's nothing more I can find that relates to recurring payments, but I'm not too sure how this works as it seems that PayPal is setting up the recurring payment, and is taking the payment at the first renewal date, but WHMCS is also raising an invoice for the hosting, and the expiry date does not change, unless the invoice is paid. The recurring PayPal payment and raised invoice don't seem to be related and end up with a double payment from the client. I've searched the support docs and this community, but I'm unable to find the info related to this scenario. Any advice or redirection to relevant information would be greatly appreciated. Thanks
  5. Thanks Brian. I have everything set and it's offering a free domain, as per 1 to 7 above. The part (based on the settings in your Automation settings) is what seems to be the issue. Do you know what they mean by this? It's the part that seems to be the issue.
  6. Hi We provide a free domain with hosting accounts. The Domain is listed in the client's account as £0.00 cost. If the hosting is due on 1st June, an invoice is raised for the hosting, on the 1st May, with the 1st June Due Date. When the hosting invoice is created, a domain renewal invoice is created, and the domain renewal is processed. If the client does not renew the hosting, we have paid for a renewal that the client does not pay for. How do I ensure that the domain is not renewed if the hosting is not renewed? Ideally, I want the domain to only renew when the hosting invoice is paid. Thanks in Advance.
  7. Update: I've followed this: https://help.whmcs.com/m/automation/l/683269-advanced-cron-troubleshooting These are the summaries. 31/31 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 1 min/1 min 52.2 MiB Sending Daily Cron Digest email Executing System Queue ---------------------- 4/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 1 min/1 min 70.2 MiB
  8. Hi I've been battling with this error showing in the Activity Log: Domain Sync Cron Error: Invalid date format provided: .0Z I've exported the data held in tbldomains and inspected it for errors in any of the date fields, but no luck. The cron is running and confirmed in the server logs. Other cron tasks run without issue. I'm at a complete loss as to how to diagnose this issue... Are there any switches I can add to the cron for testing? WHMCS Ver: 7.10.1 Thanks
  9. Ok, so I set the domain yearly price to say £50 (I wish) and when the hosting is renewed, that £50 is cancelled and the domain renewed?
  10. Hi Brian Sorry to drop back onto this, but I may be getting confused. If the hosting and domain renewal date is the same, and the client doesn't renew the hosting, how do I stop the domain renewal going through automatically. I really don't want to police the renewals to manually intercept renewal failures. Thanks
  11. Thank you all... I'll be in touch shortly
  12. Yes...I realise this is restricted to the current user though. Also the generate due invoices seems to miss anything over 1 month old, so just fishing around for solutions and handy tools as I'm new to WHMCS.
  13. Hi there May I ask what is updated by this? I'm trying to simplify the process of updating due dates, invoices etc, and this sounds interesting.
  14. Hi I'm looking for someone to import data from existing Heart Internet services, into WHMCS, to enable automation of invoicing/suspension and termination of services and domains. Preferably someone that has experience of HI data migration. Thanks
  15. Hi there For the past 10 days, I have been working with 20i to resolve an issue where a WHMCS installation on their platform, does not allow API calls from another, or the same server, within their platform. API calls from outside their platform, into the WHMCS in the 20i platform, do work, which suggests the issue is that the outgoing requests are being blocked. I'm using the WHMCS API example script, so nothing too clever. I have added all the correct API white-list IP addresses etc, but not mater what we try, it won't work. 20i are lost on this. I've tried shared and VPS instances to send the API call. I'm wondering if anyone has managed to get API working on the 20i platform, that might be able to help. Thanks in anticipation.
  • 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