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

custom attribute on orders_products

Started by wafeneto, August 04, 2009, 12:47:45 pm

Previous topic - Next topic

wafeneto

hy, how can i perform a persistence on the custom1 field of the orders_products ´s table?


i try to change the AddToCartFromProdIdAction adding the follow code

b.setCustom1(selectedProd.getCustom1());
System.out.println("add a custom " + selectedProd.getCustom1());

that work fine ( i see  this phrase in the log the msg )
but after i checkout the order the custom1 attribute was no set in table orders_products

what else i need to change?

trevor

Instead of using the API call createCheckoutOrder(), use createCheckoutOrderWithOptions() where one of the options is to copy the basket custom fields.