Wishlist Feature

Almost every e-commerce store has an option to save products for later. Learn how to build the back-end of the wishlist in this lesson.

A wishlist is an e-commerce feature that allows shoppers to create personalized collections of products that they want to buy in the future and save in their user accounts.

Model

We’ll have one wishlist per user. So the Wishlist entity will have a one-to-one relationship with the user entity.

Each wishlist can have multiple products. So the Wishlist entity will have a many-to-one relationship with the product ...