Hello All,
Has anyone been able to create multiple wish lists for a single customer? Is this possible with AC 7? Any thoughts?
Thanks!
Multiple Wishlists?
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:
Here is an example of how to instantiate a new wishlist, add a product to it and save it for the current user.
You can get a handle on the user's wishlist collection by using the following:
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.
Code: Select all
Wishlist list = Token.Instance.User.PrimaryWishlist
Code: Select all
Wishlist list = new Wishlist();
BasketItem basketItem1 = BasketItemDataSource.CreateForProduct(productId, quantity);
list.Items.Add(basketItem1);
list.SaveForUser(Token.Instance.UserId);
Code: Select all
WishlistCollection lists = Token.Instance.User.Wishlists
- William_firefold
- Commander (CMDR)
- Posts: 186
- Joined: Fri Aug 01, 2008 8:38 am
Re: Multiple Wishlists?
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?
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?