• Welcome to KonaKart Community Forum. Please login or sign up.
 

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 - lionCoolKing

1
Thanks Ryan,

I tried to open the war file outside liferay. It extracted successfully.

Regards
2
Programming of KonaKart / konakart admin liferay portlet
November 01, 2011, 02:17:29 pm
Hi All,

I am using liferay 6.0.5. I want to use konakart admin as a portlet in liferay. I created a war file of konakart admin by following http://www.konakart.com/forum/index.php/topic,1429.msg5703.html#msg5703.

But when I upload the war file I get the following exception.

14:11:35,031 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.util.zip.ZipException: error in opening zip file
com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.util.zip.ZipException: error in opening zip file
   at com.liferay.portal.kernel.deploy.auto.BaseAutoDeployListener.isMatchingFile(BaseAutoDeployListener.java:76)
   at com.liferay.portal.kernel.deploy.auto.BaseAutoDeployListener.isHookPlugin(BaseAutoDeployListener.java:40)
   at com.liferay.portal.deploy.auto.HookAutoDeployListener.deploy(HookAutoDeployListener.java:38)
   at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
   at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:221)
   at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:49)
Caused by: java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.<init>(ZipFile.java:114)
   at java.util.zip.ZipFile.<init>(ZipFile.java:131)
   at com.liferay.portal.kernel.deploy.auto.BaseAutoDeployListener.isMatchingFile(BaseAutoDeployListener.java:61)
   ... 5 more


Please help....
:(

Regards
3
Programming of KonaKart / Bestseller
October 14, 2011, 07:50:03 am
Hi All,

Can anyone pls tell me from which table konakart fetches the bestseller and how.

Regards...
4
Hi All,

I want to perform some custom action while a new user is created. Please tell me how to achieve this.

Regards
5
Hi All,

I am currently using open LDAP to authenticate the users. I was successful. Now I want to add the users ldap when I create a entry in konakart.

Any hint regarding this please.

Thanks & Regards  :(
6
Programming of KonaKart / Re: Open LDAP Integration
July 21, 2011, 03:12:07 am
please help me get out this......... :(
7
Programming of KonaKart / Re: Open LDAP Integration
July 20, 2011, 01:15:37 pm
Thanks,

As you said I did the same i created a class called LDAPConn. Below is the code.


package com.konakart.bl;

import java.util.Hashtable;

import javax.naming.Context;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;

import com.konakart.app.KKException;



public class LDAPConn implements  com.konakart.bl.LoginIntegrationMgrInterface{

   @Override
   public int checkCredentials(String username, String password) throws KKException {
      System.out.println("inside the checkCredentials()!!!!!!!!!!!!!!!!!!!!!");
      int loginCheck = 0;
      Hashtable<String, String> env = new Hashtable<String, String>(11);
      env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
      env.put(Context.PROVIDER_URL, "ldap://localhost:389");
      env.put(Context.SECURITY_AUTHENTICATION, "simple");
      env.put(Context.SECURITY_PRINCIPAL,"cn=Manager,dc=tcubes,dc=com");
      env.put(Context.SECURITY_CREDENTIALS,"manager");
      try{
         DirContext ctx = new InitialDirContext(env);
         loginCheck = 1;
         ctx.close();
      }catch (Exception e) {
         loginCheck = -1;
      }
      return loginCheck;
   }
   
}

I have also changed the name of the Login Integration Class to com.konakart.bl.LDAPConn. I just wanted to see the System.out.println("inside the checkCredentials()!!!!!!!!!!!!!!!!!!!!!");. But its not printing in the console. Its not giving any exception as well. Please help.

Regards
8
Programming of KonaKart / Re: Open LDAP Integration
July 19, 2011, 10:57:24 am
some hint would be enough for me........ :-\
9
Programming of KonaKart / Open LDAP Integration
July 18, 2011, 10:46:06 am
Hi All,

Can anyone please give some hint how to integrate Open LDAP with konakart.

Regards
10
Programming of KonaKart / Invoice
June 17, 2011, 11:43:24 am
Hi,

my requirement is now to create a invoice for the products the customer has purchased. i am currently using kkEng.getPdf() which returns an instance of PdfResultIf . through that instance i am invoking the getPdfBytes() which returns a byte [].

But the question is how to know from the byte array that which one is image and which one needs to placed where.

Regards
11
Programming of KonaKart / Re: Coupon Code Issue
June 17, 2011, 11:39:03 am
Thanks ;)
12
Programming of KonaKart / Re: Coupon Code Issue
June 16, 2011, 09:12:44 pm
Thanks a ton.

But we are not using struts framework. we are using jsf. Please suggest some other way to achieve it.

Regards
13
Programming of KonaKart / Re: Coupon Code Issue
June 16, 2011, 06:34:32 pm
Thanks for the quick response. Can u please tell me where i can get the ShowCartItemsAction.java file

Regards
14
Programming of KonaKart / Coupon Code Issue
June 16, 2011, 10:20:25 am
Folks,
I am new to konakart and found it very impressive.
Now I am facing an issue. My requirement is that after the user enters the coupon code in a field the user is supposed to get the discounted value of that product. I have tried many ways but all in vain. My idea was to use createOrder() and get the order object, set the coupon code in order object and invoke the saveOrder(). Its giving exception as "The order must contain at least one OrderTotal object". Don't know how to populate the OrderTotal object.

Please suggest me some other ways to achieve it.

Thanks