Your order e-mail

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
TGergo
Posts: 41
Joined: 24 Nov 2022, 14:35

Your order e-mail

Post by TGergo » 04 Jan 2023, 10:36

php version 8.1
Windows 10
Aimeos version 2022.10.2.
Your order email.jpg
Your order email.jpg (50.08 KiB) Viewed 1149 times
Hello!

php artisan aimeos:jobs order/email/payment

Your order e-mail works well in English.

But the sums disappear in Hungarian language.

"ár:alapértelmezett" == "price:default"

in the email template file:
/// Price format with price value (%1$s) and currency (%2$s)
$pricefmt = $this->translate( 'controller/jobs', 'price:default' );
$pricefmt = ( $pricefmt === 'price:default' ? $this->translate( 'controller/jobs', '%1$s %2$s' ) : $pricefmt );

Do I need to write something to shop.php?

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Your order e-mail

Post by aimeos » 05 Jan 2023, 08:37

The Hungarian translation for "price:default" was wrong. It shouldn't be translated because this is a code for different price formats. The translation has been fixed and you can update the packages using:

Code: Select all

composer req aimeos/ai-client-html:2022.10.x-dev
composer req aimeos/ai-controller-jobs:2022.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

TGergo
Posts: 41
Joined: 24 Nov 2022, 14:35

Re: Your order e-mail

Post by TGergo » 05 Jan 2023, 10:38

Thanks for your quick reply.

Post Reply