Hi this contribution works fine.
If you want to change the default "Update status?" to "No" by default then what I had to do was edit the new orders.php that came with the contribution.
In line 396
change the ('autoupdatestatus', 'Yes',true) to ('autoupdatestatus', 'Yes'), then replace the ('autoupdatestatus', 'No', true);
I have a question for you people how to add the invoice date to print_batch_invoice.php
In the single print invoice.php it prints the invoice date using the following command
$order = tep_db_query("select orders_id, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
$order_query = tep_db_fetch_array($order);
<?php echo tep_date_short($order_query['date_purchased']);?>
Now I dont know how PHP works so when I copy and paste this code into print_batch_invoice.php it doesnt work.
This is the error message:
Fatal error: Cannot redeclare tep_db_connect() (previously declared in /homepages/12/d98245522/htdocs/catalog/admin/includes/functions/database.php:13) in /homepages/12/d98245522/htdocs/catalog/admin/includes/functions/database.php on line 13
Can anyone give me the correct query to retrieve the date?