• Welcome to KonaKart Community Forum. Please login or sign up.
 
June 28, 2025, 01:09:21 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.

Messages - mtoon

1
That's a great idea.  I realized we are saving the order with an initial status of payment received and never changing it.  I'll add the code to saveOrder.

Thanks for your help!
2
you know, i tried that, but it didn't work.  That was the first thing I tried.  Setting Payment received on the order if the value is zero.  But the method was never called..  Thoughts?
3
Hi all-
We recently found that if a cart totalled zero dollars that we were still going through the CC processing step.  I added this code to the CheckoutConfirmationSubmitAction class to handle this case.  I'm just posting this here in case anyone else has the same issue.



            OrderIf checkoutOrder = kkAppEng.getOrderMgr().getCheckoutOrder();
            if (checkoutOrder == null || checkoutOrder.getStatusTrail() == null)
            {
                return mapping.findForward("CheckoutDelivery");
            }

---------------- BEGIN  NEW CODE --------------------
            BigDecimal orderTotal = checkoutOrder.getTotalIncTax();
            if (orderTotal.compareTo(java.math.BigDecimal.ZERO) == 0) {
                // Set the order status
                checkoutOrder.setStatus(com.konakart.bl.OrderMgr.PAYMENT_RECEIVED_STATUS);

                // Save the order
                int orderId = kkAppEng.getOrderMgr().saveOrder(/* sendEmail */true);

                OrderIntegrationMgr oim = new OrderIntegrationMgr();
                oim.manageDigitalDownloads(orderId);
               
                // Update the inventory
                kkAppEng.getOrderMgr().updateInventory(orderId);

                // If we received no exceptions, delete the basket
                kkAppEng.getBasketMgr().emptyBasket();

                return mapping.findForward("CheckoutFinished");
            }

------- END NEW CODE -------------           
            int paymentType = kkAppEng.getOrderMgr().getPaymentType();
4
Programming of KonaKart / Re: Shipping
May 19, 2008, 01:06:47 pm
That's a good idea, but what about giving the user the option of express or standard?  I currently have created two shipping modules.. Flat rate express and flat rate standard.   Ultimately we want the user to be able to select Express shipping or regular shipping and have the table applied then. 

Thanks again!
5
Programming of KonaKart / Shipping
May 18, 2008, 03:22:57 pm
Most of the items in our store are lightweight and the customer receives free shipping, but some of the items are very heavy and we'd like to place a shipping surcharge on these items.  My original thought was to create an order total module that looks at the weight of the items in the cart and if they are not zero, add them up and place a table rate on that.  But before I write that, I wanted to see if there was any way in the system to already do this.  I know there is a table-rate shipping module, but we do not want to enable it because it then prompts the user if they want table rate (lots of money) or free (obviously better for the consumer!)...  Any thoughts?
Thank you
6
What version is that in, i couldn't find the method you described in the admin, client or server documentation for 2.2.2.0... 
7
We descended from the KKEng class and added our own properties to it.  I'd like to access these properties in the velocity templates in the application, not the admin (yet).

How do I add the KKEng object to the context?

Thank you!
8
Is there any handle to the KKEng object from within the Velocity templates?
9
I actually figured this out... 

1) Created a new class that descended from KKEng
import com.konakart.app.*;

public class FDKKEng extends KKEng  {
   
    public FDKKEng() throws com.konakart.app.KKException {
        System.out.println("FDKKEng Constructor");
    }
   
    public FDKKEng(String value) throws com.konakart.app.KKException {
        System.out.println("FDKKEng Value Constructor: "+value);
    }
   
    public String getTestValue() {
        return "Test Value";
    }

}

2) Changed the konakart.app.engineclass to the new class.
3) Added the following to the JSPs..
        <bean:define id="fdEng" name="kkEng" property="eng" type="com.myclass.FDKKEng"/>

4) New instance can be accessed in the JSP like:
        <%=fdEng.getTestValue() %>

10
Programming of KonaKart / Creating a new engine
May 09, 2008, 07:23:38 pm
Is it possible to descend from the com.konakart.app.KKEng class and update the konakart_app.properties to reflect that?

i.e.:
konakart.app.engineclass=com.my.engine.class

would the kkEng variable in all the JSPs be updated from this change?

Thank you!
11
Yes, my question is... what is the required "compulsory" data?  Can you supply that?  I thought it was only the SKU or product_id..
12
Programming of KonaKart / Re: import problem
May 05, 2008, 08:35:00 pm
Thanks for the help.  I'm trying to figure out what would cause the problem.  All I'm asking for is WHAT in the import process would cause the SAME file to not update rows, but duplicate them.  There is a SKU field in the import and it's being imported into the database correctly.  Can you provide a little insight (in terms of pseudo-code or something similar) as to how the import works... especially in the area of looking up an existing product.

13
Yes.
File #1 "GlobalProductMaster.txt" has all the products (and all the columns) possibly available with an invisible tag set to "true".  It contains a v_products_sku column.  This file imports fine, BUT an immediate subsequent import duplicates all rows (problem posted to another thread).

File #2 "CustomerProducts.txt" has just a few columns (the properties we're allowing customers to change)  SKU (SAME as the above file), Model and Price.  When this file is imported, the idea is to update just the model number and price of the already existing row (imported from the file above).  This import seems to ignore the file.  No errors are thrown and no rows are updated or even inserted (which they shouldn't be).

Does that help?
14
The merge would take too long.  It's not an exact line by line match and to lookup each line in excel before the import would be too clumsy.  The real question is... why is the import completing (without error), but not doing anything?  Is there some field in there that has to be there to complete?

Using the API is a good idea, but it would seem the import should be able to handle this...  It didn't seem like there were any specific fields required in the import except product_id or SKU....  is this incorrect?

Thank you
15
Programming of KonaKart / Re: import problem
May 05, 2008, 07:14:16 pm
I don't think that's it..  I can start with an empty database, run the import.  Then run the exact same command line as soon as it's done and it duplicates the entries.  It's the same exact input file.  Any other ways it might be failing?