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

Topics - HappyHippo

1
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.
2
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!
3
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.
4
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.
5
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.
6
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!
7
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.




8
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!
9
Hi!
I have added custom values in order_products's custom1,custom2 fields at the time of order placement. Now i want to update those fields on some events. How would i do that?

OrderUpdateIf updateOrder = new OrderUpdate();
updateOrder.setUpdatedById(order.getCustomerId());
order.setCustom1("XYZ");
kkEng.getOrderMgr().saveOrder(false, null);

doesn't seems to work to update even order tables's custom fields.

Thanks a lot.
10
Hi Guys!,
I wanted to show product description on the home page's New Arrivals and Featured Products so i made a little change in ProdTileTag.java and added a div for product description below price div. But when i call prod.getDescription() it returns null value. Product description is visible on product detail page it means description is available for the product.

Test: I tested with prod.getManufacturerName() and it works fine; i get manufacturer name string. I tested with a custom value too and it's working fine.

What is the thing am i missing? or is it a bug?


Warm Regards.
11
I made an eclipse project from make_eclipse_project ant target. My default local is en_GB.
When i add or change new property in Messages.properties file e.g. mycourses.products.body.title=xyz the store front shoes the key(mycourses.products.body.title) not the value(xyz).  The same way if i change a property new.products.body.title=Very New Arrivals; it does not reflect on store front. I have restarted the server but no effect.

I also created new Messages_gb.properties file but of no use. konakart doesn't detect the changes.

Please help!