I have the GiftWrap module working fine but I'm trying to allow the customer to be able to type a gift message too.
So I'm trying to change the "Add Comments to your order" textbox to be a Gift Message textbox.
Can anyone help????
Does this part of the module cater for this but it just wasn't integrated entirely??
// add gift message
if ($HTTP_GET_VARS['action'] == 'update') {
if (tep_not_null($HTTP_POST_VARS['giftMessage']) && tep_session_is_registered('giftwrap_info')) {
$giftMessage = tep_db_prepare_input($HTTP_POST_VARS['giftMessage']);
if (tep_session_is_registered('customer_id')) {
tep_db_query("update " . TABLE_ORDERS . " set giftMessage = '" . tep_db_input($giftMessage) . "' where customers_id = '" . $customer_id . "' and orders_id = '" . $order_id . "'");
} else {
tep_db_query("update " . TABLE_ORDERS . " set giftMessage = '" . tep_db_input($giftMessage) . "' where customers_id = '0' and orders_id = '" . $order_id . "'");
}
tep_session_unregister('giftwrap_info');
}
}