How to get basket data in a Laravel Controller?

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!
shainanand
Posts: 26
Joined: 16 Oct 2023, 15:05

How to get basket data in a Laravel Controller?

Post by shainanand » 10 Nov 2023, 09:23

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()
Attachments
Image 18.png
Image 18.png (10.7 KiB) Viewed 1906 times

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

Re: How to get basket data in a Laravel Controller?

Post by aimeos » 14 Nov 2023, 07:54

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, Image give us a star

Post Reply