Wish List (DRAFT)
Note: This feature is introduced with version 1.4 of the Spartacus libraries.
The Wish List feature lets users save (or bookmark) products for later viewing.
Limitations
Due to technical limitation at the moment it is only possible for a user to have a single wish list. In addition the each wish list is tied to a user therefore it is not possbile to share it. Finally, for the time being it is not possible to add an out of stock product to the wish list.
Disabling Wish List in Spartacus
The wish list feature is enabled by default in Spartacus.
Since the feature is CMS driven, the only way to disable it is through the CMS. To do so the following changes should be made to the Spartacussampledataaddon or your custom addon:
- Remove the WishListLink
;;WishListLink;Wish List Link;/my-account/wishlist;WishListLink;WishListLink;;loggedInUser
- Remove the link from the SiteLinksSlot
;;SiteLinksSlot;Slot contains some links;true;OrdersLink,WishListLink,StoreFinderLink,ContactUsLink,HelpLink
(RemoveWishListLink
) - Remove the WishListNavNode
;WishListNavNode;;Wish List;MyAccountNavNode;;WishListNavNode
- Remove the WishListNavNodeEntry
;WishListNavNodeEntry;;WishListNavNodeEntry;WishListNavNode;WishListLink;
- Remove all references of
WishListPage
,BodyContentSlot-wishList
,WishListComponent
andAddToWishListComponent
These steps can also be done in Backoffice.