• 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.

Topics - 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
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
3
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
4
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