ZenCart: Adding Customer’s Comment on Shipping Label

File: /admin/packingslip.php

Around line 120 (Under Telephone #, ‘Ship to’ section)

Add this code

<tr>
<?php
$orders_history = $db->Execute("select orders_status_id, date_added, customer_notified, comments
from " . TABLE_ORDERS_STATUS_HISTORY . "
where orders_id = '" . zen_db_input($oID) . "'
order by date_added"); ?>
<td><?php echo '(' . nl2br(zen_db_output($orders_history->fields['comments'])) . ')'; ?></td>
</tr>