For some reason, order comments don't pass from checkout_shipping.php to checkout_payment.php.

Do the following fixes to checkout_payment.php:

Around line 100, find this:

if (!tep_session_is_registered('comments')) tep_session_register('comments');

And add this:

if (isset($HTTP_POST_VARS['comments']) && tep_not_null($HTTP_POST_VARS['comments'])) {
$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
}

So it looks like this:

if (!tep_session_is_registered('comments')) tep_session_register('comments');
if (isset($HTTP_POST_VARS['comments']) && tep_not_null($HTTP_POST_VARS['comments'])) {
$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
}

Around line 365, find this:



And change it to:



So that code block looks like this:










More...