-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Dispatch events for e-mail template variables #396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The info has to be passed as an argument, requiring a rewrite. This must On Wednesday, October 30, 2013, Marius wrote:
[image: Blue Acorn] Benjamin H. Marks o: 843-641-0045 | m: 843-670-4240 | skype: blueacorn_ben Blue Acorn | www.blueacorn.com |
This is not very useful at all, because it is limited to sales_order_new_email and it's set at the wrong place. It's better to at this feature to Magento\Email\Model\Template to functions send and sendTransactional. Here you can also add the Mail themself to event. So everyone can observe this event for paste in new params and email attachments like pdfs. This event also triggered for all emails. I will create a pull request for this feature. |
Use Interceptors, Luke! |
Hello @tzyganu , |
Here is the response from the team I got regarding this issue:
We assume this is the complete answer for the question you asked. We are closing this ticket now. If there are more unanswered questions, please let us know. We will try to provide you with the complete answers. |
@verklov Thanks for the nice tutorial. All clear now. |
[Folks] Catalog product interface
[South] Bug fixes - MAGETWO-56941 [Github] Allowed countries for customer address in admin using storeview configuration #2946 - MAGETWO-54816 Styles drop down in WYSIWYG editor does not work - MAGETWO-58220 Unable to "Add Products Manually" for Configurable product - MAGETWO-58393 An error occurs while saving configurable product
- Merge Pull Request magento/graphql-ce#396 from pmclain/graphql-ce:feature/bundle-cart - Merged commits: 1. 8b56ad0 2. 77b636e 3. 82fc826 4. 9077c1c 5. 4387331 6. 840fbed 7. 989038c 8. 226cbf7 9. 1f2aeda 10. 76a8f29 11. 5525815 12. 019f8dc 13. ff59f00 14. be26487 15. a3fe77f 16. 45742cd 17. 9e3975c 18. f3f882a 19. 22489c2
CABPI-197 admin logout
I think there is a need for an event to be dispatched before calling
setTemplateParams
when an e-mail is sent. I often needed this to add extra information in e-mail templates (at least for 1.x version) and the only way I could do it is to rewrite the method. (or am I doing it wrong?)Here is an example.
in
Magento\Sales\Model\Order::sendNewOrderEmail()
this codecan be
The text was updated successfully, but these errors were encountered: