VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: flibakos on June 22, 2018, 10:47:23 AM

Title: Language override not working in email of updated order
Post by: flibakos on June 22, 2018, 10:47:23 AM
We're currently setting up a multilingual (Greek/English) site with VirtueMart 3.2.14.9808 on Joomla! 3.8.8

In Joomla! (Extensions -> Language(s) -> Overrides), the following language overrides have been added:


Constant                Text Language Tag Location
----------------------- ---- ------------ --------
COM_VIRTUEMART_MAIL_SKU ISBN el-GR        Site
COM_VIRTUEMART_MAIL_SKU ISBN en-GB        Site


This setup works fine when the initial order confirmation e-mail is sent, i.e. the shopper sees "ISBN" instead of "SKU" in the product list of their order.

However, if we change the order's status in the backend to "Shipped" (or even "Canceled" or "Refunded") and notify the shopper, the e-mail received by the user will display "SKU" instead of the desired "ISBN".

This happens regardless of the site language the user has selected when placing the order.

Has anyone else come across this?
Title: Re: Language override not working in email of updated order
Post by: jjk on June 26, 2018, 09:07:59 AM
Quote from: flibakos on June 22, 2018, 10:47:23 AM
This setup works fine when the initial order confirmation e-mail is sent, i.e. the shopper sees "ISBN" instead of "SKU" in the product list of their order.

However, if we change the order's status in the backend to "Shipped" (or even "Canceled" or "Refunded") and notify the shopper, the e-mail received by the user will display "SKU" instead of the desired "ISBN".

Add this to the 'administrator' language override and the 'site' language override:
COM_VIRTUEMART_ORDER_PRINT_SKU="ISBN"
In your case adding this to the 'site' language override probably makes sense too:
COM_VIRTUEMART_CART_SKU="ISBN"