Multiple Wishlists?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
DFresh
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Fri Jan 04, 2008 11:12 am

Multiple Wishlists?

Post by DFresh » Thu Feb 14, 2008 5:25 am

Hello All,

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

Thanks!

500lbdev
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Dec 14, 2007 12:06 pm

Post by 500lbdev » Thu Feb 14, 2008 11:09 am

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.

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Multiple Wishlists?

Post by William_firefold » Thu Oct 09, 2008 6:40 am

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?

Post Reply