I fixed the product download issue with the call center. There were two bugs:
-- The statuses weren't updated the same way statuses are updated for normal user orders (those who use the call center may have noticed that call center orders have one status change whereas user orders have three)
-- Download information was being taken from the items table which is no longer the correct place to get it
The following is a fix for both issues:
(indentation has been removed so I also attached a txt file which maintains indentation)
-------------------
In admin_order_call.php
-------------------
-- On line 1428 change 'false' to 'true'
-- After line 1431 add the following four lines:
update_order_status($r->get_value("order_id"), 2, true, "", $status_error);
if ($status_error) {
$r->errors .= $status_error . "'<br>";
}
-- Replace the function after_orders_items_save with the following:
function after_orders_items_save($order_id, $user_id, $order_item_id, $item_id)
{
global $table_prefix, $db_type, $db, $eg;
// Get serial information
$sql = 'SELECT generate_serial FROM '.$table_prefix.'items WHERE item_id='.$db->tosql($item_id, INTEGER);
$db->query($sql);
if ($db->next_record()){
$generation_type = $db->f('generate_serial');
}