example includes/classes/order.php - add the comments_new, same with checkout_payment,
checkout_shipping, checkout_process.php and checkout_confirmation.php
- just find comments and replicate to comments_new
admin/order find example $orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified and add comments_new .....
Same page at your table at TABLE_HEADING_COMMENTS, add your new table TABLE_HEADING_COMMENTS_NEW and just futher add new comment code
For admin invoice part something like:
Code: Select all
if (tep_db_num_rows($orders_history_query)) {
while ($orders_history = tep_db_fetch_array($orders_history_query)) {
if (!empty($orders_history['comments_new']) == '') { ?>
<td class="main" width="300"><strong>Other Comments:</strong> <?php echo nl2br(tep_db_output($orders_history['comments_new'])); } } } ?> </td>
<?php } ?>ALTER TABLE `orders_status_history` ADD `comments` longtext DEFAULT NULL;
Stay with comments_new like in checkout_confirmation
Code: Select all
if (tep_not_null($order->info['comments_new'])) {
echo tep_draw_textarea_field('comments_new', 'soft', 60, 5, $comments_new, 'id="inputCommentsNew" placeholder="' . ENTRY_COMMENTS_NEW_PLACEHOLDER . '"');From here see the developers to sort out
Hth