Is your feature request related to a problem? Please describe?
Currently, users may lose track of products they have recently viewed, especially when switching devices or browsers. If browsing history is stored only locally, users cannot seamlessly continue their shopping experience across multiple devices.
Describe the solution you'd like
Implement a Recently Viewed Products feature with cross-device synchronization for authenticated users.
The system should automatically record products viewed by a user and synchronize this history across all logged-in devices.
Key capabilities include:
- Automatically track recently viewed products
- Synchronize viewing history across devices
- Display a dedicated Recently Viewed section
- Allow users to remove individual items or clear their history
- Limit the history to a configurable number of recent products (e.g., last 20 or 50)
Describe alternatives you've considered
A browser-based local storage solution is simpler to implement but limits the feature to a single device. Storing recently viewed products on the server enables a consistent experience regardless of where the user logs in.
Additional context
Possible implementation:
- Create a
RecentlyViewed model associated with each user.
- Record product views whenever a product detail page is visited.
- Add REST APIs to retrieve and manage recently viewed products.
- Display recently viewed items on the homepage, product details page, or user dashboard.
- Automatically remove duplicate entries while keeping the most recent view at the top.
Benefits
- Enables users to easily revisit previously viewed products.
- Provides a seamless shopping experience across devices.
- Improves product rediscovery and user convenience.
- Encourages continued browsing and engagement.
- Lays the foundation for future personalized recommendation features.
Is your feature request related to a problem? Please describe?
Currently, users may lose track of products they have recently viewed, especially when switching devices or browsers. If browsing history is stored only locally, users cannot seamlessly continue their shopping experience across multiple devices.
Describe the solution you'd like
Implement a Recently Viewed Products feature with cross-device synchronization for authenticated users.
The system should automatically record products viewed by a user and synchronize this history across all logged-in devices.
Key capabilities include:
Describe alternatives you've considered
A browser-based local storage solution is simpler to implement but limits the feature to a single device. Storing recently viewed products on the server enables a consistent experience regardless of where the user logs in.
Additional context
Possible implementation:
RecentlyViewedmodel associated with each user.Benefits