Order confirmation email partially in English despite complete translation

Started by sandomatyas, April 11, 2025, 18:48:29 PM

Previous topic - Next topic

sandomatyas

Hi,

Joomla 3.10.12 + VirtueMart 4.4.6 + latest language files.

I noticed something strange:

Everything on the site is properly translated to the selected language. However, when placing an order, the order confirmation email contains some parts still in English.

For example:

In the product table header → everything is in English except for the product name (COM_VIRTUEMART_PRODUCT_NAME_TITLE), which is translated correctly.

"Order date" is in English.

Customer field labels like "First Name", "Last Name", etc. are in English too.

Everything else in the email is displayed in the correct language.

I checked for example the COM_VIRTUEMART_ORDER_PRINT_SKU constant — it exists in the language file.

When I view the order from the backend or as a customer (browser), everything is translated correctly.

There are no template overrides in components/com_virtuemart/invoice.

Any idea why the email uses English for these parts?

Thanks in advance!

sandomatyas

I noticed that changing $cache = true to false in shopFunctionsF::loadOrderLanguages solves the issue.

Jumbo!

You may consider using our VP Email Manager extension to resolve the issue and gain better control over your emails. For more details, visit: https://www.virtueplanet.com/extensions/vp-email-manager.

sandomatyas

Hi Jumbo!
I have active subscription :) But also looking for VM-related bugs/notices/questions here.

Milbo

Quote from: sandomatyas on April 19, 2025, 08:03:40 AMI noticed that changing $cache = true to false in shopFunctionsF::loadOrderLanguages solves the issue.

Very great. Thank you. I directly added it. It makes perfectly sense. It was sooo hard to get that stuff running. Changing the language during runtime is not foreseen in the joomla code. So it makes sense that the cache does not consider the language and returns them wrong.

Thank you,... You solved a returning problem. Not a big deal, often even not noticed as real error. But from time to time,...3-6 months I noticed it, but just had another important job and had to ignore it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sandomatyas

Quote from: Milbo on May 16, 2025, 21:03:17 PM
Quote from: sandomatyas on April 19, 2025, 08:03:40 AMI noticed that changing $cache = true to false in shopFunctionsF::loadOrderLanguages solves the issue.

Very great. Thank you. I directly added it. It makes perfectly sense. It was sooo hard to get that stuff running. Changing the language during runtime is not foreseen in the joomla code. So it makes sense that the cache does not consider the language and returns them wrong.

Thank you,... You solved a returning problem. Not a big deal, often even not noticed as real error. But from time to time,...3-6 months I noticed it, but just had another important job and had to ignore it.

 ;)