{"id":16307,"date":"2018-07-19T14:46:25","date_gmt":"2018-07-19T12:46:25","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=16307"},"modified":"2026-06-25T19:28:34","modified_gmt":"2026-06-25T17:28:34","slug":"creating-custom-hooks-in-prestashop-1-7","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html","title":{"rendered":"Creating Custom Hooks in PrestaShop 1.7"},"content":{"rendered":"\n<p>Hooks in PrestaShop is the most important component for inserting modules into your theme. In this article, I will try to talk about all the pitfalls that can be encountered while using this important and interesting functionality.<\/p>\n<p><!--more--><\/p>\n<h2><strong>Basic hooks in PrestaShop<\/strong><\/h2>\n<p>Let&rsquo;s start with the basic names of hooks that are used in PrestaShop.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Hook&rsquo;s name<\/strong><\/td>\n<td><strong>Hook&rsquo;s description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>displayHeader<\/td>\n<td>For inserting modules in the header<\/td>\n<\/tr>\n<tr>\n<td>displayTop<\/td>\n<td>For inserting modules between the header and the content<\/td>\n<\/tr>\n<tr>\n<td>displayBanner<\/td>\n<td>For inserting banners or images before the cap<\/td>\n<\/tr>\n<tr>\n<td>displayHome<\/td>\n<td>For inserting modules on the main page<\/td>\n<\/tr>\n<tr>\n<td>displayLeftColumn<\/td>\n<td>For inserting modules in the left column<\/td>\n<\/tr>\n<tr>\n<td>displayRightColumn<\/td>\n<td>For inserting modules in the right column<\/td>\n<\/tr>\n<tr>\n<td>displayFooter<\/td>\n<td>For inserting modules into the footer<\/td>\n<\/tr>\n<tr>\n<td>displayNotFound<\/td>\n<td>For inserting modules on the error page<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can find a more detailed list of all hooks in the <a href=\"https:\/\/devdocs.prestashop.com\/1.7\/modules\/concepts\/hooks\/list_of_hooks\/#full-list\" target=\"_blank\" rel=\"noopener\">official PrestaShop documentation<\/a>.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/module-presta.com\/themes.html\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/Artboard-153-%D0%BA%D0%BE%D0%BF%D0%B8%D1%8F-13.png\" width=\"481\" height=\"480\" alt=\"Prestashop 1.6 - 1.7 Themes\" class=\"module_image\" title=\"Creating Custom Hooks in PrestaShop 1.7\"><div class=\"module_content_part\"><h3 class=\"title\">Prestashop 1.6 - 1.7 Themes<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG design<\/p><a href=\"https:\/\/module-presta.com\/themes.html\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Click to check out the designs<\/span><\/a><\/div><\/div><\/div>\n<h2><strong>Creating custom hooks in PrestaShop<\/strong><\/h2>\n<p>Now let&rsquo;s take a look at creating your own hooks in a PrestaShop theme. To do it, we go to the theme&rsquo;s directory, for example,<strong> \/themes\/classic\/<\/strong>, and select the necessary template in the <strong>templates\/<\/strong> folder. I chose the site&rsquo;s header template that is located at <strong>\/themes\/classic\/templates\/_partials\/header.tpl<\/strong>. With the help of the <em>{hook h = &lsquo;MyCustomNameHooks&rsquo;}<\/em> construction we will add our hook to the header of our template: <em>{hook h = &lsquo;MySocialListHeader&rsquo;}.<\/em><\/p>\n<p>For this purpose, I prepared a <strong>childBelvg<\/strong> child theme for the classic theme. The structure is the same, however, we will override our&nbsp;<strong>\/themes\/childBelvg\/templates\/_partials\/header.tpl&nbsp;<\/strong>header file. We will also add a social network module to our file with the help of <strong>bootstrap<\/strong>. I added another block and thus divided our header into 3 columns.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image61.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16308\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image61.png\" alt=\"image6\" width=\"1399\" height=\"826\" title=\"Creating Custom Hooks in PrestaShop 1.7\"><\/a><\/p>\n<p>After we added our hook to the header, we need to make it display on the admin panel. To do this, we&rsquo;ll go to the configuration file of our <strong>\/themes\/childBelvg\/config\/theme.yml<\/strong> theme and add the following construction:<\/p>\n<p><strong>global_settings:<\/strong><\/p>\n<p>hooks:<br>\ncustom_hooks:<br>\n&ndash; name: displayMySocialListHeader<br>\ntitle: displayMySocialListHeader<br>\ndescription: Add social block in the header<br>\nmodules_to_hook:<br>\ndisplayMySocialListHeader:<br>\n&ndash; ps_socialfollow<\/p>\n<p>Now we will do this in our code editor (IDE):<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image8.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16309\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image8.png\" alt=\"image8\" width=\"2001\" height=\"1003\" title=\"Creating Custom Hooks in PrestaShop 1.7\"><\/a><\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/audit.belvg.com\/\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2024\/07\/Get-an-audit-of-your-store.webp\" width=\"121\" height=\"121\" alt=\"CRO_audit_process\" class=\"module_image\" title=\"Creating Custom Hooks in PrestaShop 1.7\"><div class=\"module_content_part\"><h3 class=\"title\">Check How Your Custom Hooks Affect Performance<\/h3><p class=\"module_content_text\">After deploying new hooks, scan your store to detect issues that may affect the customer experience<\/p><a href=\"https:\/\/audit.belvg.com\/\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Scan The Store<\/span><\/a><\/div><\/div><\/div>\n<p>The complete configuration of the <strong>\/themes\/childBelvg\/config\/theme.yml<\/strong> file will look like this:<\/p>\n<p><span style=\"color: #808080;\">parent: classic<\/span><br>\n<span style=\"color: #808080;\">name: childBelvg<\/span><br>\n<span style=\"color: #808080;\">display_name: My child Theme Belvg<\/span><br>\n<span style=\"color: #808080;\">version: 1.0.0<\/span><\/p>\n<p><span style=\"color: #808080;\">assets:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;use_parent_assets: true<\/span><\/p>\n<p><span style=\"color: #808080;\">global_settings:<\/span><\/p>\n<p><span style=\"color: #808080;\"> &nbsp;hooks:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;custom_hooks:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&ndash; name: displayMySocialListHeader<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title: displayMySocialListHeader<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description: Add social block in the header<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;modules_to_hook:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;displayMySocialListHeader:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&ndash; ps_socialfollow<\/span><\/p>\n<p><span style=\"color: #808080;\"> &nbsp;image_types:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;cart_default:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 125<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 125<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scope: [products]<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;small_default:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 98<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 98<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scope: [products, categories, manufacturers, suppliers]<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;medium_default:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 452<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 452<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scope: [products, manufacturers, suppliers]<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;home_default:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 250<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 250<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scope: [products]<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;large_default:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 800<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 800<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scope: [products, manufacturers, suppliers]<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;category_default:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 141<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 180<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scope: [categories]<\/span><\/p>\n<p><span style=\"color: #808080;\">theme_settings:<\/span><br>\n<span style=\"color: #808080;\"> &nbsp;default_layout: layout-full-width<\/span><\/p>\n<p>Now let&rsquo;s see if we have our hook on the admin panel. Go to the hook management at <strong>Admin panel &rarr; Design &rarr; Positions &rarr; Transplant a module.<\/strong><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16310\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image2.png\" alt=\"image2\" width=\"1439\" height=\"781\" title=\"Creating Custom Hooks in PrestaShop 1.7\"><\/a><\/p>\n<p>Now we can go to the store frontend and see the changes:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16311\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image5.png\" alt=\"image5\" width=\"1439\" height=\"779\" title=\"Creating Custom Hooks in PrestaShop 1.7\"><\/a><\/p>\n<p>Done. Hope this was useful, please leave your comments in the comment section if something remained unclear.<\/p>\n<p>Looking for a stylish and functional PrestaShop webstore design? <a href=\"https:\/\/module-presta.com\/themes.html\" target=\"_blank\" rel=\"noopener\">Check out<\/a> our custom themes for PrestaShop 1.6-1.7.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/prestashop-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/development_prestashop.png\" width=\"100\" height=\"100\" alt=\"development_prestashop\" class=\"module_image\" title=\"Creating Custom Hooks in PrestaShop 1.7\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Development<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG PrestaShop Development<\/p><a href=\"https:\/\/belvg.com\/prestashop-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"A guide on creating custom hooks in PrestaShop 1.7.","protected":false},"author":8,"featured_media":16312,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,470,520,521],"tags":[],"class_list":["post-16307","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-tutorial","category-prestashop-custom-development","category-prestashop-webdesign","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn how to create custom hooks in PrestaShop. Get a list of basic hooks &amp; easy step-by-step guide by a professional developer.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Denis Guriyanov\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#article\",\"name\":\"How to create Custom Hooks in PrestaShop | BelVG Blog\",\"headline\":\"Creating Custom Hooks in PrestaShop 1.7\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/Creating-Custom-Hooks-in-PrestaShop-1-7.jpg\",\"width\":770,\"height\":433},\"datePublished\":\"2018-07-19T14:46:25+02:00\",\"dateModified\":\"2026-06-25T19:28:34+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":8,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#webpage\"},\"articleSection\":\"Prestashop, Prestashop 1.7 Tutorials, PrestaShop Custom Development, PrestaShop Webdesign, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#listItem\",\"name\":\"Creating Custom Hooks in PrestaShop 1.7\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#listItem\",\"position\":3,\"name\":\"Creating Custom Hooks in PrestaShop 1.7\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov\",\"name\":\"Denis Guriyanov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cc371af19f9c419cb0c2033bd26757f6b08fce63e66c556d882502284fb0b8a1?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Denis Guriyanov\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html\",\"name\":\"How to create Custom Hooks in PrestaShop | BelVG Blog\",\"description\":\"Learn how to create custom hooks in PrestaShop. Get a list of basic hooks & easy step-by-step guide by a professional developer.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/Creating-Custom-Hooks-in-PrestaShop-1-7.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html\\\/#mainImage\",\"width\":770,\"height\":433},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-custom-hooks-in-prestashop-1-7.html#mainImage\"},\"datePublished\":\"2018-07-19T14:46:25+02:00\",\"dateModified\":\"2026-06-25T19:28:34+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to create Custom Hooks in PrestaShop | BelVG Blog","description":"Learn how to create custom hooks in PrestaShop. Get a list of basic hooks & easy step-by-step guide by a professional developer.","canonical_url":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#article","name":"How to create Custom Hooks in PrestaShop | BelVG Blog","headline":"Creating Custom Hooks in PrestaShop 1.7","author":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/Creating-Custom-Hooks-in-PrestaShop-1-7.jpg","width":770,"height":433},"datePublished":"2018-07-19T14:46:25+02:00","dateModified":"2026-06-25T19:28:34+02:00","inLanguage":"en-US","commentCount":8,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#webpage"},"articleSection":"Prestashop, Prestashop 1.7 Tutorials, PrestaShop Custom Development, PrestaShop Webdesign, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#listItem","name":"Creating Custom Hooks in PrestaShop 1.7"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#listItem","position":3,"name":"Creating Custom Hooks in PrestaShop 1.7","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author","url":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov","name":"Denis Guriyanov","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/cc371af19f9c419cb0c2033bd26757f6b08fce63e66c556d882502284fb0b8a1?s=96&d=mm&r=g","width":96,"height":96,"caption":"Denis Guriyanov"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#webpage","url":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html","name":"How to create Custom Hooks in PrestaShop | BelVG Blog","description":"Learn how to create custom hooks in PrestaShop. Get a list of basic hooks & easy step-by-step guide by a professional developer.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/Creating-Custom-Hooks-in-PrestaShop-1-7.jpg","@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html\/#mainImage","width":770,"height":433},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html#mainImage"},"datePublished":"2018-07-19T14:46:25+02:00","dateModified":"2026-06-25T19:28:34+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"16307","title":"How to create Custom Hooks in PrestaShop | #site_title","description":"Learn how to create custom hooks in PrestaShop. Get a list of basic hooks &amp; easy step-by-step guide by a professional developer.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:06","updated":"2026-11-03 18:37:06"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating Custom Hooks in PrestaShop 1.7\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"Creating Custom Hooks in PrestaShop 1.7","link":"https:\/\/belvg.com\/blog\/creating-custom-hooks-in-prestashop-1-7.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=16307"}],"version-history":[{"count":4,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16307\/revisions"}],"predecessor-version":[{"id":30713,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16307\/revisions\/30713"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/16312"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=16307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=16307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=16307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}