Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding new field to orders table


kendalswife

Recommended Posts

WHAT I'VE DONE:

 

1. I've added a new field to my orders table called "salesRep".

2. In the checkout_payment.php, I've added a dropdown list called "salesRep" where customers can select a name if they've called and spoken to one of our sales reps.

3. In checkout_confirmation.php, I display the name of the sales rep if the field was populated. It displays perfectly.

4. In includes/classes/orders, I've added "salesRep" to the arrays.

 

 

MY PROBLEM: When the order is submitted, all information except salesRep makes it into the orders table.

 

MY QUESTION: Any ideas where else I need to add "salesRep" in order for the name to be inserted into the orders table with the rest of the order? I've grepped through the files and I'm not seeing it.

 

Thanks in advance!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...