yustnip Posted February 13, 2015 Posted February 13, 2015 Добрый день! Подскажите, пожалуйста, как вывести модуль "Блок категорий" в левой колонке на странице товара? Пробовал добавить в хук "displayLeftColumnProduct" пишет "Модуль не может быть трансплантирован в хук.". В настройке темы соответствующей галочки нет, как, например, есть для главной страницы. Буду очень признателен за помощь! Share this post Link to post Share on other sites More sharing options...
rewuxiin Posted February 13, 2015 Posted February 13, 2015 ищите по запросу - Как разместить модуль в другом хуке. 1 Share this post Link to post Share on other sites More sharing options...
yustnip Posted February 13, 2015 Posted February 13, 2015 (edited) Спасибо за наводку, активировал displayLeftColumnProduct через добавление в blockcategories.php кода: public function hookdisplayLeftColumnProduct($params) { return $this->hookLeftColumn($params); } Оказалось, что displayLeftColumnProduct мне не подходит, это для правки карточки товара, мне требуется отображение моей левой колонки, что видна на главной и страницах категорий, но не отображается на продуктовой странице. Можно ли активировать эту колонку с модулем "Блок катеогорий" на продуктовых страницах? Edited February 13, 2015 by yustnip (see edit history) Share this post Link to post Share on other sites More sharing options...
rewuxiin Posted February 13, 2015 Posted February 13, 2015 учитывая то что у вас есть return $this->hookLeftColumn($params);все должно работать.возможно в размещении модуля выбраны не все страницы для показа. Share this post Link to post Share on other sites More sharing options...
yustnip Posted February 13, 2015 Posted February 13, 2015 (edited) Не показывается. Видел в инстукциях, что в настройках дефолтной темы нужно галочку ставить для отображения левой колонки на продуктовых страницах, но у меня в админке такого поля нет (тема дефолтная). Edited February 13, 2015 by yustnip (see edit history) Share this post Link to post Share on other sites More sharing options...
rewuxiin Posted February 13, 2015 Posted February 13, 2015 не имею prestashop вашей версии под рукой, так что не могу ничего сказать на этот счет. Share this post Link to post Share on other sites More sharing options...
yustnip Posted February 13, 2015 Posted February 13, 2015 Эх, жаль. В любом случае спасибо за внимание к теме! Share this post Link to post Share on other sites More sharing options...
yustnip Posted February 13, 2015 Posted February 13, 2015 Решил проблему на основе этой иструкции - https://www.prestashop.com/forums/topic/398441-how-to-show-left-column-in-cms-page-prestashop-version-16011/?p=1940426 Только поправил поле с id #27. Теперь в настройках темы можно поставить галочку в поле product (его не было). Видимо, это баг моей версии PrestaShop. Share this post Link to post Share on other sites More sharing options...
braincord Posted March 29, 2015 Posted March 29, 2015 решение здесь есть: coderwall.ru Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now