• Welcome to KonaKart Community Forum. Please login or sign up.
 
May 10, 2024, 09:41:15 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 - dnlsmns

1
createCheckoutOrder() seems to be returning a valid OrderIf object when the current logged in user is the super user.  When a different user is logged in it returns null.  Is there some other condition that I'm overlooking here?
2
I found a solution that appears to be working:

KKAppEng appEng = getAppEng();
            ProductSearchIf prodSearch = new ProductSearch();
            DataDescriptorIf dataIf = new DataDescriptor();
            dataIf.setLimit(-1);
            dataIf.setOffset(0);
            appEng.getProductMgr().setDataDesc(dataIf);
            appEng.getProductMgr().searchForProducts(prodSearch);
            ProductIf[] products = appEng.getProductMgr().getCurrentProducts();

This seems to be full-proof.
3
I am noticing a strange result when attempting to return all products from the server, where in some cases the limit is being set to zero.  Here is my code:

            KKAppEng appEng = getAppEng();
            appEng.getProductMgr().fetchNewProductsArray(ProductMgr.DONT_INCLUDE, /* fetchDescription */
                   true);
            ProductIf[] products = appEng.getProductMgr().getNewProducts();

With debug mode turned on the query that is problematic ends with: DESC LIMIT 0

And the query that returns the correct result ends with: DESC LIMIT 9

NOTE: I currently have 9 products total. 

Could there be something wrong with my initialization process?  Is there a better way to get all products?
4
I am in the process of hooking up my konakart project to a payment module. I am a bit confused about how this is going to work, and not sure whether my questions should be addressed to you guys or the payment module provider (in this case Bluepay).

1) In what format should I be sending them the data?

2) Looking at the "Bluepay extends BasePaymentModule" class I see that this is something I will need to use, but I seen no references to it. Is there documentation on how it should be used?
5
Is there a solution to testing whether I am making successful transactions with my Payment Gateway (ie, Bluepay) without using SSL.  NOTE: These are just test transactions.
6
Configuration of KonaKart / Re: Turn On Debugging
August 20, 2010, 06:35:43 pm
Well it took me a while (I'm certainly no expert on configuring web apps) but here is how I did it.  First I noticed after looking at the MANIFEST.MF files associated with the .jars it seems that they are all compiled with debug set to false (ie, Java-Debug: off).  My assumption at that point was that my classpath must be using the jars rather than the source so I removed konakart_custom.jar from the WEB-INF/lib directory of my konakart webapp.  At this point I got a bunch of class not found errors.  To fix all the errors I simply copied the classes/ output folder into the konakart webapp and viola!
7
Configuration of KonaKart / Re: Turn On Debugging
August 20, 2010, 02:09:43 pm
konakart-logging.properties specifies the default properties of the log4j logger which determines what is displayed in the console.  What I'm not able to do is eclipse debugging (and I see "(Unknown Source)" in stack traces from many other posts so I know I'm not the only one).  Here is an example:

1) I set a break point in ShowCartItemsAction.java > the first line of code within the execute method.

2) I start tomcat NOTE: breakpoints work fine in KKGWTServiceImpl.java when tomcat starts (no problem there)

3) I navigate to http://localhost:8780/konakart , then navigate to the cart

4) The following exception occurs:

A default customer cannot be found. You must create one using the Admin App.
   at com.konakart.bl.OrderMgr.createOrderWithOptions(Unknown Source)
   at com.konakart.app.KKEng.createOrderWithOptions(Unknown Source)
   at com.konakart.app.KKEng.createOrderWithOptions(Unknown Source)
   at com.konakart.actions.ShowCartItemsAction.createTempOrder(Unknown Source)
   at com.konakart.actions.ShowCartItemsAction.execute(Unknown Source)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)

My concern is not so much about this exception, but the fact that I do not hit the breakpoint that I installed on ShowCartItemsAction. 
8
Configuration of KonaKart / Turn On Debugging
August 20, 2010, 03:53:04 am
All the source files in konakart contain (Unknown Source) in Stack Trace.  Also, I cannot set breakpoints in these files.  How do I turn on debug mode ?
9
I would like to redefine the notion of a "manufacturer" in the demo app to be "business".  In other words, my store will be comprised of a set of businesses each of which have 1 or more products.  Just a simple terminology change that I would prefer to be able to change in one spot from the admin app (if possible) rather than having to try a global replace of the string "Manufacturer" in the project.
10
Configuration of KonaKart / How To Remove Shipping ?
August 19, 2010, 04:54:51 pm
My products are not physical items, and there will be no notion of shipping in my store.  How do I remove the shipping feature entirely?