-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Transport variable can not be altered in email_invoice_set_template_vars_before Event #10210
Comments
@diybook, thank you for your report. |
Hi. |
Hi, @gwharton! Thanks very much, will check it out! |
@magento-engcom-team Is there a process to follow to request the backporting of the above commit into 2.1 and 2.2. Apologies if it is covered somewhere, but I did search to no avail. |
The issue has been fixed and delivered to 2.2-develop branch |
or 2.2.3 |
Although this fix has made it into 2.2.4 There is an error in the commit that was made to 2.2-develop. The fix is missing for file app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php Infact, on further investigation this is still broken in 2.1-develop, 2.2-develop and 2.3-develop for the above reason. |
@RomaKis or @okorshenko can you look at this again and check the status of app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php in 2.1, 2.2 and 2.3 Somethings gone wrong with the commit and the changes have been only partially applied for the above file. |
@gwharton @magento-engcom-team This is a backward incompatible change. Anyone who relied on
fatal error, potentially breaking checkout. |
Ouch, yes you are right. Looking into it, prior to the changes implemented the events have inconsistent parameter types.
You can see that for the OrderSender the type of parameter "transport" was DataObject, whereas the type of parameter "transport" in all of the other email events is Array(). After the change, it was incorrectly changed to type Array(). I will create a PR to correct this. |
@magento-engcom-team , issue still persists in Magento 2.2.4. have tried to append value to $transport['payment_html'] variable in extended class but still it is not allowing to alter. |
We waht to change the payment_html for banktransfer invoices. Unfortunately the instruction is also sent in invioce email. And there the customer already has paid the bill.
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: