Version 1.54
No Modules Added
With the recent 1.54 administrators added a new section called Status under the menu buttons edit, delete, invoice, packing slip ...
PHP Code:
// bof quick status update
$contents[] = array('text' => zen_draw_form('status', FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=quick_status_update', 'post', '', true));
$change_orders_statuses = array();
foreach ($orders_statuses as $os) {
if ($os['text'] != $oInfo->orders_status_name . " [" . $os['id'] . "]") {
$change_orders_statuses[] = $os;
}
}
$contents[] = array('text' => HEADING_TITLE_STATUS . ' ' . zen_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => $oInfo->orders_status_name)), $change_orders_statuses), $_GET['status'], 'onChange="this.form.submit();"'). '</form>');
// eof quick status update
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . zen_date_short($oInfo->date_purchased));
Right where I added the series of X's i would like to add the following code so I don't have to hit the edit button to leave a message to the customer and then click Shipped in the Update Status box on this page ...
Here is the Code from this page which I would like to rewrite and place in the RED area above ...
PHP Code:
<tr><?php echo zen_draw_form('status', FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=update_order', 'post', '', true); ?>
<td class="main noprint"><?php echo zen_draw_textarea_field('comments', 'soft', '60', '5', $order->customer['name'] . ',
Your hair bow order was shipped out today at the USPS using First Class Mail!
Enjoy my product and Thank You for shopping with us!
Mark'); ?></td>
Bookmarks