No translation of shipping and payment method in some e-mail confirmations

  • Posts: 23
  • Thank you received: 1
2 years 9 months ago #339134

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 4.0.6
-- Browser(s) name and version -- : Chrome

Hi, me, again... :-)

I have Falang installed and all works fine, but when I get confirmation e-mails, the shipping and payment method is OK in the creation confirmation and invoice, but remains in German (base language) in the confirmation and shipping e-mail...?! Not sure if this is a Hika-question though...!!? The texts are properly translated, since I get them in the creation e-mail. See pictures.
The problem arised for the English and French language. German is obviously OK.

Thank you and have a great day,
Martin

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339169

Hi,

Falang's translation mechanism works only on the frontend of the website.
So if the emails are sent by an action you do on the backend, like changing the status of the order, Falang won't kick in and thus the text won't be translated.
For the product names in the email, the name itself is stored with the order when the order is being created and used "as is" in the email so there is no translation ocurring and that's why it works fine.
But the shipping/payment method name is dynamically loaded when the email is generated, and that's why you only have the issue with it.

The solution is to not do the translation of these with Falang. Instead, create a new translation override under the Languages tab of the HikaShop configuration.
For example:
MY_SHIPPING_METHOD="shipping method name"
Then, change the name of the shipping method to MY_SHIPPING_METHOD in the menu System>Shipping methods.
That way, the translation mechanism of Joomla will automatically use your translation override for the current language (like the rest of the email content) and it will work on both the backend and the frontend.

Please Log in or Create an account to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum