How to get orders with their products
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: How to get orders with their products
I am using latest "dev-master" version. Can you please guide me how to get latest created order for user?
Last edited by Dhara1510 on 09 May 2019, 09:49, edited 1 time in total.
Re: How to get orders with their products
I am using latest "dev-master" version. Can you please guide me how to get latest created order for user?
Re: How to get orders with their products
You can use this if the user is logged in:
Code: Select all
use \Aimeos\Shop\Facades\Order;
if( ( $item = current( Order::sort('-order.id')->slice(0, 1)->search() ) !== false ) {
// ...
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How to get orders with their products
Thank you sir. I will apply it and let you know if i need your help