KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: GrapeApe on November 19, 2008, 07:58:14 pm

Title: Programmatically adding a Product to a Bundle.
Post by: GrapeApe on November 19, 2008, 07:58:14 pm
Hello KonaKarties,

First off, nice work with KonaKart.  You guys fill a huge, gaping hole in the Java Open Source community (how can we have an open source JVM and almost no open source shopping cart implementations?).  Score another for a community that's "good" at engineering, but blind to practicality.

Anyway, on to my questions:

1)  How do you programmatically add a Product to a Bundle using the admin engine?  I've looked through the sample code, and browsed the Javadocs, but I can't find a way to do this (or I'm just missing it which wouldn't be a huge surprise).

2) Have you considered open sourcing the Admin Application?  There's a lot of great functionality in there and you have to go a good ways down the KonaKart path before you figure out that "woops!  not only is it written in GWT, but the whole thing is closed source!".  Having the sample admin app is nice, but having the source to show how it interacts with your engine would be MUCH better.

Thanks for your help!
Friendly Purple Ape
Title: Re: Programmatically adding a Product to a Bundle.
Post by: julie on November 20, 2008, 08:43:07 am
Quote1)  How do you programmatically add a Product to a Bundle using the admin engine?  I've looked through the sample code, and browsed the Javadocs, but I can't find a way to do this (or I'm just missing it which wouldn't be a huge surprise).


I'm afraid that the Javadoc was missing some information in the 2260 release. Bundled products can be treated like related products so the following methods apply:



The relationType constants are:
Title: Re: Programmatically adding a Product to a Bundle.
Post by: GrapeApe on November 21, 2008, 01:19:30 am
Thank you, Julie!  That's exactly what I needed!

Sincerely,
- Big Purple Gorilla