Skip to content

Email sending events #1202

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

Merged
merged 10 commits into from
Apr 30, 2015
Merged

Email sending events #1202

merged 10 commits into from
Apr 30, 2015

Conversation

fooman
Copy link
Contributor

@fooman fooman commented Apr 19, 2015

Part of the same project as Pull Requests #1199 and #1201 - refer there for background information.

This pull requests adds events during the email sending process of transactional sales emails. The events allows any extension to add arbitrary objects to be used in the email templates.

@kandy
Copy link
Contributor

kandy commented Apr 20, 2015

@fooman, Do not you think that is strange to copy the same code in different places? I believe that same can be implemented using Interceptors

@fooman
Copy link
Contributor Author

fooman commented Apr 20, 2015

@kandy strange? possibly. I have only started working with Magento2 and it seems to require a lot more explicit code mentions to get things done (most of the code is really getting the event manager into the functions). How the code is currently structured I don't think the interceptor approach will work as well. However feel free to create a different pull request for Magento to consider.

@vpelipenko vpelipenko added the CS label Apr 21, 2015
@fooman
Copy link
Contributor Author

fooman commented Apr 21, 2015

Looks like the latest version created a merge conflict. Will take a look into this after Imagine.

@vpelipenko
Copy link
Contributor

@fooman, did you have a time to look at conflict?

Conflicts:
	app/code/Magento/Sales/Model/Order/Email/Sender/CreditmemoCommentSender.php
	app/code/Magento/Sales/Model/Order/Email/Sender/CreditmemoSender.php
	app/code/Magento/Sales/Model/Order/Email/Sender/InvoiceCommentSender.php
	app/code/Magento/Sales/Model/Order/Email/Sender/InvoiceSender.php
	app/code/Magento/Sales/Model/Order/Email/Sender/OrderCommentSender.php
	app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php
	app/code/Magento/Sales/Model/Order/Email/Sender/ShipmentCommentSender.php
	app/code/Magento/Sales/Model/Order/Email/Sender/ShipmentSender.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/AbstractSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/CreditmemoCommentSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/CreditmemoSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/InvoiceCommentSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/InvoiceSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/OrderCommentSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/OrderSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/ShipmentCommentSenderTest.php
	app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/ShipmentSenderTest.php
@fooman
Copy link
Contributor Author

fooman commented Apr 28, 2015

Just catching up - have taken care of the merge conflicts.

@vpelipenko vpelipenko added Progress: accept Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed Progress: needs update labels Apr 28, 2015
@vpelipenko
Copy link
Contributor

CR: passed
Builds: green
Resolution: OK to merge
Internal ticket: MAGETWO-36735

vpelipenko added a commit that referenced this pull request Apr 30, 2015
@vpelipenko vpelipenko merged commit 1b0c165 into magento:develop Apr 30, 2015
@ilol ilol assigned asemenenko and unassigned vpelipenko Apr 30, 2015
@fooman fooman deleted the email-sending-events branch January 27, 2016 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: accept
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants