Jump to content

Adding a Column to Order History front with a Custom Module


Recommended Posts

Posted (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

Screenshot 2024-05-05 at 18-53-05 Historique de vos commandes.png

Edited by Sandy Grassineau (see edit history)
Link to comment
Share on other sites

  • Sandy Grassineau changed the title to Adding a Column to Order History front with a Custom Module

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

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

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...