Hi, does anyone has a Hook which auto enables the DNS of new Domains in WHMCS?
Customers always complaining that DNS Management is missing and i have to switch that on, all the Time.
And i wont take this as upselling position. So activate DNS Management in Frontend for "0$" is aswell not suitable for me.
It just be there and done 🙂
Any Suggestions, or Code Templates?
Hello all. I am hoping you can help me do what I think should be simple for people who have dealt with hooks already.
I want to do this:
IF a product's ID = x (I imagine this involves getting the product ID from a variable and doing an IF statement in PHP)
get the service_domain field (built-in field, not custom field),
run a shell script while passing the domain field as a bash variable to be used within the script's execution.
Why do I want to do this?
This will allow me to begin the process of provisioning maintenance coverage via WP CLI for customers who order a maintenance plan from us.
I'll create an additional 2 hooks -- three total so one for each maintenance plan. If I can get the first hook, i can make the others and likely merge them together. I just need a "template" to follow from someone who understands PHP more than on the surface like I do. This ultimately will chain 3 of my servers together. WHMCS server, our cPanel server, and the maintenance server.
Any help is appreciated. Would anyone be willing to paste in an effective code sample that I can use?
When I'm creating a client I'm using the ClientAdd hook so that any information added when creating the client will be sent to another system as a webhook.
I can do it without a problem and everything is working well - except getting the client custom fields information.
I know that I can call this information separately with a nother get command - but this is not what I'm looking for.
In the hook documentation it is only mentioned that the customFields Variable is a array Type.
Can someone give me a code example to show how can I incorporate the custom fields information that got added when creating the client?
This is the code I'm using now - sorry this is a picture since I'm getting 403 Forbidden when trying to add it directly to the ticket....
The only part missing is the information added to the custom fields during the client creation and got triggered with the ClientAdd hook.
I created a hook file for one of my addon modules and it seems like the hook event is always happening. The hook event is 'OrderPaid'.
When I look at the module logs there is an entry for this hook event every minute even though no orders have been paid for during this time.
I need to know why this is happening. If anyone can help me I would appreciate it.
Recently Browsing 0 members
No registered users viewing this page.