• Welcome to KonaKart Community Forum. Please login or sign up.
 
October 12, 2024, 05:25:44 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.

Topics - Manu

1
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.
2
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 !  :-*

3
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.  ;)
4
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
5
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 :
https://www.2degreesmobile.co.nz/shop?p_p_id=konakart_portlet_WAR_konakart_portlet&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_konakart_portlet_WAR_konakart_portlet__spage=%2FSelectProd.do&_konakart_portlet_WAR_konakart_portlet__sorig=%2FSelectCat.do%3FcatId%3D21&productId=141

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"/>
</liferay:actionURL>">
Tools</a>


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 ?

6
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 ?  ???

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


and


<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"/>
</definition>


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

clean_torque_classes:

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

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

clean_wars:
     [echo] Cleanup WARs...
     [echo] Cleanup EARs...

clean:
     [echo] Cleanup...

generate_torque_java:

create_torque_classes:

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

compile:
     [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

BUILD FAILED
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 ?  :-[

Thanks,
Manu

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