• Welcome to KonaKart Community Forum. Please login or sign up.
December 03, 2023, 08:13:34 pm

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 - HappyHippo

Got it. Thank you very much!
I am creating promotion using AdminPromotion and setting setOrderTotalCode("ot_total_discount");

AdminPromotion promotion = new AdminPromotion();

On admin contol panel i can see the promotion created with correct promotion type but "Minimum Order Value", "Min total quantity" , "Min quantity for a product", "Discount Type" etc. field of Total Discount module are not set. 

How can i give these value at the time of creating promotion and attach these to the promotion through API?

Thank you very much in advance.
Currently a bundle product can not be inside another bundle product...it gives  me error "Recursion was detected. Ensure that a bundle product does not include itself as one of the bundled products ".

Can this problem be solved by giving CUSTOM_RELATIONSHIP_1 to the products.
In admin panel; how do we set custom relationships(CUSTOM_RELATIONSHIP_1,CUSTOM_RELATIONSHIP_2 etc.) to products?
In admin panel; how to add our own products_type? Where does it store in database?
In which table do you store relation_type that is in products_to_products table?

Thank you very much!
in Context.xml have given <Context sessionCookiePath="/" sessionCookieDomain=".mydomain.com" /> but no use. 

Any idea how to retain session?

Here are konakart Initialisation Configuration:

KonaKart Store-Front Application started on Apache Tomcat/8.0.30
KKInitialisation Configuration:
    initialised              = true
    defaultStoreId           = store1
    EngineMode               = 2
    Customers Shared         = true
    Products Shared          = false
    Categories Shared        = false
    KKAdminIfImplClassName   = com.konakartadmin.bl.KKAdmin
    KKAdminPropertiesFile    = C:/Konakart/webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties
    KKEngIfImplClassName     = com.konakart.app.KKEng

I am using konakart v8.3. After switching stores, for example  from store1 to store2 the session invalidates and previous logged in user need to log in again at checkout time. What is the best way to keep the session alive at the time of switching stores?

Below are the settings in konakart.properties.


Thanks a lot.
Hi experts,
I want to send order confirmation email and other template emails to user but on her secondary email address not the primary one. I have stored secondary email to customer's custom field.

sendTemplateEmailToCustomer1  and  sendOrderConfirmationEmail1  uses customerId and session id respectively. I believe these methods use "customers_email_address" field to send email. 

Is there any way i could send template email to customer's custom email address? (Can not use BCC as in EmailOptionIf , Has to be 'TO' address)

Thanks a lot.
Guys; any help will be greatly appreciated.... :)

When i call http://localhost:8780/konakart/konakartjson I get the error  WARN <?:doGet:?>Invalid JSONP passed to server
Could you please tell me how to call kk Json request from any server,website etc? I followed the example provided in documentation but it doesn't work.

Also; In my web.xml i changed the servlet class to my own and override doGet();  inside this method i used the example code provided in java_api_examples folder; but when i call  http://localhost:8080/konakart/konakartjson i have to manully convert the result to json using JSONObject library and use PrintWriter for output.
Is this the correct way to call kk json engine? Do i need to convert objects to json manully?


Please Help!

Thank you.
Got it  :)

kk server engine has getProduct(java.lang.String sessionId, int productId, int languageId) method .

Sometimes we should look deeply  :o

Hi guys, why am i getting null Product object from Order Products?

com.konakart.appif.OrderIf order = orderMgr.getCurrentOrders();
for (int j = 0; j < order.getOrderProducts().length; j++){
com.konakart.appif.OrderProductIf orderProd = order.getOrderProducts()[j];
com.konakart.appif.ProductIf prod =  orderProd.getProduct();

I am getting values for order and orderProd but "prod" is null all the time.

Please help!
Sorry for late reply.

Yes, problem was in my code. I had forgot to add gson library in my classpath.

Many thanks.

Hi Guys,
I have created a quartz scheduler job.   It runs perfectly fine; but as soon as i call third party API call, i get InvocationTargetException - null  and Unknown Source  error. 
For example this simple Stripe code retrieves customer info. It works fine in konakart front end but not in konakart quartz scheduler.

com.stripe.Stripe.apiKey = "sk_XXXXXXXXXXXXXXXX";
com.stripe.model.Customer cu  = com.stripe.model.Customer.retrieve("cus_YYYYYYYYYYY");

I get following error:
WARN<?:execute:?> Problem executing getStripeCustomerInfo on com.konakartadmin.bl.StripePaymentsBatchMgr.
Exception: exception message = <java.lang.reflect.InvocationTargetException> - null
Exception stack trace=
at sun.reflect.NativeMethodAccessorImpl.invoke0<NativeMethod>
at sun.reflect.NativeMethodAccessorImpl.invoke0<NativeMethodAccessorImpl.java:57>
at sun.reflect.DelegatingMethodAccessorImpl.invoke<DelegatingMethodAccessorImpl.java:43>
at java.lang.reflect.Method.invoke<Method.java:606>
at com.konakartadmin.bl.AdminExecuteMgr.execute<Unknown Source>
at com.konakartadmin.bl.KKAdmin.execute<Unknown Source>
at com.konakartadmin.bl.ExecuteBatchEE.execute<Unknown Source>
at org.quartz.core.JobRunShell.run<JobRunShell.java:202>
at org.quartz.core.simpl.SimpleThreadPool$WorkerThread.run<SimpleThreadPool.java:573>
Exception Cause = <br />
at com.konakartadmin.bl.StripePaymentsBatchMgr.getStripeCustomerInfo<Unknown Source>

I have been trying to solve it for two days but no luck :(

What am i missing here? Please help.

Got it  :)

Thank you Brian!
Hello Guys;
I have passed NameValue object to EmailOptionsIf but i don't know how to get values in velocity template...please help

NameValue[] nm= new NameValue[1];
nm[0] = new NameValue("nm1", "Value1");

EmailOptionsIf options = new EmailOptions();
kkEng.getEng().sendTemplateEmailToCustomer1(70, "Test -- Alert from Action", options); 

How to access NameValue object nm1 values  in velocity template?

Thank you!