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

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
franzrudolf
Posts: 38
Joined: 23 Nov 2015, 14:10

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

Post by franzrudolf » 31 Jul 2016, 12:39

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

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

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

Post by aimeos » 01 Aug 2016, 14:43

Can you have a look into the addresses of your orders (mshop_order_base_address table)? What's the language stored there?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

franzrudolf
Posts: 38
Joined: 23 Nov 2015, 14:10

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

Post by franzrudolf » 01 Aug 2016, 17:14

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)

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

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

Post by aimeos » 02 Aug 2016, 10:10

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

franzrudolf
Posts: 38
Joined: 23 Nov 2015, 14:10

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

Post by franzrudolf » 02 Aug 2016, 12:35

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
}

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

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

Post by aimeos » 03 Aug 2016, 07:20

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
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

franzrudolf
Posts: 38
Joined: 23 Nov 2015, 14:10

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

Post by franzrudolf » 03 Aug 2016, 09:33

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).

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

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

Post by aimeos » 05 Aug 2016, 14:00

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply