johnw02 Posted October 17, 2014 Share Posted October 17, 2014 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? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 17, 2014 Share Posted October 17, 2014 You have to change the hook point that your module is using to set the group. Take a look here and chose the right one. 0 Quote Link to comment Share on other sites More sharing options...
johnw02 Posted October 18, 2014 Author Share Posted October 18, 2014 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.