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) {


Reply With Quote
