KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: sashwill on October 29, 2008, 06:21:57 pm

Title: Order not returning custom values
Post by: sashwill on October 29, 2008, 06:21:57 pm
QuoteOrderIf order = kkAppEng.getOrderMgr().getCheckoutOrder();
            System.out.println(order.toString());
            OrderProductIf[] op = order.getOrderProducts();
            for (OrderProductIf a : op) {
                System.out.println("custom1 =" + a.getCustom1());
                System.out.println("custom2 =" + a.getCustom2());
                System.out.println("custom3 =" + a.getCustom3());
                System.out.println("custom4 =" + a.getCustom4());
                System.out.println("custom5 =" + a.getCustom5());
              }

Looking at the above code, the order.toString() prints all the custom values for the order but not for the product and I've verified that the orders table in the database contains the values.  However all println prints all the custom values as null while other things such as name and price and quantity are correct.  Can someone tell me why?