1

I have created a module that processes certain order statuses. I have two PDF attachments I need to attach to these orders. These orders are processed after payment gateway authorization so I'm wondering if there is a way to trigger the order email with these two PDF's programmatically.

Thanks in advance.

1 Answer 1

1

If these emails are associated to a status change (for example from "Processing" to "Complete") you can use order status emails. For something more complex you will have to write a custom plugin that listens for EVENT_ORDER_STATUS_CHANGE (or a more appropriate one, according to your case) and then reacts accordingly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.