• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 07, 2025, 05:18:13 am

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - rgayle

1
Programming of KonaKart / Re: Product bundles
April 16, 2009, 02:40:19 pm
I've inserted records into the Products_to_products table, and set the relationshipt type to 5.  In the product table, I've set the product type to 3 for the product that is referenced by the id_from field.

Later, if I use the admin tool, to edit the bundle, it never lists the items.  Is there another field/table that is being set when the Admin is used to construct the bundle?
2
Thanks, I had not put this logic into the other AddtoCart java class.  (AddToCartSubmit) something like that.  Also, If I'd read the cart entries description of the product, I would have realized that it was not one of the ingredients, but the actual recipe product.

Thanks.
3
the following code supposed to add two items to the shopping cart, but when I'm forwarded to the cart page, there is only one product, the second of the two.

               BasketMgr bm = kkAppEng.getBasketMgr();
               for (ProductIf bundleProd : kkAppEng.getProductMgr().getBundledProducts()) {
                    BasketIf b = new Basket();
                    b.setQuantity(Math.max(bundleProd.getQuantity(),1));
                    b.setProductId(bundleProd.getId());
                    bm.addToBasket(b,true);
                  }

what am I doing wrong?
4
we have a Category that is used for grouping: (ie: SummerTime:) It has several subcats (Meats, juice, etc).  All the products in these categories live in their normal categories/subcats (Home/Meat/beef/, Home/Juice/Canned,etc.

We need to display our store navigation and breadcrumb based on where the user clicked a product from, with the exception of the search page.

In the ShowProductDetailsAction:
seems like it sets the category url param the first category that the item is located in.  Also the built in bread crumb is built based on that premise.

To get around this, I will be passing a param, on the SelectProd.do, named "navCatId". if it is present, I will get the categoryIf object, and pass it to the preparePage method.

Is this the correct approcah?

Thanks.
5
Programming of KonaKart / Product bundles
April 06, 2009, 05:29:28 am
What is the best way to implement recipe, using bundles while still retaining the ablility to have the "you may also like" recommendations feature, that the bundles is currently being used for?

This is what I've done so far, but it's not working out for me.
We have some products that are recipes.  these products are just "wrappers" for real physical products along with some content for the preparation instructions.  We will probably remove the ability to add it to the cart.

I manually loaded the product_to_product table with the id_from being the recipe, and the Id_to being an ingredient product.  I also set the relationship type to '5', and gave the custom1 field a value of 'recipe'.

In the productDetailsbody, the recipe product object returns null for the getProductBundles call.

I then used the Admin to edit this recipe product. The details page then recongnized the bundle, except I could not get the custom1 field from the productBundle entry.