• Welcome to KonaKart Community Forum. Please login or sign up.
 
March 29, 2024, 07:44:19 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 - Manu

1
Hi,

If I want some shipping methods for an unique order, do I have to create some Order objects which have their own shipping method ? Or can I add some shippingQuotes to the Order for a list of ordered products ? (For example an order with three products, i would like to have pickupinstore for product#1, and flat rate for product #2 and product#3).

It looks that in database all shipping infos are stored in orders table and one order has only one shipping method.

Thanks.  ;)
2
Is it possible to have for a same order some shipping method ?

For example I want to order two products and one of these has a weight greater than XX Kg.
One product will be sent to the customer's house, and for the second he has to come to a physical store to get it.


And is it possible to define a default shipping method for each product or for each categories ?


Thanks.
3
Programming of KonaKart / Re: Get CurrentCustomer
November 04, 2011, 04:25:05 pm
I'm totally lost  :'(

For the moment,  when my hook detects a login event, it calls my UserService class which call the eng.login() method and I get the sessionId. Like this :


I use all provided code (no SecurityManager and no LoginIntegration)


I don't know what I have to do with the sessionId to share it with KonaKart portlet. I've tried to put it in the HttpSession but i don't know where use it with the konakart portlet.

Every precise help will be appreciate. Do I have to use differents SecurityManager and LoginIntegration in my Liferay Hook and my KonaKart portlet (and so differents konakart_custom.jar) ? How to log in customer in the konakart portlet from the event in the hook ?

Sorry for all my posts  :-[
4
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 02:22:50 pm
It looks that SecurityMgr.login() is always called.

Now i always get error because sessionId is null  :
String userId = null;
// userId = callSSO(token); //This is the external call to the SSO system
if (userId == null)
{
return null;
}


I'm confused. Do i have to use an third party application to manage the SSO ? Or it's not necesary ?


5
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 01:44:15 pm
Ok, thanks !

And in my Liferay hook i have to call the login from eng.login() or i have to instantiate my custom SecurityManager an call its login() method ?
6
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 11:07:56 am
And is it the good way to set up single sign on ?  ???
7
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 09:50:41 am


I think this is the current behavior, is it ?
8
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 09:10:44 am
Quote from: kate on November 02, 2011, 03:04:14 pmAre you still not sharing the sessionId?


I think it's the reason of the problem.  My Liferay hook calls login() method and get a sessionId. And I think I have to tell to my KonaKart portlet that it has to use this same sessionId, no ?
9
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 08:36:49 am
It's ok, i forgot some JARs  :-X ;D

But i still not connected on Konakart  :-\
10
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 08:27:35 am
I don't know if it's the cause of the problem but when my liferay hook runs I get some errors for all modules like these :
08:23:12,106 ERROR [OrderTotalMgr:182] Could not instantiate the OrderTotal Module com.konakart.bl.modules.ordertotal.subtotal.Subtotalin order to refresh its configuration.
java.lang.ClassNotFoundException: com.konakart.bl.modules.ordertotal.subtotal.Subtotal


08:23:12,106 ERROR [OrderTotalMgr:182] Could not instantiate the OrderTotal Module com.konakart.bl.modules.ordertotal.total.Totalin order to refresh its configuration.
java.lang.ClassNotFoundException: com.konakart.bl.modules.ordertotal.total.Total


08:23:12,106 ERROR [OrderTotalMgr:182] Could not instantiate the OrderTotal Module com.konakart.bl.modules.ordertotal.tax.Taxin order to refresh its configuration.
java.lang.ClassNotFoundException: com.konakart.bl.modules.ordertotal.tax.Tax


08:23:12,075 ERROR [PaymentMgr:176] Could not instantiate the Payment Module com.konakart.bl.modules.payment.cod.Cod in order to refresh its configuration.
java.lang.ClassNotFoundException: com.konakart.bl.modules.payment.cod.Cod


I tried to import konakart JARs but I still get errors.
11
Programming of KonaKart / Re: Get CurrentCustomer
November 02, 2011, 04:57:49 pm
I can't access to logs when konakart is used as a portletin Liferay.

I tried to run my kkeclipse project and i have all log messages in the Eclipse console  but nothing when it runs in  Liferay.

I'm looking for how access to them  :(
12
Programming of KonaKart / Re: Get CurrentCustomer
November 02, 2011, 02:40:41 pm
For the single sign on,

I use the com.konakart.bl.LogIntegrationManager and specified it in konakart admin. The checkCredentials() method returns 1 :
    public int checkCredentials(String emailAddr, String password) throws KKException
    {
        return 1;
    }



And in my Liferay hook, I have a method which call konakart login() method :
public String loginKonaKartUser(String emailAddr, String password) {
try {
setSessionId(eng.login(emailAddr, password));
            int custId = eng.checkSession(sessionId);
            System.out.println("KK CUSTOMER_ID = " + custId);
} catch (Exception e) {
e.printStackTrace();
}
return sessionId;
}



In the database, I have a product in my basket. When I log into Liferay, the konakart login() method returns a sessionId and the system.out() returns the good customerId, but in the konakart portlet the user still not connected, and my cart is always empty.

And if i try to add a new product in my cart, in the database there is a new line in customers_basket but for an user with a negative customers_id.


Do you have an idea ?

Thanks  ;)
13
Programming of KonaKart / Re: Get CurrentCustomer
November 02, 2011, 10:57:45 am
Hi,

It works with hardcoded  login and password  :) In fact, the problem is now to make the single sign on works and share the sessionId between portlets.

Thanks for your help !
14
Programming of KonaKart / Get CurrentCustomer
October 27, 2011, 02:10:14 pm
Hi, I try to access to current customer cart in a portlet.

I use code provided in java_api_examples. I create a new Object which extends BaseApiExample and then i  get an engine instance.

But if i use KKEngIf eng = getKKEngByName("com.konakart.app.KKEng", engConf);, I can't access to getCustomerMgr().getCurrentCustomer() method.

And of I use eng = getKKEngByName("com.konakart.al.KKAppEng", engConf);, I can access to the method but eng is null.

I tried with a MgrFactory but i just have access to getCustMgr() method which does'nt have a getCurrentCustomer() method.

I don't know if I'm clear  :-X

What's the good way to get the current customer baskets ?

Thanks !  :-*

15
Hi all,

I'm using KonaKart into Liferay and I would like to get all KonaKart categories in a portlet which will contain links to the KonaKart portlet. The objective is to have a menu available in all Liferay pages.

What's the best way to do this ? Use RMI Calls ? Import konakart jar files into the lib folder ? etc.

Thanks in advance.  ;)