A question about using kits

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
John Gaby
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Mar 13, 2009 10:34 am

A question about using kits

Post by John Gaby » Wed May 13, 2009 4:01 pm

We have a kit which consists of a base item plus some optional components. However, I need to be able to add multiple of a certain component. It does not look like the UI supports this, but I am not using it in this case, so that is not a problem. My question is, can I add a kit to the basket and specify a count for one of the components.

I am using the BasketItemDataSource.CreateForProduct(productId, quantity, kitProductIds) to create the basket item. I have tried adding the kitProductId in the list twice (hoping that it would give me 2 of that component), but that doesn't work. Is there a way to do this?

Thanks

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: A question about using kits

Post by compunerdy » Wed May 13, 2009 4:39 pm

The UI supports it..

John Gaby
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Mar 13, 2009 10:34 am

Re: A question about using kits

Post by John Gaby » Wed May 13, 2009 4:52 pm

Really, I was not able to find it. I know that when I create the kit item, I can specify a count, but that is not what I want. I want to be able to specify a count when the item is added to the basket, and I would like it to be different each time it is added.

Can you point me to where I can do that?

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: A question about using kits

Post by compunerdy » Wed May 13, 2009 5:14 pm

HUH? please give a example of what you want.

John Gaby
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Mar 13, 2009 10:34 am

Re: A question about using kits

Post by John Gaby » Wed May 13, 2009 5:36 pm

Suppose I have a kit that consists of pencils. Let's say I have red pencils, blue pencils and green pencils. Now what I want is for the user to specify that he wants the pencil kit, and that he wants 5 red pencils, 3 blue pencils and 7 green pencils.

Does this make sense?

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: A question about using kits

Post by compunerdy » Wed May 13, 2009 8:12 pm

Ok..that will not work via kits then as far as I know.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: A question about using kits

Post by mazhar » Thu May 14, 2009 6:49 am

Yes currently its not possible to change kit component quantity when placing order.

User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Re: A question about using kits

Post by heinscott » Thu May 14, 2009 6:57 am

I think the easiest way to accomplish what you are looking for would be to make a custom Category level page, with all the products you would like to include put into a Category that uses this page for display. Then, you could show all the products in that category with a quantity control, and add to the cart as separate items.
We do something similar on our site for Pool Kits that have differing configurations each time.

Scott

John Gaby
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Mar 13, 2009 10:34 am

Re: A question about using kits

Post by John Gaby » Thu May 14, 2009 7:07 am

Actually, I have already thought about that. However, once the items are added to the cart, I want them to appear as a single unit (much like it does for a kit). The user would be able to delete the whole kit, or adjust the quantity of the whole kit, but not the individual pieces. I tried a number of things, but could not find a way to make that happen.

In particular, I was interested in what the 'ParentItemId' property of the BasketItem class was used for. It seemed like it might be a way to create an item that was a 'child' of some other item. But, alas, I was not able to use it in any meaningful way.

Is there a way to do this?

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: A question about using kits

Post by compunerdy » Thu May 14, 2009 8:42 am

This was the way aspdotnet storefront did kits..which did not make any sense to me. It should really be called grouping. It worked exactly as you are describing.

John Gaby
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Mar 13, 2009 10:34 am

Re: A question about using kits

Post by John Gaby » Thu May 14, 2009 8:48 am

Are you saying that IS possible to use the ParentItemId property to group items when adding them to the basket? If so, could you explain how to do this. As I said, I tried a number of things, without success.

Post Reply