OK, I finally spent some time looking at this because it really needs to be done to make this the really worthwhile mod it is.
So got 20 mins to look at it today.
First create a label called
lbl_packing_for_selected and enter the text as Print packing slips for selected.
Then edit the /include/process_order.php
Find
Quote:
#
# Display labels
#
$orders_to_delete = (!empty($orderids) ? $orderids : "");
func_header_location("process_order.php?mode=label ");
}
|
and immediately below it copy and paste
Quote:
elseif ($mode == "packing" and !empty($orderids)) {
#
# Display packing slips
#
$orders_to_delete = (!empty($orderids) ? $orderids : "");
func_header_location("process_order.php?mode=packi ng");
}
|
Then edit /skin1/main/order_list.tpl
Find
Quote:
<input type="button" value="{$lng.lbl_labels_for_selected|strip_tags:fa lse|escape}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) {ldelim} document.processorderform.target='labels'; submitForm(this, 'label'); document.processorderform.target=''; {rdelim}" />
|
then immediately below it copy & paste
Quote:
<input type="button" value="{$lng.lbl_packing_for_selected|strip_tags:f alse|escape}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) {ldelim} document.processorderform.target='packing'; submitForm(this, 'packing'); document.processorderform.target=''; {rdelim}" />
|
make sure this is before the {/if}
If you have already installed this mod and packing slips are working then that is it, you can now batch print packing slips based on selection just like invoices.
Sorry it's taken me so long to even look at this but I'm pleased that I now have it working, it will really save me time, I hope it does the same for you.