-
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
[Issue] Add missing order_data array to EmailSender classes #29604
Comments
Hi @engcom-Delta. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Delta Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @m2-assistant[bot]. Thank you for your report.
The fix will be available with the upcoming 2.4.2 release. |
This issue is automatically created based on existing pull request: #27454: Add missing order_data array to EmailSender classes
Summary (*)
Magento 2.4-develop
Magento 2.3.4 now recommends using scalar variables instead of objects within the email templates. Unfortunately, not all classes were migrated. For example, \Magento\Sales\Model\order\Email\Sender\ShipmentSender was given the new array, despite now it being deprecated, but its replacement, \Magento\Sales\Model\Order\Shipment\Sender\EmailSender did not.
This change was introduced in commits like fd721b1#diff-7b993c70d2652919564eeaf30afe7326. Several more do change the email templates to use
order_data
instead.Examples (*)
{{order_data.is_not_virtual}}
(as opposed to{{order.is_not_virtual}}
);\Magento\Sales\Model\Order\Shipment\Sender\EmailSender
;Proposed solution
The text was updated successfully, but these errors were encountered: