Mail template - Swedish string???

Phoca Cart - complex e-commerce extension
mjmartino
Phoca Enthusiast
Phoca Enthusiast
Posts: 86
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: 86
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: 49220
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: 49220
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: 86
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: 10000
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: 49220
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: 86
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.
mjmartino
Phoca Enthusiast
Phoca Enthusiast
Posts: 86
Joined: 10 Jun 2019, 15:53

Re: Mail template - Swedish string???

Post by mjmartino »

UPDATE:
Beta 5 have a problem too update from 6.0
https://ibb.co/KpBFd1G9

Customer - Mail for pending - OK.
Customer - Mail for complete - OK.

Mail to admin - still have mix language.
Číslo objednávky: 20260000003958 - Stav objednávky byl změněn na: Schwebend
First is from CZ status is from DE.
https://ibb.co/JRSBkdpL
I check template for Germany is ok.
🧑‍💼 Phoca Cart Admin: Order Status Notification - Pending - de-DE
==========================
TXT:
==========================

Code: Select all

Bestell-Nr.: {ORDERNUMBER} - Auftragsstatus wechselte zu: {STATUS_TITLE}



{TEXT.DOCUMENT}
=========================
HTML
=========================

Code: Select all

Bestell-Nr.:
{ORDERNUMBER}
- Auftragsstatus wechselte zu:
{STATUS_TITLE}

{HTML.DOCUMENT}
========================
Changing in options MAIN:
Order - Language Variables YES or NO
Nothing changes.

What else can I check?
And how to fix sql.
phocacart_order_products defaut_price (decimal 15)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49220
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Mail template - Swedish string???

Post by Jan »

Hi, the change for SQL is set in:
administrator/components/com_phocacart/update/sql/mysql/6.1.0.sql

Just download the package and install it (now 6.1.0Beta6) https://www.phoca.cz/download/99-phoca- ... -component

ALTER TABLE `#__phocacart_order_products` MODIFY `default_price` DECIMAL(15, 4) NOT NULL DEFAULT '0';


I don't understand if you have updated or not, if yes and still problems:

Changing Order - Language Variables YES or NO - this has only effect on newly created orders, not on old stored in system. it is about how the variables will be stored in database.

What is the default language in your Joomla, in your Joomla administration?

Try to set the following options:
Order - Language Variables to yes and try to do some demo order
You can even se the default lang to the same like your administration has:
Default language: to your administration language
If you find Phoca extensions useful, please support the project
Post Reply