• Welcome to KonaKart Community Forum. Please login or sign up.
 

CustomField from Basket to Order

Started by holger, January 29, 2008, 08:52:25 am

Previous topic - Next topic

holger

Hello,

i have information in the 5 Customfields at the basket table save. Is the customer checkout the shopping-card, is the information at the customfields not at customfields at order_products table.


            BasketIf b = new Basket();
            b.setQuantity(1);
            b.setCustom1(request.getParameter("custom1"));
            b.setCustom2(request.getParameter("custom2"));
            b.setCustom3(request.getParameter("custom3"));
            b.setCustom4(request.getParamater("custom4"));
            b.setCustom5(request.getParameter("custom5"));
            b.setOpts(opts);
            b.setProductId(kkAppEng.getProductMgr().getSelectedProduct().getId());


This lines are add at the AddToCartSubmitAction.java

At the action CheckoutConfimationSubmitAction.java not move all columns from the customers_basket to the orders_products table automatically?
I search the point to add this five columns for move, but i can't find it. Can you tell me, at which file and position add my code for save this five colmuns at the order by checkout?

regards,
Holger



julie

Hi Holger,

The fields aren't set automatically from the basket to the order product since we cannot guarantee that this is the functionality that everyone wants.

You need to set them manually on the order before saving it. The order is created in CheckoutDelivery.action so you could do it there.

Julie