Page 1 of 1

Dates in account history

Posted: 07 Apr 2016, 08:49
by eugene
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

Posted: 07 Apr 2016, 09:52
by aimeos
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

Code: Select all

array(
  <id> => <Aimeos MShop Order Item Standard object>,
  ...
)
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?

Re: Dates in account history

Posted: 07 Apr 2016, 10:08
by eugene
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

Posted: 07 Apr 2016, 10:39
by eugene
I checked it in english translation and dates are ok. But in russuan not correct.

Re: Dates in account history

Posted: 07 Apr 2016, 11:38
by aimeos
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.

Re: Dates in account history

Posted: 07 Apr 2016, 16:44
by eugene
I corrected that string and several others in translation files manualy, everything is ok now. Looks fine. :D I fix that in Transiflex later. Thanks for your help.