DigitalShadow:

Did this work for you? Were you able to complete it so it updates when the Submit button is clicked?

Any more code to share? Your idea is great and would make this mod much more complete. If you have it working please upload a new fileset including your mods to the downloads section as a new version either through Clyde or directly. Let us know here if you do upload a new version.

Many thanks in advance,
Ron

Quote Originally Posted by DigitalShadow View Post
I could use

PHP Code:
$order_number zen_db_prepare_input($_POST['order_number']); 
to get the order number, then modify my code below to get it to update

PHP Code:
$order_status '6';
$return_update = array('orders_id'        =>    zen_db_prepare_input($_POST['order_number']),
                       
'orders_status'    =>    $order_status,
                       
'comments'         =>    zen_db_prepare_input($_POST['action']),
                       
'comment_by'       =>    'c'
            
);
zen_db_perform(TABLE_ORDERS$return_update'update'"orders_id = '" $order_id "'"); 
Now if the code works, I just need that update to be done when they hit submit.