fatbeatscom Posted February 17, 2007 Share Posted February 17, 2007 Hello, I am working on a way to add more values to my items. I have successfully added them in the products table, but I want the values to carry over when the customers place an order. Does anyone know where in the code oscommerce inserts new order information into the "orders_products" table? Thanks, Adam Link to comment Share on other sites More sharing options...
Velveeta Posted February 17, 2007 Share Posted February 17, 2007 Hello, I am working on a way to add more values to my items. I have successfully added them in the products table, but I want the values to carry over when the customers place an order. Does anyone know where in the code oscommerce inserts new order information into the "orders_products" table? Thanks, Adam Information is inserted into the orders_products table in the checkout_process.php file in your catalog root... If you want values to carry over from your product data to your orders_products table, I would suggest editting the shopping_cart class file and adding those values to the products array that's constructed in the get_products function... The order class calls get_products to build its own order->products array, and it's from that array that values are stuffed into orders_products at checkout time... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.