• Welcome to KonaKart Community Forum. Please login or sign up.
December 06, 2022, 05:51:13 pm

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

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 ?

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 !  :-*

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.  ;)
Configuration of KonaKart / Changing Product Type
October 14, 2011, 04:51:27 pm
Hi everyone.

My problem is simple : I'd like to create new types of products (using the products_type field). For exemple, I'd like to add a new product type "No shippable product".

In release notes you said "Made the product type search droplist (Admin App Products Panel) configurable using the Hidden Product Types configuration variable." but I can't find this famous "Hidden Product Types configuration variable". Is it in a configuration file or something ?

Thx in advance
Hi !

KonaKart is now running into Liferay, and i have created a new portlet with links.
I want to "refresh" the konakart portlet on the good page.

I see that 2degrees website URL are like this :

So, I create the links in my portlet like this :

<a href="<liferay:actionURL portletName="konakart_WAR_konakart" portletMode="view">
<liferay:param name="_spage" value="/SelectCat.do?catId=22"/>
<liferay:param name="catId" value="22"/>
<liferay:param name="_sorig" value="/SelectCat.do?catId=22"/>

But when I click on my link, the portlet stay on the Welcome.do page.

How tell to the portlet to call the specific action (here SelectCat.do) ? And to get parameters like catId, do i have to modify the SelectCategoryAction or it must work with the original version ?

Hi all,

I've made the konakart.war file and deployed it into Liferay 6.0.

But in my new page 'products' created on Liferay, when i add KonaKart, i get an error message : "KonaKart is temporarly unavailable" (I access to this page with http://localhost:8080/web/guest/products)

If i try yo access to http://localhost:8080/konakart/Welcome.do, the website runs correctly.

In my Liferay log file i get this error :
08:25:27,448 ERROR [render_portlet_jsp:154] java.lang.NullPointerException
at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:799)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:373)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(PortletTilesRequestProcessor.java:50)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.invoke(LiferayRequestDispatcher.java:169)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:98)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:85)
at org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:375)
at org.apache.portals.bridges.struts.StrutsPortlet.doView(StrutsPortlet.java:274)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)

Do you have an idea about this issue ?  ???

Hi all,

I try to add an  « About Us » page on my Konakart Installation. [KonaKart V5.2.0.0 (6216)]

So, I've edited the struts-config.xml file :

<action path="/AboutUs" type="com.konakart.actions.AboutUsAction">
<forward name="AboutUs" path="/CatalogAboutUsPage.do"/>


<action path="/CatalogAboutUsPage" forward="catalog.aboutus.page"/>

I have edited the tiles-def.xml file :

<definition name="catalog.aboutus.page" extends="main.layout">
<put name="body" value="/WEB-INF/jsp/AboutUs.jsp"/>

And I've created my AboutUsAction in /custom/appn/src/com/konakart/actions directory :

package com.konakart.actions;

public class AboutUsAction extends BaseAction {

    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
        KKAppEng kkAppEng;
try {
kkAppEng = this.getKKAppEng(request, response);
        kkAppEng.nav.set(getCatMessage(request, "header.aboutus"), request);
} catch (Exception e) {
            return mapping.findForward(super.handleException(request, e));

return mapping.findForward("AboutUs");

But when I click on my link
<html:link page="/AboutUs.do"> <bean:message key="information.tile.aboutus"/> </html:link>

I get that error :

[ERROR] RequestProcessor - No action instance for path /AboutUs could be created <java.lang.ClassNotFoundException: com.konakart.actions.AboutUsAction>java.lang.ClassNotFoundException: com.konakart.actions.AboutUsAction

I think it's because the AboutUsAction.class file is not in the konakart_custom.jar  in WEB-INF/lib (Is it ?)

So I tried to run ant in custom dir to "update" the .jar (Is it the good way ?) but I get this error :

Buildfile: build.xml


     [echo] Cleanup portlet WARs...
     [echo] Cleanup portlet WAR staging area...

     [echo] Cleanup admin portlet WARs...
     [echo] Cleanup admin portlet WAR staging area...

     [echo] Cleanup WARs...
     [echo] Cleanup EARs...

     [echo] Cleanup...



     [echo] Create the MANIFEST.MF file for all jars

     [echo] Compile the customisable application code
    [mkdir] Created dir: C:\Program Files\KonaKart\custom\appn\classes
    [javac] Compiling 137 source files to C:\Program Files\KonaKart\custom\appn\classes

C:\Program Files\KonaKart\custom\build.xml:257: Error running C:\Program Files\Java\jdk1.6.0_26\bin\javac.exe compiler

Total time: 0 seconds

I look on the Internet but I didn't find an answer.

Currently my JAVA_HOME is : C:\Program Files\Java\jdk1.6.0_26
And my PATH is C:\WINDOWS\Program Files\Java\jdk1.6.0_26\bin;C:\WINDOWS\system32;C:\WINDOWS;[...]

(I didn't modify the build.xml file) I don't know how to have more information about this error.

Does anybody has an idea ?  :-[


(Sorry for my english but I'm French  :-X )