vivianne Posted September 6, 2019 Share Posted September 6, 2019 (edited) I have the challenge to integrate a custom field in the back office into the order detail page, which I can then output on the invoice. We somehow have to label which orders are placed from our local stores (different ones) and which are placed online. Unfortunately, the POS recorded in Prestashop cannot yet be assigned to an order. Does anyone have a solution for this? We work with Prestashop 1.7.6 Edited September 6, 2019 by vivianne (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 9, 2019 Share Posted September 9, 2019 the template for that page is located in the admin folder, for the default theme, then templates, controllers, orders, just locate view.tpl in there. You can add the field as a new form, but you will have to include the order id within it. Also, after that you will have to edit adminorderscontroller to save the field, in the postProcess method. In order to save it though, you must add a new column to the database, as well as a new property to the Order.php class. That should save it. As for the invoice, have a look at HTMLTemplateInvoice.php, you can assign it there, or use the order object directly in the pdf template 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