Этот модуль обычный, ничего особенного в нем нет. Вы делали что-то не правильно, поэтому и не получалось.
Если все делать так как вам написали:
1. Добавить хук в таблицу ps_hook
INSERT INTO `ps_hook` (`id_hook`, `name`, `title`, `description`, `position`, `live_edit`) VALUES (NULL, 'underdesc', 'UnderDesc', 'My hook UnderDesc', '1', '0');
2. Добавить хук в /controllers/front/ProductController.php
protected function assignCategory()
{
.......
$this->context->smarty->assign(array(
'HOOK_PRODUCT_FOOTER' => Hook::exec('displayFooterProduct', array('product' => $this->product, 'category' => $this->category)),
'HOOK_underDesc' => Hook::exec('underDesc', array('product' => $this->product, 'category' => $this->category))
));
}
3. Добавить вывод хука в шаблон /themes/default/product.tpl
{if isset($packItems) && $packItems|@count > 0}
<div id="blockpack">
<h2>{l s='Pack content'}</h2>
{include file="$tpl_dir./product-list.tpl" products=$packItems}
</div>
{/if}
{if isset($HOOK_underDesc) && $HOOK_underDesc}{$HOOK_underDesc}{/if}
4. Определить хук в модуле /modules/productscategory/productscategory.php
public function install()
{
Configuration::updateValue('PRODUCTSCATEGORY_DISPLAY_PRICE', 0);
$this->_clearCache('productscategory.tpl');
return (parent::install()
&& $this->registerHook('productfooter')
&& $this->registerHook('header')
&& $this->registerHook('addproduct')
&& $this->registerHook('updateproduct')
&& $this->registerHook('deleteproduct')
&& $this->registerHook('underdesc')
);
}
....
public function hookUnderDesc($params)
{
return $this->hookProductFooter($params);
}
5. В админке Модули найти модуль Дополнительные товары, нажать Сбросить.
6. В Модули > Расположение блоков найти Product footer (Техническое имяdisplayFooterProduct) и удалить из него Дополнительные товары.
То в результате модуль будет показан только в новом хуке, ниже описания товара.