Results 1 to 10 of 84

Threaded View

  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: All Invoices Report [support]

    It'll be a small edit to /YOUR_ADMIN/includes/templates/tpl_all_invoices.php (for the invoices). Locate the lines that read:
    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) {
    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." ORDER BY orders_id DESC";
    $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.
    Last edited by lat9; 15 Apr 2014 at 06:52 PM. Reason: Changed ascending to descending, per OP request

 

 

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