For some reason, this code is never being executed in catalog/checkout_process.php:
// denuz text attr
$attr_q = tep_db_query("select * from customers_basket_text_attributes where session_id = '".tep_session_id($osCsid)."' and products_id = " . tep_get_prid($order->products[$i]['id']));
while ($attr = tep_db_fetch_array($attr_q)) {
tep_db_query("insert into orders_text_attributes values ($insert_id, " . tep_get_prid($order->products[$i]['id']) . ", " . $attr['products_text_attributes_id'] . ", '" . $attr['products_text_attributes_text'] . "')");
}
tep_db_query("delete from customers_basket_text_attributes where products_id = " . tep_get_prid($order->products[$i]['id']) . " and session_id = '" . tep_session_id($osCsid) . "'");
// eof denuz text attr
And looking through the code, I'm not really sure where/when that would be called either. This is really frustrating because I'm so close to being able to actually use this contribution.