Page 1 of 1

Order status email translation

Posted: 24 Jan 2023, 16:42
by Drex
Hey,

I've edited some strings in the en-GB.com_phocacart.ini file in /language/en-GB/, but when the system sends the emails regarding the order status, the changes appear only on the pending status email, when the order is confirmed the changes dont appear in the email. Any thoughts?

PhocaCart 4.0.5

Cheers!

Re: Order status email translation

Posted: 25 Jan 2023, 18:25
by Jan
Hi, in Joomla, there is feature "language override" and you can add own strings and there is no need to customized the core files.

Email translation - are we speaking about language strings which are set in Phoca Cart language file or about language of content of the email?

Jan

Re: Order status email translation

Posted: 26 Jan 2023, 11:33
by Drex
Jan wrote: 25 Jan 2023, 18:25 Hi, in Joomla, there is feature "language override" and you can add own strings and there is no need to customized the core files.

Email translation - are we speaking about language strings which are set in Phoca Cart language file or about language of content of the email?

Jan
Hey Jan,

I've tried language override, it doesnt work.

Im talking about the language of content of the email you receive (as client) after the order is placed (generated by order.php). For example "Order Nr.: 20230000000019 - Order status changed to: Confirmed" which is composed from COM_PHOCACART_ORDER_NR and COM_PHOCACART_STATUS_XXX etc.

When the first email is sent by PhocaCart (the one saying the order is in pending because i set it so orders have to be confirmed by admin) the strings are translated correctly, but after i confirm the order, the new email uses the 'original' strings, it doesnt care about my modifications.

The only way i found to be sure it works every time is to directly edit order.php and replace the constants with strings.
Although i cant find where the 'Order Nr.: 20230000000019 - Order status changed to: Confirmed' is generated, to edit it.

Cheers!

Re: Order status email translation

Posted: 30 Jan 2023, 17:53
by Jan
Hi, what is the setting of following parameters (Phoca Cart Options) on your site?

Image

Another question, what language is set for the user when ordering, because the code implements user's language set in order.

See e.g. phpMyAdmin, orders table:

Image

Is the language set correctly for the order?

Jan