This project is not covered by Drupal’s security advisory policy.

This module provides wishlist functionality for your project.

Features:

- Multiple wishlists per user
- Anonymous wishlists
- Wishlist any entity type, like nodes and commerce products
- Multiple entity types per wishlist
- Optional JS widget and rest API.

Installation:

- Enable the module like any other drupal module.
- Create a new wishlist type under /admin/structure/better_wishlist_type
- On your new wishlist type, edit the field settings for "Wishlisted entity" and enable all entity types you want to wishlist

Technical information

Wishlisting an entity works via entity reference. Drupal doesn't allow referencing multiple entity types on the same entity reference field, so this module uses an "wishlist item" entity, which references the wishlisted entity and gets referenced by the wishlist entity. For each referenceable entity type, a wishlist item bundle gets created automatically. API functions like

$wishlist->addToWishlist($product_entity);
$wishlist->removeFromWishlist($other_product_entity);

are provided, so you don't have to handle any entity creation and referencing by yourself.

Project information

Releases