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

How can I make dynamic the favourite button #116

Open
RiyaadHossain opened this issue Sep 25, 2022 · 1 comment
Open

How can I make dynamic the favourite button #116

RiyaadHossain opened this issue Sep 25, 2022 · 1 comment

Comments

@RiyaadHossain
Copy link
Owner

I'm having a problem making the favourite button functional.

@khanshorif331
Copy link
Collaborator

khanshorif331 commented Sep 25, 2022

You can create a seperate favourite collection in the database.When user add a product as favourite, you can save that product along with user email and favourie:true....Then it's a easy task.Just fetch the data filtering by email and show it in the frontend.Also you can remove it by doing favourite true/false.

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

No branches or pull requests

2 participants