Dates in account history

Questions around the TYPO3 integration and plugins
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!
eugene
Posts: 12
Joined: 02 Apr 2016, 09:32

Dates in account history

Post by eugene » 07 Apr 2016, 08:49

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.

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

Re: Dates in account history

Post by aimeos » 07 Apr 2016, 09:52

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

eugene
Posts: 12
Joined: 02 Apr 2016, 09:32

Re: Dates in account history

Post by eugene » 07 Apr 2016, 10:08

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.

eugene
Posts: 12
Joined: 02 Apr 2016, 09:32

Re: Dates in account history

Post by eugene » 07 Apr 2016, 10:39

I checked it in english translation and dates are ok. But in russuan not correct.

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

Re: Dates in account history

Post by aimeos » 07 Apr 2016, 11:38

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

eugene
Posts: 12
Joined: 02 Apr 2016, 09:32

Re: Dates in account history

Post by eugene » 07 Apr 2016, 16:44

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.

Post Reply