Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recently Viewed Products Feature #14

Open
hackthetunnelsbot bot opened this issue Sep 30, 2023 · 1 comment
Open

Recently Viewed Products Feature #14

hackthetunnelsbot bot opened this issue Sep 30, 2023 · 1 comment

Comments

@hackthetunnelsbot
Copy link

Description:

On the home page, the customer should be able to see a list of their most recently viewed products. Similar to the following section taken from Amazon:

example

To create this feature, save the data from each product you visit in cookies to later surface on the home page.

When the user navigates to a product page, utilize the useCookies hook from the react-cookie library to access the setCookie, updateCookies, and removeCookie functions and set the desired product information in cookies.

On client/src/pages/Home/Home.tsx, utilize the stored product information stored in cookies to populate a new section called "Recently Viewed Products".

Acceptance Criteria:

On the home page, a section appears showcasing the most recently viewed products.

@Ennics
Copy link

Ennics commented Sep 30, 2023

Working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant