Hello - Relativley new here to Zen Cart - but here is what I need some help with.


I've added a column to the customers table called memberid. I need to have this id to reference a rewards program number, so it is different than the customersid (primary key). When an order is submitted, I need to have the memberid inserted into the orders table, in the same way the customerid is. I've added the column to the orders table, I just don't seem to be doing the right thing to get it to pull from the customers table, then insert into the orders table.

I've adjusted the includes/classes/order.php file - but obviously am missing something!
ANY help would be GREATLY appreciated!!