Mail template - Swedish string???

Phoca Cart - complex e-commerce extension
mjmartino
Phoca Enthusiast
Phoca Enthusiast
Posts: 84
Joined: 10 Jun 2019, 15:53

Mail template - Swedish string???

Post by mjmartino »

Hi Jan
Problem template mail:
Case:
Sending confirmation mail. We using paygate from Platni.cz.
If system change stratus to confirmation, send email to user with part of Swedish lang?!
Multilanguage is OFF, I check all template is good.
Change manual status and send one more time, send google mail.
We are using:
Phoca Cart 5.2.3 Joomla 5.4.1
Send is setup send txt and HTML.
https://ibb.co/6cbmQQy6 when send wrong.

https://ibb.co/nNkH2Xkn - how look mail with swidish part...
mjmartino
Phoca Enthusiast
Phoca Enthusiast
Posts: 84
Joined: 10 Jun 2019, 15:53

Re: Mail template - Swedish string???

Post by mjmartino »

For setup PC
In Phoca setup is Order Language: Fronted.
Fronted is setup: Czech (Čeština).
Joomla 5 is turn off multilanguage.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49199
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Mail template - Swedish string???

Post by Jan »

Hi, is there somewhere defined the swedish language on your Site? Is it primar language?

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49199
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Mail template - Swedish string???

Post by Jan »

BTW, can you share how the options for language are set?

Image

Is this email to admin or to customer? What is customer language?
If you find Phoca extensions useful, please support the project
mjmartino
Phoca Enthusiast
Phoca Enthusiast
Posts: 84
Joined: 10 Jun 2019, 15:53

Re: Mail template - Swedish string???

Post by mjmartino »

https://ibb.co/xZXk1mc

All customers buy as guests. Nobody creates an account.

For admin come 4 email.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9988
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Mail template - Swedish string???

Post by Benno »

Hi,
I think your screenshot looks strange:
Image

Should be 'No' not 'Nie'

Image
Have you changed any strings of en-GB.com_phocacart.ini? Or did you create language overrides?

Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49199
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Mail template - Swedish string???

Post by Jan »

Hi, I have got information from platiti - there could be possible problem with switching language between the customer and the admin and Joomla, I added some more code to prevent from this problem, you can download and test Phoca Cart 6.1.0Beta3:

https://www.phoca.cz/download/99-phoca- ... -component


- I have tested this version in Joomla 6
- I have tested this version in Joomla 5

When using multilanguage (multilanguage in Joomla needs to be enabled):

- Mail to customer is in language defined in options - e.g. when he/she makes order in german language, then it is de-DE
- Mail to admin is in default language (en-GB)

It depends on Phoca Cart options, if order will be stored in customers language or translation strings so it can be translated to other languages (we are now speaking about e.g. the calculation inside email). Set parameter Order - Language Variables to YES if you want have e.g. invoice in different languages, set to no if it could be e.g. only in customers language (mostly this is not a problem if admin gets information about the order and it is in customers language, the mail should be only informative)

In any case, there should be not more mixing of languages inside email, tested with English and German:

- Text or html mail templates
- Changed order status in admin
- Changed order status by payment method, e.g. PayPal

Customer:

Image

Admin:


Image

Please test and let me know.

Thank you, Jan
If you find Phoca extensions useful, please support the project
mjmartino
Phoca Enthusiast
Phoca Enthusiast
Posts: 84
Joined: 10 Jun 2019, 15:53

Re: Mail template - Swedish string???

Post by mjmartino »

Yes. This is my case from platiti :)
We do not use multilanguage.
We have installed PL/EN/CZ/DE Only for the needs of people who log in using the administrative backend.
by default in this site is CZ (front) - PHOCA THIS SAME.
Backend is dependent on person. (PL/CZ)
Joomla have turn off Multilanguage because we are using separate installations for languages (different domains).
Phoca Cart have turn off Multilanguage.
All customers buy as guests. Nobody creates an account.

Jan could you test on quest?

Joomla 5 and PC5 IF i turn on Multilanguage i must be setup all article and products to setup Czech language. (this is not this case)

I can't install the beta because we also use PCUiKIT. So I have to do it on a separate copy. This will take me a while.
Post Reply