-
Notifications
You must be signed in to change notification settings - Fork 9.4k
In Sales Emails no translation using order.getStatusLabel() #14849
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
…der.getStatusLabel() \Magento\Sales\Model\Order\Config::getStatusLabel(), used by template email was forcing the usage of getLabel() when in adminhtml area. I added a new method getFrontendStatusLabel() in \Magento\Sales\Model\Order and modified email template files to use it instead of the original implementation. I did not modify the original implementation because still in use by backend and frontend.
I have same problem with magento 2.2.5. What is the correctly fix for this without problems? |
Hi @raymond62. Thank you for your report.
The fix will be available with the upcoming 2.2.8 release. |
…ing order.getStatusLabel() #14914
…er.getStatusLabel().
Hi @raymond62. Thank you for your report.
The fix will be available with the upcoming 2.3.1 release. |
Are you sure it's fixed, because I'm still having this in version 2.3.2 ?? |
Hi, I just came accross the issue in Magento 2.3.5-p2 The template /vendor/magento/module-sales/view/frontend/email/order_update.html is displaying order_status using
That variable is set in /vendor/magento/module-sales/Model/Order/Email/Sender/OrderCommentSender.php and is not using the proper storeId. Thus the value cannot be properly translated.
The use of $order.getFrontendStatusLabel() inside the template is working fine. Do you plan on updating the template to implement the method getFrontendStatusLabel() so every status can be translated accordingly ? |
In current Magento versions function calls are no loner allowed in email templates. |
Sending sales emails the label for order status is not translated.
Preconditions
Steps to reproduce
Expected result
Actual result
edit order status

send an email using the sales area

status label in the email. This should be German in this case

I've read this issue, but guess this is not the same
#9014
The text was updated successfully, but these errors were encountered: