• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 16, 2024, 06:00:33 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 - PiotrN

1
Aaaah, you're a gentleman and a scholar.

Thanks a lot mate, it works like a charm!
2
Hi Pier39,

Thanks for your answer!

However, neither the beforeSaveOrder(-) nor saveOrder(-) seems to work for me. Those methods bases on Order that is not persisted in the database (first one) or creates one basing on the OrderIf object (second one).
I am trying to update an existing order - not to persist another one.

Regards.
3
Hello,

How can I update an Order object from within the server? I have already persisted an Order and I want programmatic change one if its custom fields.

Order order = ... // I already have the proper Order object
order.setCustom1("myCustomValue");

OrderMgr orderMgr = .... // I have access to OrderMgr or KKEng


What method should I invoke to update the order object?
I don't want to create new order nor to update its status - I just want to update its custom fields.

Thanks in advance,
Regards
4
Hello,

I would like to update product price using Web Services.
I am obtaining a fully populated AdminProduct object but when I invoke the following code:

public boolean updateProductPrice(AdminProduct product, BigDecimal price) {
    try {
        product.setPrice0(price);
        admin.editProduct(sessionId, product);
    } catch (KKAdminException e) {
        e.printStackTrace();
        return false;
    }
    return true;
}


The value is not updated in the database.

Do I need to explicitly invoke some kind of flush to let the correct data be inserted into DB?
5
Thanks a lot Julie!

Yeah, I supposed that it was because of performance reasons but I've searched for some "populateOrders(-)" method and failed to find it :-)

By the way, the method seems to be annotated as deprecated in the interface () but not in the implementation. I guess this could block e.g. Eclipse from showing a warning when using this deprecated method?
6
As a side note, if I use the ID from above code and fetch the order using:

AdminOrder orderForOrderId = konaKartAdmin.getOrderForOrderId(sessionId, adminOrder.getId());

The order is properly populated.

But... why...?
7
Howdy,

I've got some problem when fetching Orders from KKWSAdmin:

KKWSAdmin konaKartAdmin = new KKWSAdmin();
AdminOrder[] ordersCreatedSince = konaKartAdmin.getOrdersCreatedSince(sessionId, since, AdminLanguageMgr.DEFAULT_LANG);


I can iterate over AdminOrders but:

adminOrder.getOrderProducts() returns null
adminOrder.getNumProducts() returns 0

Those values are returned for all orders despite the fact that from KonaKart Admin web console I can see some products for each order.

Any ideas what's going on?

Thanks in advance.
8
Reporting / Reports about sent e-mails
February 14, 2012, 02:42:59 pm
Hi,

Can I use BIRT to generate reports regarding e-mails sent to my customers using the Customers -> Customer Communications section?
The logs are saved in a flat file, so can I somehow use it as an input for BIRT report to visualize e.g. number of e-mails sent, number of wrong e-mail addresses, time of the submission, etc.?

Thanks in advance.

Regards,
Piotr
9
Hi,

Is there a way in KonaKart Engine (or Client) to send an e-mail notification to some arbitrary address to recommend the selected product to that person?

You know, like a "Recommend this product" button next to the product details which would generate an e-mail like this:

"Hey, I think you'll be really interested in *THIS* product.

Check it out.

Piotr".

Thanks in advance for your help.

Cheers!
10
Howdy,

When I checkout my cart the ordered quantities of a products are deducted from the overall shop quantity.

1. Can I deduct the quantity not when the order is accepted, but e.g. when the payment is accepted?

2. If I cancel an order, the quantity is not changed, i.e. the Product A had quantity: 10. I've ordered 5 Product A's. After checkout, the shop quantity is 5. If I cancel the order the quantity is still 5.
Do I need to manually change the quantities? Should I react upon the event when order is changing to "canceled" and execute my own code to "fix" the stock status?

Cheers and thanks in advance.
11
Hi,

If I want to add few custom pages (not related to products, cart, etc.) - e.g. my company's details or some additional, custom pages, does the KonaKart allows me to do it and provides some CMS editor for editing such pages? Or perhaps it's up to me to create such simple CMS or to use some portal system like Liferay?

Thanks in advance.
12
Thanks for the answers.

So, the rationale are very convincing.

Julie, if I'll create an instance of KKEngIf and use it to create one of the manager classes, how would the data be sent to the KonaKart server? Isn't it also protocol independent?

Thanks in advance.

Regards,
Piotr
13
Thanks for the suggestion Ryan. Will surely do so :-)
14
Feel so damn awkward right now...

Thanks Ryan and sorry for such stupid question ;-)
15
Howdy,

I was trying to get access to KK 6 SOAP WS, but when I access this URL: localhost:8780/konakart/services/KKWebServiceEng?wsdl an exception is thrown and the following logs are produced in catalina.out:

QuoteFeb 8, 2012 3:06:00 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8780"]
Feb 8, 2012 3:06:00 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8783"]
Feb 8, 2012 3:06:00 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8789"]
Feb 8, 2012 3:06:00 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6090 ms
08-Feb 15:06:04 FATAL (InternalException.java:<init>:88) Exception:
java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "getConfigurationValue" (1 args)
   at org.apache.axis.InternalException.<init>(InternalException.java:71)
   at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
   at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
   at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:286)
   at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
   at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
   at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
   at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
   at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
   at org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:50)
   at org.apache.axis.handlers.http.URLMapper.generateWSDL(URLMapper.java:58)
   at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
   at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:446)
   at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226)
   at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)


When I run the KK 5.5.0 it works smoothly and the WSDL is properly generated. Any idea what might be the problem?

Thanks in advance!