• Welcome to KonaKart Community Forum. Please login or sign up.
 

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 - dexequiel.garcia

1
Hi,

I'm trying to combine product options with price tiers. But when buying any quantity that applies to some price tier of such product, the value of the purchase doesn't seem correct. Only the price tier's discount is applied, but the product option value prefix is not added/subtracted at all.

Is this supposed to work like this? Is it a bug? Is it possible to combine them?

Thanks in advance
2
Thank you!
3
Hi Guys,

Is there any way to install KonaKart creating the tables into the database but not loading it with test data? I'm running the silent mode installation. If I add the parameter "-DLoadDB 0" the database remains empty after the installation and if I set "'DLoadDB 1" it creates the tables but populates them with test data. Of course I can truncate the tables I need to be empty but if there is a way to be sure that no related tables are left with inconsistent data, much better.

Thanks
4
Ryan, thanks for answering again,

I did, actually it's the first option I tried, but it didn't work. If I print the order through the console after executing order = engine.getOrderTotals(order, languageId);, it prints this:

OrderTotal = OrderTotal:
id        = 0
orderId   = 0
title     = Sub-Total:
text      = $80.00
value     = 80.0000
- Attachments and other options
Notify me of replies.
sortOrder = 1
className = ot_subtotal
custom1   = null
custom2   = null
custom3   = null

OrderTotal = OrderTotal:
id        = 0
orderId   = 0
title     = Flat Rate (Shipping):
text      = $5.00
value     = 5.00
sortOrder = 2
className = ot_shipping
custom1   = null
custom2   = null
custom3   = null

OrderTotal = OrderTotal:
id        = 0
orderId   = 0
title     = Total:
text      = <b>$85.00</b>
value     = 85.0000
sortOrder = 40
className = ot_total
custom1   = null
custom2   = null
custom3   = null


whereas an equivalent order in the front app looks like the image attached.

Thanks again
5
Thanks, Ryan, for so fast answer!

Whether using individual managers or just the engine was one of my doubts.
I still have one more question... Let us suppose I create an order with

                BasketIf basket = new Basket();
basket.setProduct(productIf);
basket.setProductId(productId);
basket.setQuantity(4);

engine.addToBasket(sessionId, customerId, basket);

BasketIf[] items = engine.getBasketItemsPerCustomer(sessionId,
customerId, languageId);

OrderIf order = engine.createOrder(sessionId, items, languageId);

the object order still does not have the details about the discount. Let's guess we need to save the order to make the discount available (Sounds silly but please let me know if there is any extra requirement to generate the discount and/or OrderTotal lines)

int orderId = engine.saveOrder(sessionId, order, languageId);

Still nothing. Let's now get the order details from the database (it should come with all the corresponding embedded objects it is related to)

order = engine.getOrder(sessionId, orderId, languageId);

If I try to print the order through the system console, nothing is printed related to orderTotals or discounts applied.

So my question is: should I do some extra call to generate the discount from a promotion that already exists and is related to the product with id = 1 (see hardcoded data above) and applies to all the customers (works good in the admin app)?

Thanks again!
6
Hello guys,

We are using a custom portlet that invokes the Java API to interact with KonaKart application. Our objective, for now, is learning how to use the API and test how some features work through it.

One of the tests we are doing consists of generating an order whose set of products applies for a promotion, for instance, "buy X get Y". In the front store application, this works as expected: if the product A has a "buy 3 get 4" promotion, when adding 4 instances of product A to the cart, an order total line is generated in which you get a discount for one of the 4 instances of the product. However, when coding against the API we can't figure out how to achieve this. The promotion is already created and linked to Product A, and the product is already added to the basket with quantity = 4. This is what we have so far:
               

int productId = 1; // HARDCODED
int customerId = 2; // HARDCODED
int languageId = 1; // HARDCODED
EngineConfig engineConfig = new EngineConfig();
KKEngIf engine = new KKEng(engineConfig);
String sessionId = engine.login("admin@konakart.com", "princess");
ProductIf productIf = engine.getProduct(sessionId, productId,
         languageId);
engine.removeBasketItemsPerCustomer(sessionId, customerId);
BasketIf basket = new Basket();
basket.setProduct(productIf);
basket.setProductId(productId);
basket.setQuantity(4);
BasketMgr basketMgr = new BasketMgr(engine);
basketMgr.addToBasket(sessionId, customerId, basket);
BasketIf[] baskets = basketMgr.getBasketItemsPerCustomer(sessionId,
         customerId, languageId);
OrderMgr orderMgr = new OrderMgr(engine);
Order order = orderMgr.createOrder(sessionId, baskets, languageId);
OrderTotalMgr orderTotalMgr = new OrderTotalMgr(engine);
order = orderTotalMgr.getOrderTotals(order, languageId);
OrderTotalIf[] orderTotals = order.getOrderTotals();
System.out.println("TOTALS: ");
for (int i = 0; i < orderTotals.length; i++) {
        System.out.println(orderTotals[i]);
   System.out.println("Promotions: ");
   System.out.println(orderTotals.getPromotions());
}


This code, as a result, prints the items in the basket but no promotions at all.
Our question is: what method in what object (BasketMgr, OrderMgr, OrderTotalMgr) should return the discount? We haven't fount a method that shows the discount either in BasketMgr or in OrderMgr or in OrderTotalMgr and we haven't found any tutorials that explains how to manipulate products, carts or orders.
As per KK docs (http://www.konakart.com/docs/PromotionsForProducts.html) this should be in the OrderTotal module but we haven't found such object containing the expected method in there either.

We would know how this should work and, furthermore, if there are more narrowed walkthrough tutorials or documentation on how to manipulate KK objects
Thanks in advance for your answer
Regards
7
Hey Guys,

We are developing a site in Liferay to sell wines and are deciding what eCommerce tool to use . We can't afford the Enterprise Edition but we need (among other stuff) to have custom attributes for our products. For example, for a wine we need to set one or more varietals, sugar%, alcohol%, bottle size, sealing type, packaging type, etc...
Is it possible to customize the engine and develop a "custom attributes" module by ourselves?

Other possibility we thought of is having a separate parallel database in which we save all the information for a product that KonaKart does not support. There would be a one-to-one relationship between both konakart and our own databases

Any thoughts or ideas?

Thanks in advance