X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   status change audit (https://forum.x-cart.com/showthread.php?t=53041)

amy2203 03-29-2010 01:09 AM

status change audit
 
I've added this code so that it puts time/date details of a status change i n the order notes.

in include/func/func.order.php add:
Code:

                #ag added to add details to order notes
                        $statusdate = date("D dS F Y  G:i");
                        $qag1 = "UPDATE $sql_tbl[orders] SET notes = CONCAT(notes,'
', '";
                        $qag1.=$status." ".$statusdate;
                        $qag1.="') WHERE orderid='".$orderid."'";
                        db_query ($qag1);



just after this line:
Code:

db_query("UPDATE $sql_tbl[orders] SET status='$status'".(($advinfo)? ", details='".$info."'" : "")." WHERE orderid='$orderid'");


All times are GMT -8. The time now is 04:56 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.