VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jarlu on August 03, 2022, 07:46:00 AM

Title: multilangual invoice
Post by: jarlu on August 03, 2022, 07:46:00 AM
Hello,
I am using multilangual eshop, but I have issue with an invoices. Head of all invoices are in default language (body language is correct). In shop setting I have set speciffic head for all languages. Issue is only during creating invoice, if I want only print order details, head is correct. In forum I found same problem but without a sollution.

http://forum.virtuemart.net/index.php?topic=142222.0

Thank you
Title: Re: multilangual invoice
Post by: hazael on August 05, 2022, 10:07:43 AM
It is very possible that you have English permanently entered in your template.
I used to have a similar problem, but I don't remember the exact details. Invoices are generated independently in HTML and PDF - You need to change both sources

Which part of the invoice do you want to change? Submit a screenshot
Title: Re: multilangual invoice
Post by: pinochico on August 05, 2022, 10:23:51 AM
I think invoice is generated from BE but as FE view.

Sometimes FE language (order) is different as BE language (a lot of admin's working on other language then FE - on own shops admins working in CZ language, but shops are in others).
Then there is conflict between language and invoices are in wrong language.

But is very easy load order language from DB to PHP and setup in view for print to PDF.

Yes, some people check this as bug, some as not prepared VM to multilanguage
Title: Re: multilangual invoice
Post by: jarlu on August 05, 2022, 14:54:09 PM
Hello, I need to have correct language for invoice. I need to change invoice header. The invoice must be created in the customer's language. Now the invoice has the main body in the customer's language, but the invoice header is in the store's default language.