How to get basket data in a Laravel Controller?
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!
-
- Posts: 26
- Joined: 16 Oct 2023, 15:05
How to get basket data in a Laravel Controller?
I want to get all the data within the basket within a Laravel Controller. How can I achieve that?
I tried below code but basket products data is empty.
\Aimeos\Controller\Frontend::create( app( 'aimeos.context' )->get(), 'basket' )->get()
I tried below code but basket products data is empty.
\Aimeos\Controller\Frontend::create( app( 'aimeos.context' )->get(), 'basket' )->get()
- Attachments
-
- Image 18.png (10.7 KiB) Viewed 2283 times
Re: How to get basket data in a Laravel Controller?
The code is correct, so the problem must be somewhere else.
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