Page 1 of 1

Multiple Wishlists?

Posted: Thu Feb 14, 2008 5:25 am
by DFresh
Hello All,

Has anyone been able to create multiple wish lists for a single customer? Is this possible with AC 7? Any thoughts?

Thanks!

Posted: Thu Feb 14, 2008 11:09 am
by 500lbdev
The Programming API and database schema are both set up to support multiple wishlists per user. However, I don't think that the out-of-the-box ConLib controls support this. The MyWishList page displays the authenticated user's primary wishlist:

Code: Select all

Wishlist list = Token.Instance.User.PrimaryWishlist
Here is an example of how to instantiate a new wishlist, add a product to it and save it for the current user.

Code: Select all

Wishlist list = new Wishlist();
BasketItem basketItem1 = BasketItemDataSource.CreateForProduct(productId, quantity);
list.Items.Add(basketItem1);
list.SaveForUser(Token.Instance.UserId);
You can get a handle on the user's wishlist collection by using the following:

Code: Select all

WishlistCollection lists = Token.Instance.User.Wishlists
These are just some quick samples of how to perform the desired funcationality you're wanting. If you know how to use the API, you could make this work for your store. I hope this helps.

Re: Multiple Wishlists?

Posted: Thu Oct 09, 2008 6:40 am
by William_firefold
How would I go about implementing this?
Would I need to make a page to display all wishlists, maybe some buttons for clearing and editing them?
In what context could I do it?

We would like to have customers be able to save wishlists based on each job they are doing, and be able to return and order from a particular wishlist, or have someone else order from it for them.
What would I need to do?