Back to Top

Display information at the header on the render list page in PrestaShop

Updated 8 August 2022

In this blog, we are going to learn how to display some information according to our needs on the BO render list page.

Test-Product-•-PS1785
Render list with header information

So let’s understand how to achieve it:

We will get it only by one file change.

We will use PrestaShop extends tpl file and override the block content of tpl file feature.

Now, We will create list_header.tpl file at the below path in your module directory.

Searching for an experienced
Prestashop Company ?
Find out More

modules/your-module/views/templates/admin/your-controller-name/helpers/list

After creating the file, We will add the below code to this file.

{extends file="helpers/list/list_header.tpl"}
{block name=leadin}
    <div class="alert alert-info">{l s='Hi there, You can show any information according to your need.' mod='wktestproduct'}</div>
{/block}

In the above code, We are extending list_header.tpl file from admin theme and also override leadin block content by our needed information content.

That’s all about this blog. Hope it will help you.

If you are facing any issues or doubts in the above process, please feel free to contact us through the comment section.

Also, you can explore our PrestaShop Development Services & a large range of quality PrestaShop Modules.

For any doubt contact us at [email protected].

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home