Contributions

Features (Category Index)
Search: 

Batch Printing without Frames or PDF

Backup before doing anything.

This contribution allows you to batch print the orders on the orders.php screen. You can filter based on order status, and can then select/deselect orders for printing. Can batch update order status as well. Instead of using frames or a PDF, this contrib produces 1 invoice per page by using CSS page breaks.

This contribution is based on batch-invoice-printing-v1.1 by PandA.nl

Support: http://forums.oscommerce.com/index.php?showtopic=148791

Expand All / Collapse All

Display Order No. Column on batchprint_noPDF.php screen 20 Jun 2011

Display Order No. Column on batchprint_noPDF.php screen

What's great about this contribution is that you can just 'tick off' the orders and change their status.
I had a problem where at the end of the day I wanted I had 10 invoices in my hand for orders that had been

dispatched. I wanted it to display the order numbers...

This contribution adds a column on the batchprint_noPDF.php screen which lists your order numbers for each

order.

Instructions:
In batchprint_noPDF.php...

1. Find the column headings in these lines:
<td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_CUSTOMERS; ?></td>
<td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_ORDER_TOTAL;

?></td>
<td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_DATE_PURCHASED;

?></td>
<td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_STATUS; ?></td>

Add this *AFTER*:
<td class="dataTableHeadingContent" align="left">Order No.</td>
Note: You should probably make it say
<td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_ORDER_NUMBER;

?></td>
and then add a DEFINE entry in your language file - but I'm lazy.


Step 2.
Find where it outputs the Order status for the order Status column:
<?php
if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) {
echo '<td id="defaultSelected" class="dataTableContent" onmouseover="rowOverEffect(this)"

onmouseout="rowOutEffect(this)" onclick="document.location.href='' .

tep_href_link(FILENAME_BATCHPRINT_NOPDF, tep_get_all_get_params(array('oID', 'action')) . 'oID=' .

$oInfo->orders_id . '&action=edit') . ''">' . "n";
} else {
echo '<td class="dataTableContent" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"

onclick="document.location.href='' . tep_href_link(FILENAME_BATCHPRINT_NOPDF,

tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . ''">' . "n";
}
?><?php echo $orders['orders_status_name']; ?></td>
Add the output for the Order Number *AFTER*:
<?php
if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) {
echo '<td id="defaultSelected" class="dataTableContent" onmouseover="rowOverEffect(this)"

onmouseout="rowOutEffect(this)" onclick="document.location.href='' .

tep_href_link(FILENAME_BATCHPRINT_NOPDF, tep_get_all_get_params(array('oID', 'action')) . 'oID=' .

$oInfo->orders_id . '&action=edit') . ''">' . "n";
} else {
echo '<td class="dataTableContent" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"

onclick="document.location.href='' . tep_href_link(FILENAME_BATCHPRINT_NOPDF,

tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . ''">' . "n";
}
?><?php echo $orders['orders_id']; ?></td>

And that's all!

The download contains the above text :)

Batch Printing without Frames (Notify Customer Option) update 4 Feb 2010
Batch Printing without Frames (Notify Customer Option) 4 Feb 2010
ajustment to batchprint_noPDF file 29 Jan 2010
Batch Printing without Frames or PDF 1.5 30 Aug 2009
2008-02-25 Batch Printing Without Frames or PDF v1.4.1 25 Feb 2008
Batch Printing without Frames or PDF v1.3 19 Mar 2006
Batch Printing without Frames or PDF with Labels 5 Nov 2005
Batch Printing without Frames or PDF Dan Sullivan 30 Apr 2005

Note: Contributions are used at own risk.