Sandy Grassineau Posted May 5 Share Posted May 5 (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.php Edited May 5 by Sandy Grassineau (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted May 6 Share Posted May 6 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 Author Share Posted May 6 1 hour ago, 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. Hi, Thank you for your reply. Attached you will find an zip with my sitemanagement module and my history.tpl file. module sitemanagement + tpl.zip Link to comment Share on other sites More sharing options...
ps8modules Posted May 7 Share Posted May 7 Hi. In the module there is a hookDisplayChantier and in the TPL template there is a hook displayChantier. module sitemanagement + tpl.zip 1 Link to comment Share on other sites More sharing options...
Sandy Grassineau Posted June 4 Author Share Posted June 4 Thank you very much it's Ok ! 1 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