• Welcome to KonaKart Community Forum. Please login or sign up.
 
May 03, 2024, 06:25:29 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.

Topics - vpod

1
The KKEngIf has 2 ways of sending a confirmation mail, According to the javadoc:


  • void sendOrderConfirmationEmail(java.lang.String sessionId, int orderId, java.lang.String mailSubject, int languageId)

  • EmailIf sendOrderConfirmationEmail1(java.lang.String sessionId, int orderId, int langIdForOrder, EmailOptionsIf options)



Im trying to use the second one. But, I dont know how to set the mailSubject. Any Idea?

Thanks
2
Hello,

I have 2 tax zones:

Zone "A": Includes a group of countries. - for example "Albania", "Spain".
Zone "B": Include 1 country - for explample: "Albania".  (that is included in the Zone "A").

When a customer belongs to the zone "A" he can select 2 payment methods ("Y", "Z").
When a customer belongs to the zone "B" he, also, can select the "X" payment methods.

All payment methods can be only part of one zone (as far as I know).


P. Method --> Zone
X -> B
Y -> A
Z -> A

But when I create an order with a customer from "Albania" I only see the "X", and not (as I expected) "X", "Y", "Z".

Any idea?
3
I created a jsp page that allows selecting different payment methods. When the user changes his address the payment methods must be changed according to that.

I'm having troubles to make these works. When I change the address, the payment methods don't change. I made the following example. what am I making wrong?

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="
java.util.*,
java.text.*,
java.lang.*,
com.konakart.ws.*,
com.konakart.wsapp.*,
com.konakart.app.*" %>


<%


KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();


String sessionId = eng.login("konakartUserName", "konakartPassword");

Basket basket = new Basket();
basket.setProductId(30);
basket.setQuantity(1);

eng.addToBasket(sessionId, -1, basket);

Basket[] basketItems = eng.getBasketItemsPerCustomer(sessionId,-1,-1);

Order order = eng.createOrder(sessionId,basketItems,-1);

Address[] addresses = eng.getAddressesPerCustomer(sessionId);

Address address = addresses[0];

PaymentDetails[] metodosPago = eng.getPaymentGateways(order,-1);

%>
Payment methods From Argentina<p>
<%

for (int j=0; j< metodosPago.length;j++)
{
PaymentDetails mPago = metodosPago[j];
%>
<%=mPago.getDescription() %><br>
<%
}

address.setCountryName("Canada");
address.setState("Quebec");

order = eng.changeDeliveryAddress(sessionId,order,address);

metodosPago = eng.getPaymentGateways(order,-1);

%>
<p> Payment methods From Canada<p>
<%
for (int j=0; j< metodosPago.length;j++)
{
PaymentDetails mPago = metodosPago[j];
%>
<%=mPago.getDescription() %><br>
<%
}

%>
4
Hello,

I need to create a jsp that shows a group of orders that contains a product.
Is there any way to make this using some api function?

Thanks.
Vpod
5
After several hours of work I did create a new Payment method called "monthly instalments". A customer using this method must select a number of instalments. I store this value in the costum Value 1 of the paymentDetails object.

While I have the order in memory I can get the number of instalments. But after saving the order and trying to load it, I can not get the saved value.

This is how I set the value:

QuotePaymentDetails[] payMethods = eng.getPaymentGateways(order,-1);

PaymentDetails mPay = payMethods[0];
mPay.setCustom1(instalments);

order.setPaymentDetails(mPay);

orderId = eng.saveOrder(sessionId, order, -1);


This is how I tried to get the value back:

QuoteOrder order = eng.getOrder(sessionId,orderId,-1);
PaymentDetails pd = eng.getPaymentGateway(order,order.getPaymentModuleCode(),-1);
String instalments = pd.getCustom1();


But getCustom1() is null. Is It posible that this value is never stored in the database?

Vpod
6
I'm trying to create a new order total and I having the following error:

Quote09-Dec 18:13:36 ERROR (?:getOrderTotals:?) Could not instantiate the OrderTotal Module com.konakart.bl.modules.ordertotal.ot_intereses.Ot_INTERESES
java.lang.ClassNotFoundException: com.konakart.bl.modules.ordertotal.ot_intereses.Ot_INTERESES
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:169)
   at com.konakart.bl.modules.ordertotal.OrderTotalMgr.getOrderTotalModuleForName(Unknown Source)
   at com.konakart.bl.modules.ordertotal.OrderTotalMgr.getOrderTotals(Unknown Source)
   at com.konakart.app.KKEng.getOrderTotals(Unknown Source)
   at com.konakart.app.KKEng.getOrderTotals(Unknown Source)
   at com.konakart.ws.KKWebServiceEngSoapBindingImpl.getOrderTotals(Unknown Source)
   at com.konakart.ws.KKWebServiceEngSoapBindingSkeleton.getOrderTotals(Unknown Source)
   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.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:709)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:619)


I created the class "Intereses" in the package "com.konakartadmin.modules.ordertotal.intereses" and the class "Intereses" in "com.konakart.bl.modules.ordertotal.intereses". The new order total is installed in the konakartadmin. but when the konakart start the error appears.

What am I missing?


More information: I attached the classes.

Vpod
7
Hello, this is my first message in this forum. Spanish is my first language, so I'll try as hard as I can to explain my problem in English.

I'm developing a project using opencms + konakart. The idea was to integrate a store (konakart) into an existing site (opencms). I decided to use the kkeng from jsp pages to create a better integration.

At this moment I:

- integrated the user login konakart-opencms
- made some jsp that shows the products
- made some jsp that creates the cart.
- made some jsp to select the shipping and payment methods
- made some jsp to confirm and save the order.

At this point I'm waiting for the actionclass from the payment method to work. But nothing happens.
I understand this is not posible becouse of the topic "http://www.konakart.com/forum/index.php/topic,719.0.html";

Did someone find a way to achive this? Do I have to bypass the payment mechanism and make it outside konakart?

Thanks
vpod