Here is a start to what you want. Hopefully others can improve upon this.
In Admin/Orders.php, I added a shipping button next to the invoice and packing slip buttons.
Here are the file changes.
In Includes/filenames.php
Code:
define('FILENAME_ORDERS_SHIPPINGLABLE', 'shippinglable');
In Admin/Orders.php
Added to this block of text (around line 602)
Code:
<?php echo
'<a href="' . zen_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . zen_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a>
<a href="' . zen_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . zen_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>
<a href="' . zen_href_link(FILENAME_ORDERS_SHIPPINGLABLE, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . zen_image_button('button_shippinglable.gif', IMAGE_ORDERS_SHIPPINGLABLE) . '</a>
<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('action'))) . '">' . zen_image_button('button_orders.gif', IMAGE_ORDERS) . '</a>'; ?>
and around line (869)
Code:
$contents[] = array('align' => 'center', 'text' =>
'<a href="' . zen_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a>
<a href="' . zen_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>
<a href="' . zen_href_link(FILENAME_ORDERS_SHIPPINGLABLE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_shippinglable.gif', IMAGE_ORDERS_SHIPPINGLABLE) . '</a>');
Created file Admin/Shippinglable.php (actually started from packingslip.php and modified). The code below is just the "body" I made no changes to the head section. This file is not formatted yet as I still need to work with my client on their specific label size, printer, etc.
Code:
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" class="main"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
<!-- <td class="pageHeading" align="right"><?php echo zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT); ?></td> -->
<td width="103"> </td>
</tr>
<tr>
<td width="83" valign="top" class="formAreaTitle"> </td>
<td width="214" class="main"> </td>
<td> </td>
</tr>
<tr>
<td valign="top" class="formAreaTitle"><b>SHIP TO:</b></td>
<td class="main"><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td bordercolor="#000000"> </td>
<td colspan="2" bordercolor="#000000"> </td>
</tr>
<tr>
<td height="19" colspan="2" bordercolor="#000000"><div align="center">UPS GROUND TRACK</div></td>
<td rowspan="2" bgcolor="#000000"> </td>
</tr>
<tr>
<td height="23" colspan="2" bordercolor="#000000"><div align="center">Tracking Number</div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="68" colspan="3"><div align="center">BAR CODE HERE</div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td height="76" colspan="3"> </td>
</tr>
</table>
Finally created new button: Admin/includes/languages/english/images/buttons/button_shippinglable.gif.
Can anyone create a button that matches the text style of the other buttons on the Order page?
Well, its a start. I hope others can add some insight and suggestions.