Better Wishlist
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.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.0-beta10 | Pre-release | Dec 4, 2023 | ||
| 1.0.0-beta9 | Pre-release | Nov 23, 2023 | ||
| 1.0.0-beta8 | Pre-release | Oct 4, 2023 | ||
| 1.0.0-beta7 | Pre-release | Sep 8, 2023 | ||
| 1.0.0-beta6 | Pre-release | Aug 24, 2023 | ||
| 1.0.0-beta5 | Pre-release | Aug 22, 2023 | ||
| 1.0.0-beta4 | Pre-release | Aug 22, 2023 | ||
| 1.0.0-beta3 | Pre-release | Aug 9, 2023 | ||
| 1.0.0-beta2 | Pre-release | May 23, 2023 | ||
| 1.0.0-beta1 | Pre-release | May 10, 2023 |