storefront-nuxt3-boilerplate
storefront-nuxt3-boilerplate copied to clipboard
feat: wishlist implementation
@rohrig
๐ Linked issue
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSDoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [ x ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
This PR aims to add wishlist functionality. The following elements have been added/changed:
- Navigation header - added wishlist icon next to cart icon.
- Category Page - added button for wishlist in the product cards.
- Product detail page - while clicking the "add to list" button it goes to "remove from wishlist".
- Wishlist page - a list of items that can be added to cart, or discarded from the wishlist via the close button.
- Added My account - Wishlist - same format as for the wishlist page.
PS: we have added multiple slots for the buttons that we use, so as not to interfere with existing functionality. If you find it useful to integrate those buttons to the actual components we can do that also. PS2: For wishlist composable, we have left the getCart() call, as we don't have access to the unified-data-model to create our own data.
Please let us know what thoughts you have and how we can improve this contribution.
๐ Checklist
- [ ] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.