In this blog, we will show you how to use the breadcrumbing modifier of the action of the action of Hook Prestashop.
This hook is present in the administration controller, in particular at the bottom of the “INITBREADCRUMBS” function.
It runs before assigning the variable to the model, allowing you to modify it at the time of execution according to your needs.
In the image above, it is clear that the administrative breadcrumbs are generated according to the specific controller and tab that are used in the Prestashop administration panel.
However, if you want to modify the default breadcrumbs. There is a hook action called Admin Action Modify the calculation modifier.
You can modify and customize the contents of the breadcrumbs in the Prestashop administration panel to better meet your needs.
public function hookActionAdminBreadcrumbModifier($params) { $tabs = $params['tabs']; $breadcrumb = $params['breadcrumb']; foreach ($params['breadcrumb'] as &$item) { if ($item['name'] == 'Welcome') { $item['name'] = 'PrestaShop Home Screen'; $item['icon'] = 'icon-Home'; $item['href'] = '#'; } if ($item['name'] == 'Dashboard') { $item['name'] = 'PrestaShop Home Dashboard'; $item['icon'] = 'icon-dashboard'; $item['href'] = '#'; } } }
In the example of the code above, we have made several changes to navigation during the wire.
More specifically, we have changed the text of the breadcrumbs of “welcome to the Prestashop home screen”. “Dashboard” at a “Prestashop house dashboard” more concise and unified “.
In addition, we have updated HREF attributes to make sure that the links point to correct locations in the application.

In addition, we have also updated icons. Associated with these breadcrumbs to better reflect their new designations. And improve the global user experience.
Using `hook_ction_admin_bredcrumb_modifier`, you can also change the content of the tab available in the Hook function settings.
That’s it.
If you encounter problems or doubts in the above process, do not hesitate to contact us via the comments section.
I would be happy to help.
In addition, you can explore our Prestashop development services and a wide range of quality Prestashop modules.
For any doubt, contact us at [email protected].
Comments are closed, but trackbacks and pingbacks are open.