Page 1 of 1

Get site orders

Posted: 06 Oct 2017, 11:43
by MirkoPinna
Hi is there a way to get all the orders relative to one site from a Laravel controller?

Re: Get site orders

Posted: 06 Oct 2017, 20:04
by aimeos
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.

Re: Get site orders

Posted: 09 Oct 2017, 08:35
by MirkoPinna
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.

Re: Get site orders

Posted: 09 Oct 2017, 21:32
by aimeos
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.