XantosNew - It is not designed to send a customer notification when the PO is sent. The order notes are ammended with a comment, but I assumed that most customers do not want an email just to say "Submitted to Shipping Department" or whatever you want to say here. It should change from Pending to Processing at this time with no email notification.
When the item ships, it should change from Processing to Delivered. At this point, the customer is notified by email with the tracking number as well as the order notes being updated. Of course, this won't apply to you because you aren't using TY Package Tracker.
TY tracker shouldn't have any effect on the behavior when a PO is sent. I really don't know why this won't work for you, but I can lead you in the right direction. The code that does this can be found in send_pos.php on line 466 and reads like this:
Code:
$query978=mysql_query("SELECT orders_status FROM ".TABLE_ORDERS." WHERE orders_id='$passitw'")
or die("Failed to connect database: 1");
$row978=mysql_fetch_array($query978, MYSQL_NUM);
if ($row978[0] == 1) {
$query555=mysql_query("INSERT INTO ".TABLE_ORDERS_STATUS_HISTORY."
(orders_status_id, orders_id, date_added,
customer_notified, comments)
values ('2','$tm1',now(),'0','".PO_SENT_COMMENTS."')")
or die(mysql_error());
mysql_query("update " . TABLE_ORDERS . "
set orders_status = '2', last_modified
=
now()
where orders_id ='$tm1'");
}
The first query checks to see if the order has already been marked as processing. This is so that if you send the order to several different subcontractors the order won't get remarked each time. The if statement checks this, and if the order status is 1 (Pending) it writes the order status as 2 with the comments you specified in Admin/Configuration/Purchase Orders/PO-Sent Comments to the database.
Bookmarks