cart functionality

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!
User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

cart functionality

Post by mahammadareef » 01 Mar 2023, 12:54

I have just now noticed in my aimeos that, the cart is not working properly I will call it incomplete,

here when the user is logged in and adds articles to the cart, it will not available for next time (it is not stored in the database )


how i can make this work

I want to show the user previous cart items whenever he signs in or signup on any device.

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

Re: cart functionality

Post by aimeos » 03 Mar 2023, 12:05

The basket is already stored in the database but the token for retrieving the basket is lost when the user logs out of the session is cleaned up. At the moment, you would need to overwrite this method and store the token also in the users table:
https://github.com/aimeos/aimeos-larave ... #L266-L273
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

Re: cart functionality

Post by mahammadareef » 09 Mar 2023, 07:14

unable to open the github link provided

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

Re: cart functionality

Post by aimeos » 10 Mar 2023, 09:09

Sorry, the aimeos-laravel package has been restructured. Here's the link to the 2022.10 version:
https://github.com/aimeos/aimeos-larave ... #L260-L273
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply