• Welcome to KonaKart Community Forum. Please login or sign up.
 
December 22, 2024, 11:01:09 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 - Pier39

1
I think this will help you,


KKCriteria updateC = getNewCriteria();
KKCriteria selectC = getNewCriteria();
updateC.addForInsert(BaseOrdersPeer.CUSTOM1, "VALUE");
updateC.addForInsert(BaseOrdersPeer.CUSTOM2, "VALUE");
updateC.addForInsert(BaseOrdersPeer.CUSTOM3, "VALUE");
selectC.add(BaseOrdersPeer.ORDERS_ID, order.getId());
BasePeer.doUpdate(selectC, updateC);
2
You can try making use of beforeSaveOrder function inside OrderIntegrationMgr.java. This function gets called before an order actually gets saved. You can set custom field values here. This scenario helps if you want to set custom fields while creating order.

Else you could take a look at saveOrder(java.lang.String sessionId, OrderIf order, int languageId) api defined in OrderMgr.
3
Programming of KonaKart / Re: Seo and struts
June 27, 2012, 06:18:22 pm
Its handled in DefaultAction class
4
It seems konakart server checkout JSP page has issue with submit function. On IE and Chrome, the defined submit function clashes with browser provided predefined submit shortcut function. Due to this, any additional validation added within submit function is not take care.

more related info: http://stackoverflow.com/questions/3553584/cannot-submit-form-with-submit
5
I was testing user privileges(specifically the login as user using admin user session id) and found out one scenario which I couldn't determine whether its valid or not.

Steps I tried:
I created a new admin role which doesn't have privilege to login as user but just able to view customer records like review) and linked to user1. Note: Edit privilege is disabled so it automatically hides the Login button under Customers UI.
I logged into Admin app using user1 and can rightly see "login" button hidden.
I picked up the user1 session ID and directly passed into ?AdminLoginSubmit.do?id=SOME_VALID_USERID&sess=(user1_sess_id)

Expected:
User shouldn't be logged into since user1 doesn't have privilege.

Actual:
I logged into the user.

Is that expected, a valid scenario or is it implemented such a way that any Admin users session id bypasses privilege settings in this case?
6
Thanks, that was the issue.

Our payment gateway is unique in the sense, we are not connecting directly to any PGs and we make use of already existing library API calls.
7
Can someone please help me understand why I'm seeing this error when I try to create a new payment module?

I was able to put breakpoint and can see class loaded and debugger stops. Even after this I get class not found.  I followed the steps provided to create new module but don't see it listed in the admin due to error. Am I missing something?


Konkart Admin [date] WARN  (?:loadModules:?) Class com.konakartadmin.modules.payment.enterpayment1.Enterpayment1 not found but defi
ned in file:/C:/tomcat-7.0.25/webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties
com.konakart.app.KKException: The configuration at index 2 Enterpayment1 is null
        at com.konakartadmin.modules.Module.getKeys(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.loadModules(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.fetchModules(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.refreshConfigs(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.konakartadmin.bl.AdminMgrFactory.instantiateAdminModulesMgr(Unknown Source)
        at com.konakartadmin.bl.AdminMgrFactory.getAdminModulesMgr(Unknown Source)
        at com.konakartadmin.bl.KKAdminBase.getModulesMgr(Unknown Source)
        at com.konakartadmin.bl.KKAdmin.getModules(Unknown Source)
        at com.konakartadmin.server.KKAdminGWTServiceImpl.getModules(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1805)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
8
In the KK user guide its stated that

QuoteMulti-Store. This mode allows you to run an unlimited number of stores with a single KonaKart installation
and a single database schema. Even when deploying a single production store, it's useful to run
KonaKart in multi-store shared products and categories mode in order to create stores for managing
products in staging environments


in the konakart.properties file and elsewhere of properties, its stated that

Quote# When in multi-store single database mode, the products can be shared between stores


Could you confirm product sharing works only when KonaKart multi store setup is configured to work with single database? If we have multi store multi database, product sharing wont work. Can someone confirm this?

Thanks.