Get site orders

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!
MirkoPinna
Posts: 16
Joined: 04 Sep 2017, 12:35

Get site orders

Post by MirkoPinna » 06 Oct 2017, 11:43

Hi is there a way to get all the orders relative to one site from a Laravel controller?

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

Re: Get site orders

Post by aimeos » 06 Oct 2017, 20:04

Have you read this article?
https://aimeos.org/docs/Laravel/Extend_ ... os_objects

It explains how to access the Aimeos data from a Laravel controller.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MirkoPinna
Posts: 16
Joined: 04 Sep 2017, 12:35

Re: Get site orders

Post by MirkoPinna » 09 Oct 2017, 08:35

Yes ok but looks like there is no apis to get all the orders from a site. There is the order manager but doesn't seems to be very helpful in this case.

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

Re: Get site orders

Post by aimeos » 09 Oct 2017, 21:32

A site is defined by its siteid value and that depends on the site code you feed into the bootstrap method of the locale manager to set the locale item in the context object. The order manager will then fetch all orders that match the siteid value from the locale item.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply