• Welcome to KonaKart Community Forum. Please login or sign up.
 
October 09, 2024, 04:49:23 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

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

AdminPromotion promotion = new AdminPromotion();
promotion.setName(getName());
promotion.setActive(true);
promotion.setOrderTotalCode("ot_total_discount");

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.
3
Hi!,
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!
4
in Context.xml have given <Context sessionCookiePath="/" sessionCookieDomain=".mydomain.com" /> but no use. 

Any idea how to retain session?

Thanks.
5
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

Thanks!
6
Hi,
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.

konakart.session.durationMinutes=40
konakart.session.updateThresholdMinutes=30

Thanks a lot.
7
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.
8
Guys; any help will be greatly appreciated.... :)
9
Hi!

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?

<servlet>
      <servlet-name>KonaKart_JSON_Servlet</servlet-name>
      <servlet-class>
         my.customized.json.JSONServer
      </servlet-class>
      <init-param>
         <param-name>jsonEnabled</param-name>
         <param-value>true</param-value>
      </init-param>
      <init-param>
         <param-name>includedInterfaces</param-name>
         <param-value></param-value>
      </init-param>
      <init-param>
         <param-name>excludedInterfaces</param-name>
         <param-value></param-value>
      </init-param>
      <load-on-startup>30</load-on-startup>
   </servlet>
        <servlet-mapping>
      <servlet-name>KonaKart_JSON_Servlet</servlet-name>
      <url-pattern>/konakartjson</url-pattern>
   </servlet-mapping>


Please Help!

Thank you.
10
Got it  :)

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

Sometimes we should look deeply  :o

11
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!
12
Sorry for late reply.

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

Many thanks.

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




14
Got it  :)

Thank you Brian!
15
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();
options.setTemplateName("custom-template");
options.setCountryCode("en");
options.setCustomAttrs(nm);
kkEng.getEng().sendTemplateEmailToCustomer1(70, "Test -- Alert from Action", options); 

How to access NameValue object nm1 values  in velocity template?

Thank you!