Both tables have the same custom field added to it.
I have an observer listening for "sales_quote_item_set_product". I'm setting the field like this:
$quoteItem->setData("custom_code", "TEST");
If I go to sales_flat_quote_item, I can see the custom_code field being populated with "TEST". Once I place the order, the corresponding entry in sales_flat_order_item still has custom_code==null.
Do I need to listen for another event? Is there one like sales_order_item_set_product? I searched around and didn't see anything.
Best Answer
I figured it out. I needed to add this to my extensions config.xml file: