recently viewed products

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

recently viewed products

Post by mahammadareef » 21 Dec 2022, 11:17

Hello Team Aimeos,

I want to implement a recently viewed product listing in my aimeos site, when the customer is not logged in I want to store the customer product page visits in session whenever the customer logged in to a system that time these products will be shifted to the database table (i know cart logic look similar ), tel me the steps to fulfill this ..............

(recomend me if you have better idea )

Thank you

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

Re: recently viewed products

Post by aimeos » 22 Dec 2022, 09:00

The catalog/seen HTML client almost does that already besides persisting the the products from the session in the database.
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: recently viewed products

Post by mahammadareef » 23 Dec 2022, 14:36

I want to store recently viewed products permanently but in aimeos when I log out all the recently viewed products will be cleared,, so how can i handle it ...i dont want those products will be removed from my list when customer logs out

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

Re: recently viewed products

Post by aimeos » 23 Dec 2022, 14:52

You could move those products to the customers' favorite list on login or extend the catalog/seen component to store the products in the database as soon as this returns non-null:

Code: Select all

$this->context()->user();
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply