Jump to content

flimflap

Members
  • Content count

    1
  • Joined

  • Last visited

Profile Information

  • Real Name
    flimflap
  1. flimflap

    Batch Printing without Frames or PDF

    I got the same problem with this contrib so I made a small modification to show the status. Thought i would share it. So here it is: Replace the whole autoupdatestatus section: if($autoupdatestatus=='Yes') { $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased, orders_status.orders_status_name from " . TABLE_ORDERS . " INNER JOIN orders_status ON orders.orders_status = orders_status.orders_status_id where orders_id = '" . (int)$oID . "'"); $check_status = tep_db_fetch_array($check_status_query); if (isset($HTTP_POST_VARS['notify_comments']) && ($HTTP_POST_VARS['notify_comments'] == 'on')) { $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n"; } $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_short($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $check_status['orders_status_name']); tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($autostatus) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); tep_db_query("update orders SET orders_status='" . tep_db_input($autostatus) . "' WHERE orders_id='" .$oID . "'"); } Enjoy~!
×