Updating New Field in Orders Table
I need to have 2 new fields record data from the order forms into the ps3_orders table. How do I do this?
I've customized my PS3x store pretty heavily and am using it as a wholesale customer store. We have pre-assigned CustomerID numbers that need to correspond to each customer's orders. I have added this field to the ps3_users table and this data is correctly transferred to this new field in the table when users register. (They must input their Customer ID as well with registration.) I also added a field for the Customer's Business Name to the psd3_users table as well. All data is recorded properly upon registration.
My problem is with the orders. I've tried to add these fields to the checkout.php page - but the data is not recording in the ps3_orders table. I know that the confirm.php page is actually the page that records the checkout.php information into my database. Our store has no payment gateway because we pre-approve then process it internally.
I also need these two new fields to show up in my Admin order fields as well. We don't need First and Last name of the customers. Instead we need to see the CustomerID (ours, not the automatic UserID that the database generates), and the Business Name for all orders and in the Admin area of the store.
I'm not sure the best way to go about doing this. I've tried many different things and nothing seems to work. I do have DataAssist and all of the other WebAssist programs at my disposal. This one little problem is causing lots of issues for my store's usability here at the company.
I know that a session variable with the Customer ID from the PS3 users would come in handy - just don't know how to go about this.