Results 1 to 10 of 84

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    329
    Plugin Contributions
    0

    Default Re: All Invoices Report [support]

    Anyone using this with ZC 1.5.7?
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: All Invoices Report [support]

    Quote Originally Posted by Carbonless View Post
    Anyone using this with ZC 1.5.7?
    The plugin's files are/were based on v1.5.5. That is, the tpl_invoice and tpl_packing_slip files were derived from the admin/invoice and admin/packing_slip files in v155.

    The changes to those admin files in v156 were mostly geared around css markup differences to work within admin UI changes, not so much in terms of actual generated order-related content. In v157 those changes were updated further to make customization easier by reducing in-page queries and reducing duplication of calculated content by substituting with variables calculated once. v157 added some logic to skip displaying a tax column if no tax applied to the order. It also includes product image thumbnails by default, but it's not uncommon for stores to not bother displaying those.

    Thus, this all-invoices plugin will probably work fine on v157 with the caveat that there may be some missing UI updates (eg: it'll look more like an older version).
    As with the original vision of the invoice/packingslip files, both in core and in this plugin, you are free to customize the appearance of the files' output however you wish, by editing the files directly.
    So, as you would anyway, be prepared to update the tpl_invoice and tpl_packing_slip files that this plugin offers, to suit your needs.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    329
    Plugin Contributions
    0

    Default Re: All Invoices Report [support]

    It installed fine and works with 1.5.7b
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  4. #4
    Join Date
    Jan 2010
    Posts
    29
    Plugin Contributions
    0

    Default Re: All Invoices Report [support]

    Im using with 1.5.7b. Is there any way of changing the button that says Change the status to 2 - Processed, to my number 3 state which is "shipped"
    Last edited by angdrumm; 7 Feb 2021 at 04:48 PM. Reason: added b to version

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: All Invoices Report [support]

    Quote Originally Posted by angdrumm View Post
    Im using with 1.5.7b. Is there any way of changing the button that says Change the status to 2 - Processed, to my number 3 state which is "shipped"
    Line 82 of /admin/all_invoices.php (highlighted below) ...
    Code:
    } elseif (isset($_POST['resetids'])) {
        // clean POST list back to an iterable array
        $pending_orders = preg_replace('/[^0-9,]/', ',', $_POST['resetids']);
        $pending_orders = preg_replace('/,+/', ',', $pending_orders);
        $pending_orders = explode(',', $pending_orders);
    
        $status = 2; // set to Processed
        foreach ($pending_orders as $oID) {
            $sql = "UPDATE " . TABLE_ORDERS . " SET orders_status = " . (int)$status . ", last_modified = now() where orders_id = " . (int)$oID;
            $db->Execute($sql);
            $db->Execute("insert into " . TABLE_ORDERS_STATUS_HISTORY . "
                (orders_id, orders_status_id, date_added, customer_notified)
                values ('" . (int)$oID . "', " . (int)$status . ", now(), 0)");
        }
    ... change from 2 to 3.

  6. #6
    Join Date
    Jan 2010
    Posts
    29
    Plugin Contributions
    0

    Default Re: All Invoices Report [support]

    Quote Originally Posted by lat9 View Post
    Line 82 of /admin/all_invoices.php (highlighted below) ...
    Code:
    } elseif (isset($_POST['resetids'])) {
        // clean POST list back to an iterable array
        $pending_orders = preg_replace('/[^0-9,]/', ',', $_POST['resetids']);
        $pending_orders = preg_replace('/,+/', ',', $pending_orders);
        $pending_orders = explode(',', $pending_orders);
    
        $status = 2; // set to Processed
        foreach ($pending_orders as $oID) {
            $sql = "UPDATE " . TABLE_ORDERS . " SET orders_status = " . (int)$status . ", last_modified = now() where orders_id = " . (int)$oID;
            $db->Execute($sql);
            $db->Execute("insert into " . TABLE_ORDERS_STATUS_HISTORY . "
                (orders_id, orders_status_id, date_added, customer_notified)
                values ('" . (int)$oID . "', " . (int)$status . ", now(), 0)");
        }
    ... change from 2 to 3.
    Brilliant, worked perfectly, thanks for the quick reply :)

 

 

Similar Threads

  1. v152 Support Thread: Report All Errors (Even Warnings)
    By lat9 in forum Addon Admin Tools
    Replies: 34
    Last Post: 1 Feb 2020, 05:42 PM
  2. v154 Editable Invoices & Packing Slips [Support]
    By dbltoe in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Oct 2015, 11:44 PM
  3. Replies: 1
    Last Post: 27 Jan 2012, 06:35 PM
  4. Admin Activity Report [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 6 Aug 2009, 12:47 PM
  5. printing all invoices
    By simplesat in forum General Questions
    Replies: 1
    Last Post: 28 Nov 2008, 04:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg