v1.3.4: How to fix error not translate customer attribute in the email?

Created by Jane D, Modified on Thu, 24 Feb 2022 at 11:41 AM by Jane D

QUESTION:


Is there a way to use the translation for the customer attribute label I created in the order confirmation email, invoice, shipment, credit memo?


Note that I use M2.4.x and module version 1.3.4.


ANSWER:


To fix this error, please download the files fix I attached below and overrides the current files on your site:


+ app/code/Bss/CustomerAttributes/Helper/GetHtmltoEmail.php

+ app/code/Bss/CustomerAttributes/Observer/Order/CreditMemoEmailTemplateVars.php

+ app/code/Bss/CustomerAttributes/Observer/Order/InvoiceEmailTemplateVars.php

+ app/code/Bss/CustomerAttributes/Observer/Order/OrderEmailTemplateVars.php

+ app/code/Bss/CustomerAttributes/Observer/Order/ShipmentEmailTemplateVars.php


If you need further assistance, please do not hesitate to contact us. We'd be happy to support!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article