Hy,
I need some help:
- I need to display the name of the person who is logged in in the page Header, or if there is not already log in then to display nothing
- I need also to display near the cart the number of items.
Probably there are function in API in KKAppEng but I haven't found yet.
Sorry for this simple question.
Thanks a lot, and thanks in advance.
Ada
Quote- I need to display the name of the person who is logged in in the page Header, or if there is not already log in then to display nothing
kkAppEng.getCustomerMgr().getCurrentCustomer() -> Negative id if the person isn't logged in
Quote- I need also to display near the cart the number of items.
CustomerIf cust = kkAppEng.getCustomerMgr().getCurrentCustomer();
cust.getBasketItems().length -> cust.getBasketItems() could be null
Hi I am trying the same thing for konakart 6.3. For me the id returned is -10. Can you please advise what can be done for checking if the current user is a guest or logged in user.
Is it appropriate to determine that the user is guest if the ID is not negative for the customer