Jump to content

Question about hooks


omega1

Recommended Posts

Hello, I'm new to WHMCS (late to the game!).

I have a question about hooks.

I need to create some tasks on my own server on order completion, no problem with the code to create the tasks on my server, just need to understand a little more about how to achieve this with hooks.

I need to run some code on a completed order (paid for) and need to grab a custom field (username) which is entered during the ordering which I have set up on the product and I also need to know which products the customer has ordered. I'd also like to grab the password they used on account creation so that I can use the same one on my platform (separate to WHMCS platform).

Ideally I'd like to do this in one hook file when they pay for the order and it is complete (rather than in multiple hooks).

Also, slightly separate to the above, I'd like to check the username they have entered doesn't already exist on my platform before the order completes, is there any way to do this?

Thanks in advance for any assistance!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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