Jump to content

Change timing of Order Confirmation email?


johnw02

Recommended Posts

Hello. I'm using a module that automatically adds a customer to a client group when they place an order, depending on the product purchased. I'm using this to customize the Order Confirmation email.

 

The problem I'm having is, the order confirmation email is sent -before- this module adds the customer to the client group. I need to have the order confirmation email sent -after- the module has added the customer to the appropriate group to ensure they receive the custom order confirmation.

 

How would I go about doing this?

Link to comment
Share on other sites

The reply from WHMCS support is below. Unfortunately, I cannot seem to figure this out. Can someone help point me in the right direction?

 

You will need to use the EmailPreSend hook to stop the sending of the confirmation email before it is add to the correct group:

 

http://docs.whmcs.com/Hooks:EmailPreSend

 

Then once the client has been modified, you can use the API to resend the email confirmation out to the client.

 

http://docs.whmcs.com/API:Send_Email

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