• Welcome to KonaKart Community Forum. Please login or sign up.
 
November 22, 2024, 12:03:39 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 - giacomokk

1
Programming of KonaKart / Set Order Currency
October 10, 2022, 12:40:16 pm
Hi, i'm using konakart v8.5.0.0.

With java api is there a way to create an order setting its currency code?

I'm trying with the CreateOrderOptions class but in my kk version i can't find the 'setCurrencyCode' method.

Can you help me?

Thanks.
Giacomo
2
Hi, is there a way for editing an order payment details after changing the order payment method?

Regards,
G
3
Programming of KonaKart / Error with tax rates
February 23, 2022, 06:37:44 pm
Hi, i'm using the community version 8.5.0 and i've an error calculating the tax order total. I see that all the tax rates created are applied to the order total even if i did not defined any tax area mapping record.

Can you help me?
4
Programming of KonaKart / Re: Slow java api
January 25, 2019, 01:33:35 pm
Hi Brian,

and what is the code if i want to swap to pojos or json?

Thanks.
G
5
Programming of KonaKart / Slow java api
January 25, 2019, 10:41:10 am
Hi, konakart java api calls are really slow.
I instantiate kkAdminEng and kkEng in this way:

KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
KKWSAdminIf adminEng = new KKWSAdminIfServiceLocator().getKKWSAdmin();

Is that correct? If not, can it affect the response speed?
Thanks.
Giacomo
6
Hi Julie, do you have news?

Thanks.

G
7
Hi, i'm trying to get all orders for the logged in customer using kk web services in this way:

KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
eng.getOrdersPerCustomer(<params>);

it works, but i see that is very slow for acquiring a list of 50 orders, it takes about ten seconds!

I'm using konakart 8.5.0.0.

Can you help me?

Thanks.

Giacomo



8
Hi, i'm triyng to search an order by "customer name" using the "AdminOrderSearch" class setting a value for the "customerName" property.

I see that it works only if i search with the complete customer name: firstname + lastname (e.g. "Mario Rossi"), and it does not work if i search for only a partial lastname (e.g. "Ross").

Printing the konakart mysql queries log i see that konakart executes a query with the equal "=" symbol (e.g. "select * from orders where customer_name = 'Ross' ") and not with "like" expression (e.g. "select * from orders where customer_name like '%Ross%' ").

How can i solve this issue?

Regards,

G

9
The solution is to set this fields as null:

aas.setZoneId(-1);
                  
aas.setProductId(-1);
                  
aas.setManufacturerId(-1);
                  
aas.setCountryId(-1);
                  
aas.setId(-1);

Now i can get the addresses.
I think that is better if someone add this part to konakart documentation  ;)

G
10
Hi, yes i've tried in this way:

AdminAddressSearch aas = new AdminAddressSearch();
                     
aas.setCustomerId(customer.getId());
                                          
AdminAddressSearchResult aasResult = adminEng.getAddresses(sessionId, aas, 0, 100);
                     
AdminAddress[] addresses = aasResult.getAddresses();

but the result is the same: empty array.

How can i solve the problem?
11
Hi, i'm trying to get all defined addresses for a customer using the AdminCustomer class method "getAddresses". but it always return "null". I'm sure that the customer has more than one addresses stored in the db table address_book.

Can you help me?

Regards,

G

12
Ok, Thankyou. It works!

But setting up sync mail,  can it affects app performances?
13
I've tried to set the "expressionId" to "-1" in the AdminCustomerSearch object;

acs.setExpressionId(-1);

it solves the exception, but the email is not sent.

How can i exclude the expressions control in this method?
14
Hi, i'm trying to send emails to a specific customer using a vm template.

This is what i do using the soap API in my java class:


KKWSAdminIf adminEng;
adminEng = new KKWSAdminIfServiceLocator().getKKWSAdmin();
String sessionId = adminEng.login(<usr>,<psw>);

AdminCustomerSearch acs = new AdminCustomerSearch();
acs.setId(customerId);
adminEng.sendTemplateEmailToCustomers1(sessionId, acs, "EmailTemplateName", "test message", null, null, null, null, 1);


but i'm retrieving this error on tomcat logs from the web service:

KKAdmin threw an exception:
java.lang.NullPointerException
   at com.konakartadmin.bl.AdminCustomerMgr.sendTemplateEmailToCustomersWithOptions(Unknown Source)
   at com.konakartadmin.bl.AdminCustomerMgr.sendTemplateEmailToCustomers(Unknown Source)
   at com.konakartadmin.bl.KKAdmin.sendTemplateEmailToCustomers1(Unknown Source)
   at com.konakartadmin.ws.KKWSAdminSoapBindingImpl.sendTemplateEmailToCustomers1(Unknown Source)
   at com.konakartadmin.ws.KKWSAdminSoapBindingSkeleton.sendTemplateEmailToCustomers1(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
   at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
   at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
   at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)


Can you help me?

Thanks.

Giacomo


15
How can i know which algorithm konakart uses for encrypting psw?