Order status email translation

Phoca Cart - complex e-commerce extension
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Order status email translation

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Order status email translation

Post 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
If you find Phoca extensions useful, please support the project
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Re: Order status email translation

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Order status email translation

Post 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
If you find Phoca extensions useful, please support the project
Post Reply