Hi,
Thanks for the great contribution everything else is working Except I am getting an mysql error in checkout_process.php:
1366 - Incorrect integer value: '' for column 'vendors_id' at row 1
insert into orders_products (orders_id, products_id, products_model, products_name, products_price, final_price, products_tax, products_quantity, vendors_id) values ('124', '246', '', 'Coffee Service Medium', '22.9500', '22.95', '0', '1', '')
[TEP STOP]
I`ve tracked it down to this code:
//MVS - added 'vendors_id' => ...
$sql_data_array = array('orders_id' => $insert_id,
'products_id' => tep_get_prid($order->products[$i]['id']),
'products_model' => $order->products[$i]['model'],
'products_name' => $order->products[$i]['name'],
'products_price' => $order->products[$i]['price'],
'final_price' => $order->products[$i]['final_price'],
'products_tax' => $order->products[$i]['tax'],
'products_quantity' => $order->products[$i]['qty'],
'vendors_id' => $order->products[$i]['vendors_id']);
tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);
$order_products_id = tep_db_insert_id();
I am not sure why its not getting the proper vendors_id.. Any ideas whats wrong?