• Welcome to KonaKart Community Forum. Please login or sign up.
 
May 01, 2025, 01:34:24 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 - ronald

1
I just saw the "getTempCustomerId()" API to get the negative ID.. So I guess I will use that ID for "addToBasket" then..
2
Hi,

I am implementing code to add product to the basket using KKEng. I am confused by the Java doc on how to add items to the basket when the user is not logged in. According to the doc for the function "addToBasket", when there is a valid session Id, which means user is registered and also logged in, then customer id will be ignored, which makes sense. But if the user has not logged in, how should I still allow the user to add items to the basket? I am also confused by the doc when it says that make sure customer Id is negative if the user is not registered. Where can I get that negative customer ID? I tried to use "getDefaultCustomer()" to create a dummy customer, but when I call the "addToBasket" it throws exception saying that the default customer is registered and therefore a valid session ID is required!??  So what is the purpose of "getDefaultCustomer" if it is not for this situation??

My next question is if the above is solved, how can I later transferred the items in the basket to the customer once he/she is logged in (and may be asked for registering first..)??

thx!

Ronald
3
Programming of KonaKart / registerCustomer and zone
June 30, 2008, 02:12:23 am
hi,

I am trying to register a customer using the KKeng registerCustomer function. I create a new com.konakart.app.CustomerRegistration object and fill in pretty much all the fields (except those custom fields which I don't need). And when I make the call:

kkEng.registerCustomer(customerRegistration);

I get an exception complain zone is null:

com.konakart.app.KKException: com.konakart.app.KKInvalidZoneException: The zone null is invalid for a country with id = 223

However, the CustomerRegistration class doesn't have zone attribute, so how can I provide that??

thx!

Ronald
4
Thanks for your clarification.

So is it true that KKEngIf is the ONLY interface that we need to use? Is there any other interfaces that we need to know?

Also, will there be cases that you have to perform certain operations before others?

thx.
Ronald
5
Hi,

I am trying to customize the Konakart using another web framework instead of Strut. I only include these libraries:

konakart.jar
konakart_app.jar
konakart_torque-3.3-RC1.jar
konakart_utils.jar
konakart_village-2.0

I think compilation is ok, but when I run my web app, I get this exception:
java.lang.NoClassDefFoundError: com/konakart/actions/BaseAction
   at com.konakart.al.KKAppEng.<init>(Unknown Source)

BaseAction is Strut specific, and when I just open the KKAppEng binary file, I see BaseAction appears in the byte code of that class (although I have no idea why is there and whether it is being used or not). Is it true that KKAppEng depends on BaseAction some how? It shouldn't, correct?

thx!

Ronald