diff --git a/install-dev/data/xml/hook.xml b/install-dev/data/xml/hook.xml index a3da709313a1b..781bd70c04939 100644 --- a/install-dev/data/xml/hook.xml +++ b/install-dev/data/xml/hook.xml @@ -2655,6 +2655,11 @@ Category footer This hook adds new blocks under the products listing in a category/search + + displayHeaderCategory + Category header + This hook adds new blocks above the products listing in a category/search + actionAdminAdministrationControllerPostProcessBefore On post-process in Admin Configure Advanced Parameters Administration Controller diff --git a/install-dev/upgrade/sql/1.7.8.0.sql b/install-dev/upgrade/sql/1.7.8.0.sql index 95423ef12d022..e3b1fb02746e0 100644 --- a/install-dev/upgrade/sql/1.7.8.0.sql +++ b/install-dev/upgrade/sql/1.7.8.0.sql @@ -11,6 +11,7 @@ INSERT IGNORE INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `po (NULL, 'actionModuleUninstallAfter', 'Module uninstall after', 'This hook is called at the end of module uninstall process', '1'), (NULL, 'displayCartModalContent', 'Cart Presenter', 'This hook displays content in the middle of the window that appears after adding product to cart', '1'), (NULL, 'displayCartModalFooter', 'Cart Presenter', 'This hook displays content in the bottom of window that appears after adding product to cart', '1'), + (NULL, 'displayHeaderCategory', 'Category header', 'This hook adds new blocks above the products listing in a category/search', '1'), (NULL, 'actionCheckoutRender', 'Checkout process render', 'This hook is called when checkout process is constructed', '1'), (NULL, 'actionPresentProductListing', 'Product Listing Presenter', 'This hook is called before a product listing is presented', '1'), (NULL, 'actionGetProductPropertiesAfterUnitPrice', 'Product Properties', 'This hook is called after defining the properties of a product', '1'), diff --git a/themes/classic/templates/catalog/listing/product-list.tpl b/themes/classic/templates/catalog/listing/product-list.tpl index 7dd40bbf23f77..0bd8b3b49b5ca 100644 --- a/themes/classic/templates/catalog/listing/product-list.tpl +++ b/themes/classic/templates/catalog/listing/product-list.tpl @@ -36,6 +36,8 @@ {include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories} {/if} {/block} + + {hook h="displayHeaderCategory"}
{if $listing.products|count}