BenitoBenitez Posted December 23, 2013 Share Posted December 23, 2013 Hi, i need add a new table in ps_order_details and insert into when i do Order manually. i edit a little the file PaymentModule.php but i cant edit when prestashop Create the tablet order_details only i can edit ps_orders and that i not want Anything idea? Thanks And sorry bad english Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 23, 2013 Share Posted December 23, 2013 Hi. You want to edit the table or add a new table? Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
BenitoBenitez Posted December 23, 2013 Author Share Posted December 23, 2013 Hi! I know how create new table, But i dont know how insert information in the table ps_order_details when i create new order manually, how works this in prestashop? Thanks! Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 23, 2013 Share Posted December 23, 2013 Are you creating the order in Back office? Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
BenitoBenitez Posted December 23, 2013 Author Share Posted December 23, 2013 Are you creating the order in Back office? Regards. Robin. The CartExpert Team I Think yes, i new user whit prestashop. /index.php?controller=AdminOrders&addorder&token=31f26fb1a621e6a0a43b5f705f5e9f9d but in AdminOrdersController.php I cant see nothing abaout the codes of insert in ps_order_details Regards Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 23, 2013 Share Posted December 23, 2013 (edited) Check the function ajaxProcessAddProductOnOrder line 1702 The create function of OrderDetail will be adding the details. Regards.Robin.The CartExpert Team Edited December 23, 2013 by CartExpert.net (see edit history) Link to comment Share on other sites More sharing options...
BenitoBenitez Posted December 23, 2013 Author Share Posted December 23, 2013 Thanks, But i not understand as that lines can help me. i need change the variable product_name where is save at mysql ps_order_detail, I dont Know as explain best Regards Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 23, 2013 Share Posted December 23, 2013 (edited) The 'create' function of OrderDetail will be adding the details, line 549 in OrderDetail.php Have a look at it. Regards.Robin.The CartExpert Team Edited December 23, 2013 by CartExpert.net (see edit history) Link to comment Share on other sites More sharing options...
BenitoBenitez Posted December 23, 2013 Author Share Posted December 23, 2013 The create function of OrderDetail will be adding the details, line 549 in OrderDetail.php Have a look at it. Regards. Robin. The CartExpert Team That its! Very thanks, serius. Regards! Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 23, 2013 Share Posted December 23, 2013 Please mark the post as [sOLVED] Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now