I'm running Zen Cart 1.3.8a, Patch: 1::, Database Patch Level: 1.3.8, and PHP Version 5.2.13.

What I want to do is pretty straight forward but I have yet to attempt a modification like this one. All I want to do is add two fields to the order_products table at the time of purchase/checkout...

The unit_cost field from the products table AND the options_unit_cost from the products_attributes table.

I know how to manually add these variables to the MySQL table, but I have no idea where/how to edit my php code to make the auto-populate happen at the time of purchase. Any help from one of you experienced Zenners would be greatly appreciated.

Thanks so much,
-Dan