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

Issue #56: FEATURE: Implement "Add to Cart" Functionality for Existing Cart Option solved #116

Closed
wants to merge 9 commits into from

Conversation

Anwishta
Copy link

@Anwishta Anwishta commented Oct 4, 2024

Issue #56 : IFEATURE: Implement "Add to Cart" Functionality for Existing Cart Option solved

Type of PR

  • Add X in the box to specify the improvement type.
  • Bug fix
  • Feature enhancement
  • Documentation update
  • Other (specify): ___________

Description

This pull request aims to add a new feature "Cart" to the existing code base. The Cart functionality allows users to add items to their cart, enhancing the user experience by enabling them to view and manage their selected items before checkout.

Screenshots / Videos (if applicable)

Before:

  • The "Add to Cart" and "Buy now" button did not show any cart functionality, leaving users without a clear way to manage their selected items. A checkout button has also been added.

After:

  • The "Add to Cart" and "Buy now" button now triggers a new page that displays the number of items added. Users can click the cart icon to view the contents, remove items making the shopping experience more intuitive and user-friendly.

Screenshot:

Screenshot 2024-10-06 162843

Checklist

  • Add X in the box to specify.
  • I have performed a self-review of my code.
  • I have tested the changes thoroughly before submitting this pull request.
  • I have provided relevant issue numbers, screenshots, and videos after making the changes.
  • I have commented my code, particularly in hard-to-understand areas.

Additional Context

The implementation of the Cart feature required integrating JavaScript functions to manage the cart state and dynamically update the UI. I faced challenges with ensuring that the cart updates correctly when items are added or removed, but these were resolved by utilizing local storage for persistence and clear function definitions for adding, removing, and displaying items. Moreover I had to integrate code within the existing code for triggering the new page without changing its styling.

Thank you for reviewing my pull request!

Copy link

vercel bot commented Oct 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
collect-your-gaming-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 4:49am

@AnitSarkar123
Copy link
Collaborator

@Anwishta can you give a checkout button bellow the total price and also when someone click on the buy now button then it also add in the cart

@Anwishta
Copy link
Author

Anwishta commented Oct 5, 2024

ok

@swaraj-das
Copy link
Owner

@Anwishta Merge conflicts. Please resolve it.

@Anwishta
Copy link
Author

Anwishta commented Oct 8, 2024

@swaraj-das I've resolved the merge conflicts. Please check it

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

Successfully merging this pull request may close these issues.

3 participants