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

[BUG] 🐞 Bug Report: #978

Open
5 tasks done
aanushkaguptaa opened this issue Oct 26, 2024 · 4 comments
Open
5 tasks done

[BUG] 🐞 Bug Report: #978

aanushkaguptaa opened this issue Oct 26, 2024 · 4 comments

Comments

@aanushkaguptaa
Copy link

Description

Summary: The My Orders, Wish List, and Cart options should be accessible only after a user has logged in. Currently, these options are visible to all users, including those who are not logged in, which could lead to confusion. Implementing authentication/authorization for these options and placing them under a dropdown menu after login can create a more seamless experience.

  1. Authentication & Authorization: The My Orders, Wish List, and Cart options should only be visible to logged-in users. These options could be placed in a dropdown menu under the user profile for better navigation and user experience.

Expected Behavior:

  • When logged out, users should not see the My Orders, Wish List, and Cart options.
  • After logging in, these options should be accessible and displayed in a dropdown under the profile menu.

Actual Behavior:

  • The options for My Orders, Wish List, and Cart are visible to all users, regardless of their login status.

Proposed Solution:
1. Implement authentication/authorization checks for these sections.

Screenshots

image

Any additional information?

No response

What browser are you seeing the problem on?

Chrome

Checklist

  • I have checked the existing issues
  • I have read the Contributing Guidelines
  • I'm a GSSoC'24-Extd contributor
  • I'm a Hacktoberfest'24 contributor
  • I am willing to work on this issue (optional)
@aanushkaguptaa aanushkaguptaa added the bug Something isn't working label Oct 26, 2024
Copy link

Hello aanushkaguptaa! Thanks for opening an issue in Ezyshop! 🚀

  • We'll get back to you as soon as possible.

  • Hope you star our Repo.

  • Join our Discord Server to collaborate and discuss further.

@mdazfar2
Copy link
Owner

Hey @aanushkaguptaa, that's an amazing idea. Actually, don't hide these options; just add an alert message so that when a user clicks on My order, wishlist, or my cart without logging in, a popup alert message will appear saying, --> Please login as a Customer first

When a user logs in as a seller, the dashboard will be fully changed, and that's already implemented. You only need to work on the customer login. When a customer logs in, they should be able to see all three options. Without logging in, a popup will appear. I hope you understand what I mean. Please let me know if you can do this.

Thank you!

@aanushkaguptaa
Copy link
Author

Hi @mdazfar2 ,

Thank you for the feedback! I now have a clear understanding of the changes you’d like. Instead of hiding the My Orders, Wish List, and Cart options, I’ll implement a popup alert prompting users to log in when they attempt to access these sections without being logged in as a customer. I'll make sure that all three options will become accessible once the user is logged in, and will work only on the customer login flow as the seller dashboard is already handled.

If everything looks good, could you please accept my issue request and assign me to this task? It would be great if you could also add the relevant labels. Looking forward to getting started!

Thanks again!

@mdazfar2
Copy link
Owner

@aanushkaguptaa You are going to be assigned.

Thank you!

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

2 participants