Dates in account history
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Dates in account history
In account history all dates looks like Y-m-d. It's becouse the $orderItems = $this->get( 'listsOrderItems', array() ); in /typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/client/html/templates/account/history/list-body-default.php returns such array: {"10":{}} with IDs only. Tested versions are 16.3.1 and 2.4.6.
Re: Dates in account history
We've tested what you've described but can't confirm it. Dates are displayed like "03/31/2016" in the account history list because the English translation of "Y-m-d" is "m/d/Y" (https://github.com/aimeos/aimeos-core/b ... en.po#L769).
Also, the content of "listsOrderItems" is always
That's the code assigning the array to "listsOrderItems":
https://github.com/aimeos/aimeos-core/b ... d.php#L289
Did you implement a custom Client/Html/Account/History/Lists class?
Also, the content of "listsOrderItems" is always
Code: Select all
array(
<id> => <Aimeos MShop Order Item Standard object>,
...
)
https://github.com/aimeos/aimeos-core/b ... d.php#L289
Did you implement a custom Client/Html/Account/History/Lists class?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Dates in account history
No, the Client/Html/Account/History/Lists class is standard. I didn't change that. And the code is $view->listsOrderItems = $manager->searchItems( $search ); I see dates in russuan translation, so it's Г-м-д in account history.
Re: Dates in account history
I checked it in english translation and dates are ok. But in russuan not correct.
Re: Dates in account history
If only the translation is incorrect, you can fix it by changing it in Transifex:
https://www.transifex.com/aimeos/aimeos-core/
You only have to create your own account and can start translating immediately. We will integrate the translations before each Aimeos release.
https://www.transifex.com/aimeos/aimeos-core/
You only have to create your own account and can start translating immediately. We will integrate the translations before each Aimeos release.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Dates in account history
I corrected that string and several others in translation files manualy, everything is ok now. Looks fine. I fix that in Transiflex later. Thanks for your help.