Sandy Grassineau Posted May 5, 2024 Share Posted May 5, 2024 (edited) Prestashop 8.1 Hello everyone, I am working on a PrestaShop module to manage specific sites (sites as in construction sites) and assign orders to these sites. I have successfully created the necessary tables and recorded the associations between the orders and the sites. Now, I want to add a "Site - chantier" column to the order history in the front office dashboard to display the name of the site associated with each order. Any help or guidance would be greatly appreciated! Thanks in advance! sitemanagement.phpFetching info... Edited May 5, 2024 by Sandy Grassineau (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted May 6, 2024 Share Posted May 6, 2024 Hi. Just edit the TPL template, add a column and put your own hook in the column. Next, you create a hook in your module, register and load data, for example, according to the order id or order reference. If you want to upload files here in the forum, you need to zip them. Link to comment Share on other sites More sharing options...
Sandy Grassineau Posted May 6, 2024 Author Share Posted May 6, 2024 On 5/6/2024 at 11:55 AM, ps8modules.com said: Hi. Just edit the TPL template, add a column and put your own hook in the column. Next, you create a hook in your module, register and load data, for example, according to the order id or order reference. If you want to upload files here in the forum, you need to zip them. Expand Hi, Thank you for your reply. Attached you will find an zip with my sitemanagement module and my history.tpl file. module sitemanagement + tpl.zipFetching info... Link to comment Share on other sites More sharing options...
ps8modules Posted May 7, 2024 Share Posted May 7, 2024 Hi. In the module there is a hookDisplayChantier and in the TPL template there is a hook displayChantier. module sitemanagement + tpl.zipFetching info... 1 Link to comment Share on other sites More sharing options...
Sandy Grassineau Posted June 4, 2024 Author Share Posted June 4, 2024 Thank you very much it's Ok ! 1 Link to comment Share on other sites More sharing options...
LauraBdG Posted March 9 Share Posted March 9 Good morning @Sandy Grassineau and @ps8modules , Do you think it is possible to add a "Delivery Slip" column to give the customer the possibility to download the delivery document? I tried ... I created the new column and created a new checkbox in the BO within the order statuses but unfortunately no document is displayed😕. Do you have any suggestions for me? Thank you😊 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