Page 1 of 1

Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 31 Jul 2016, 12:39
by franzrudolf
Hi, it's me one more time... :-)

Since I updated Aimeos (Typo3-Ext) from 2.4.6 to 16.7.0 I use the "scheduler for aimeos-shop-emails" instead of the "Extbase-CommandController-Task (extbase)" (and the respective mail-jobs) which obviously doesn't exist any longer.

But now all E-Mails are sent in English instead of German as they were before.
Can you give a hint what's wrong , please...?

Thank you in advance
Ralph

Re: Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 01 Aug 2016, 14:43
by aimeos
Can you have a look into the addresses of your orders (mshop_order_base_address table)? What's the language stored there?

Re: Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 01 Aug 2016, 17:14
by franzrudolf
The langid in the mshop_order_base_address-table is always NULL (in all orders AFTER the update. In all previous orders, that worked fine, it's de)

Re: Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 02 Aug 2016, 10:10
by aimeos
The language should be set in the address part of the checkout process. Did you removed the language selection there? If yes, you should add it using the configuration for "hidden" form elements again:
https://aimeos.org/docs/Configuration/C ... ing/hidden

Re: Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 02 Aug 2016, 12:35
by franzrudolf
Okay, thank you. I fixed it now by adding these two commands (only the "hidden"-command didn't work):

plugin.tx_aimeos.settings.client.html.checkout.standard.address.delivery.mandatory {
8 = order.base.address.languageid
}
plugin.tx_aimeos.settings.client.html.checkout.standard.address.delivery.hidden {
8 = order.base.address.languageid
}

Re: Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 03 Aug 2016, 07:20
by aimeos
franzrudolf wrote: plugin.tx_aimeos.settings.client.html.checkout.standard.address.delivery.mandatory {
8 = order.base.address.languageid
}
plugin.tx_aimeos.settings.client.html.checkout.standard.address.delivery.hidden {
8 = order.base.address.languageid
}
That's too much. Either "mandatory" if it should be shown or "hidden" if you only have one value and it should be not shown. Use this in you case only:

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.address.delivery.hidden {
  8 = order.base.address.languageid
}

Re: Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 03 Aug 2016, 09:33
by franzrudolf
I tried this, but without the mandatory-command the e-mails switched to english again. To me this is strange, too, because, if I only set the mandatory-command, German language is set by default (if you want to switch to English you must choose this manually).

Re: Wrong E-Mail-language after update from 2.4.6 to 16.7.0

Posted: 05 Aug 2016, 14:00
by aimeos
Ah, ok. Mandatory is to enforce value and hidden is to don't show the select drop-down.

By default, the config.language setting of your TYPO3 page tree is used if there's also a locale entry available in the expert mode admin interface (Locale tab) for the site and language.