• Welcome to KonaKart Community Forum. Please login or sign up.
 
March 08, 2026, 12:10: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 - sashwill

46
Programming of KonaKart / Multiple payment methods
September 10, 2008, 06:11:56 pm
Is it possible to assign a different payment method to each line item of an order?
47
Thanks Ryan!

That fixed it.  I'm still curious if any changes were made to the portal demo site to make it work?
48
Is that what was done on the portal demo site?
49
My site is still in development and is not currently reachable from the public.  I was trying to show the difference between the urls on my site and the demo site. 

Also, I should add that if I deploy as a web app instead of a portal, all seems to work fine.
50

When ever I try to view an item in the customer cart, i lose the header from the page and the
custId = this.loggedIn(kkAppEng, null); from ShowProductDetailsAction is returning -1; and there is no portlet info contained in the navigation bar of the browser like in the jetspeed demo site.  Upto this point everything has been working smoothly.

--konakart/jetspeed site
http://www.konakart.com/konakart/SelectProd.do;jsessionid=9BEDDFA34A6D4AE832BFACAC9CB89A9C?prodId=1&manufacturer=Matrox&category=Graphics%20Cards&name=Matrox%20G200%20MMS&model=MG200MMS

--mysite
http://localhost/konakart/CatalogShowProdDetailsPage.do
--

Has anybody else had this happen? Does anyone know why this might happen?
51
Seems to have done the trick
52
Just wanted to add some more detail to the problem.  For example:
After selecting the Hardware category and then picking the cdroms, click the back button.  The screen goes blank. Sometimes it rather difficult to get back to a working screen.  You have to log out and back in again.  This happens on the Jetspeed demo site as well as my work in progress.

I'm  new to struts and I'm not sure if I'll have the time to dig into solving this or will just have to go another direction.  So far I like Konakart and am planning to use it, but this may be a show stopper. Any help would be appreciated.
53
Did anyone ever find a cause or solution to this?
54
Programming of KonaKart / page navigation
September 05, 2008, 03:04:25 pm
I've added some logic to the BaseAction class to automatically register a customer with all the information I already have about them.  What I would like to do is then redirect them to the Personal address book page so they can verify and if necessary edit the info i supplied from our other source.

How can I direct someone to a page other than the homepage after login from the BaseAction class?  Can you provide an example or a bit of code.

Thank you
55
I get no exceptions in the log.

I check with  doesCustomerExistForEmail(username) and it returns true, but the kkAppEng.getSessionId() is null


I have added users directly into the database via an ETL from our database with the password set to "genericPassword" since i'm not really using this password. Is this the problem, if so how do i make it work by doing this since this is mode we prefer.
Do i need to populate other tables besides the "customers" table?
I thought that i told earlier the checkcredintials should handle this?
56
My users aren't being logged in.
I inserted some code in the baseAction class:

LoginForm lf = new LoginForm();
        lf.setUser(request.getUserPrincipal().getName());
        lf.setPassword("genericPassword");
        kkAppEng.getCustomerMgr().login(lf.getUser(), lf.getPassword());
       


I wrote my own checkCredentials class and set it up in the configuration:

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

    public int checkCredentials(String arg0, String arg1) throws KKException {
        System.out.println("!!!!!!!!!!!!!!this is custom checkCredentials");
        return 1;
    }

It runs because I see the println

I am always returning a 1 because my internal users have already authenticated before they can get to the shopping cart. I thought that if I return a positive number the login should succeed?   

But as I said at the beginning it doesn't log the user in.  What am I doing wrong?
57
I looked at the credentials suggestion but it seems to still use the login page, useless I'm missing something?
So I still need a lot of help...
After someone has logged into my portal and they click the shopping tab which takes them to the KonaKart, I want them to be already logging into the konakart application. 
I saw this code supplied to someone else:

Class engineClass = Class.forName("com.konakart.app.KKEng");
KKEngIf eng = (KKEngIf) engineClass.newInstance();
  id = eng.login(userName, password);

Is there a place in the Konakart app that I can place this code and what do I do with the id when it's returned? If I can't modify konakart to perform this, what would I need to write.  I am trying to use as much of the default application as I can.

I'm assuming that since my portal already knows who they are, I can register them if they have not shopped with me before
What else do I need to do?
58
I've run the ant build script to make the konakart portlet, is there also a build script to run to create the admin app as a portlet?
59
I'm rather new to all this so please forgive my simplistic question.

I've deploy KK on my Jetspeed 2.1.3 portal running on tomcat.

What are all the steps that I would need to take to use my portal login as my KonaKart login?

Thanks for any help :)