FWIW, I submitted an updated version (v2.0.0) of this plugin that supports Zen Cart v1.5.0 and later ... last May ... and "forgot"to note that change here! The plugin can be downloaded here: http://www.zen-cart.com/downloads.php?do=file&id=1083
FWIW, I submitted an updated version (v2.0.0) of this plugin that supports Zen Cart v1.5.0 and later ... last May ... and "forgot"to note that change here! The plugin can be downloaded here: http://www.zen-cart.com/downloads.php?do=file&id=1083
v2.1.0 was just submitted to the Plugins:
- Now provides capability to print all packing slips, too
- BUGFIX: Page breaks didn't work in Google Chrome
v2.1.0 is now available in the Plugins: http://www.zen-cart.com/downloads.php?do=file&id=1083
I am finally found most of what I was looking for! Thank you! two questions.
1) I would like to display all statuses at once.
1) I would like to make orders display descending on the page.
Can someone please provide the code changes for this. It can be for either invoices or packing slips.
Thank you!
It'll be a small edit to /YOUR_ADMIN/includes/templates/tpl_all_invoices.php (for the invoices). Locate the lines that read:
and make the following changes:Code:<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <?php $sql = "SELECT orders_id FROM ".TABLE_ORDERS." WHERE orders_status = ".$orderStatus; $pending_orders = $db->Execute($sql); while (!$pending_orders->EOF) {
That will select ALL the orders from your store and print them in descending order-id order.Code:<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <?php $sql = "SELECT orders_id FROM ".TABLE_ORDERS." ORDER BY orders_id DESC"; $pending_orders = $db->Execute($sql); while (!$pending_orders->EOF) {
Last edited by lat9; 15 Apr 2014 at 06:52 PM. Reason: Changed ascending to descending, per OP request
How do I make the admin/all_invoices.php select both pending and processing statuses at the same time? Ideally this would just be a default setting. Delivered and updated don't even matter to me. But I do need to see pending and processing on the same report simultaneously.
Thank you.
Make a change similar in nature to the change I identified in post #21:
Code:<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <?php $sql = "SELECT orders_id FROM ".TABLE_ORDERS." WHERE orders_id IN (1,2) ORDER BY orders_id DESC"; $pending_orders = $db->Execute($sql); while (!$pending_orders->EOF) {
Taking a quick look at the code, there are no core file overwrites and I check before using the v1.5.0+ functions. The code should work, it just won't integrate into your v1.3.9h admin's menu structure so you'll need to enter its address directly into your browser:
yourhost.com/YOUR_ADMIN/all_invoices.php
yourhost.com/YOUR_ADMIN/all_packingslips.php
If it doesn't work in a ZC 1.3.9h environment, just remove the files copied (the full file list is in the readme).
Thanks a bunch! The new versions notes said it was strictly for 1.5 so I was worried that the code was drastically different. I'm happy to hear that isn't the case!
I got this 2.1 version working on my 1.39h install flawlessly. I managed to add the menu items for it by including this file:
/admin/includes/boxes/extra_boxes/all_invoices_reports_dhtml.php
Thank you!Code:$za_contents[] = array('text' => BOX_ALL_INVOICES, 'link' => zen_href_link(FILENAME_ALL_INVOICES, '', 'NONSSL')); $za_contents[] = array('text' => BOX_ALL_PACKINGSLIPS, 'link' => zen_href_link(FILENAME_ALL_PACKINGSLIPS, '', 'NONSSL'));