
Originally Posted by
touchclothing
Your right, the instructions was a bit hard to get, but the idea is sound. I changed the require to require_once in the three files. With super_batch_forms.php look to the bottom around line 339 for
function batch_forms($target_file, $selected_oids, $num_copies = 1)
replace from the 'function' to the bottom closing php tag with his code. making sure not to delete the closing php tag.
I didn't use this part.. <?php if ($_GET['pagebreaks'] != 1) { ?>
Now in the super_stylesheet.css add a pagebreak to a class name. like
Code:
.endline {
page-break-after: always;
}
Then just before the closing body tag of packing slip and invoice pages, add something like this
Code:
<div class="endline">------------ pagebreak --------------</div>
What you get when you do this is a full html page of all the invoices or packing slip. You will see the -----pagebreak------ but when you print, each will print on there own page and the -----pagebreak------ wont. If you do this with the shipping label, you'll get one label per page. But play with the styles and you can get it to print on a label sticker page.
As always, back up before you edit and best to use a testing server to make sure everything works before uploading to a live site.
Bookmarks