Thanks! That worked like a charm when I went into
/catalog/view/theme/*/template/mail/order.tpl and replaced this section:
Code: Select all
<?php if ($comment) { ?>
<table style="border-collapse: collapse; width: 100%; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; margin-bottom: 20px;">
<thead>
<tr>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 7px; color: #222222;"><?php echo $text_instruction; ?></td>
</tr>
</thead>
<tbody>
<tr>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $comment; ?></td>
</tr>
</tbody>
</table>
<?php } ?>
with this:
Code: Select all
<?php if (isset($user_comment)) { ?>
<table style="border-collapse: collapse; width: 100%; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; margin-bottom: 20px;">
<thead>
<tr>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 7px; color: #222222;"><?php echo $text_user_comment; ?></td>
</tr>
</thead>
<tbody>
<tr>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $user_comment; ?></td>
</tr>
</tbody>
</table>
<?php } ?>
Then I went into
/catalog/model/checkout/order.php and replaced this section:
Code: Select all
if ($comment && $notify) {
$template->data['comment'] = nl2br($comment);
} else {
$template->data['comment'] = '';
}
with this:
Code: Select all
if ($order_info['comment']) {
$template->data['user_comment'] = nl2br($order_info['comment']);
} else {
$template->data['comment'] = '';
}
Then I added this line to be used by order.tpl in the above code:
Code: Select all
$template->data['text_user_comment'] = $language->get('text_new_comment');
after this line:
Code: Select all
$template->data['text_footer'] = $language->get('text_new_footer');