Query about admin

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
AlexYoung31
Posts: 1
Joined: 02 Oct 2016, 18:25

Query about admin

Post by AlexYoung31 » 02 Oct 2016, 18:27

Hi,

Where abouts are the queries to form the dashboard for admin. I.e if I wanted to make one for profits.

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

Re: Query about admin

Post by aimeos » 02 Oct 2016, 21:13

The dashboard uses the Aimeos JSON API to retrieve the data:
https://aimeos.org/docs/Developers/Admi ... arch_items

To group the filtered results (like a GROUP BY), use the additional parameter

Code: Select all

aggregate=...
e.g.

Code: Select all

aggregate=order.cdate
The "columns" you can search for and group by are the same as listed in the managers. You can use the "aggregate=..." parameter for every manager that has an aggregate() method, e.g. https://github.com/aimeos/aimeos-core/b ... andard.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply