Loading...
Area: Episerver B2B Commerce

Wishlist pipelines

Recommended reading 

CreateGetWishListLineResults

Order Pipe Description
100 CreateGetWishListLineResults

Call GetProductCollection product service with EnforceRestrictions set to false (so restricted products that were added while signed in can be viewed in the wishlist even while signed out.) and other parameters.

Iterate over WishListProducts parameter and fill GetWishListLineResults property with GetWishListLineResult objects created during iteration. Note IsVisible property is being set only when GetHiddenProducts parameter is true.

CreateGetWishListResult

Order Pipe Description
100 CreateGetWishListResult

If ShareOption equals WishList.ShareOptionType.IndividualUsers, then get count of WishListShares

If ShareOption equals WishList.ShareOptionType.AllCustomerUsers, then get customer userprofiles number minus current user

Initiate GetWishListResult properties using CreateGetWishListResultParameter parameter. The most non trivial property is IsSharedList what is checking that ShareOption is WishList.ShareOptionType.Static or ShareOption is not equal to WishList.ShareOptionType.Private and user is not owner.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Dec 11, 2020

Recommended reading