I have partially solved my problem.
In cart.php there is this session:
reset ($cart);
mysql_query("insert into orders set
payment_info = '".addslashes(serialize($data))."',
****** buyer = '".addslashes($data[first_name])."', ********* <-- this was missing
products = '".addslashes(serialize($cart))."',
order_date = now(),
payed = 'wait'");
$new_order = 1;
$session[order_id] = mysql_insert_id();
$session[cart] = "";
I added the ******* buyer etc .... ******** line.
I could potentially add buyer's first/last name there. But the problem is, the order tracking code uses user_id for tracking. Theoretically, I should write a code in cart.php extract the user_id using the first/last name pair, then subsitute it for the buyer's line of code above.
It would be far easier for the authors to supply those lines of code, as they konw better. Could you help me there please ??
michael lim
|