Краткое описание в модули

  • Краткое описание в модули

Выводим краткое описание в модули - Новые поступления, Рекомендуем, Хиты продаж,  Акции

В шаблоне в папке module открываем файл featured.tpl

после
<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
добавляем
<div id="short-dis"><?php echo $product['description']; ?></div>

По аналогии делаем с другими файлами latest.tpl bestseller.tpl special.tpl

Далее идем в папку catalog > controller > module и открываем файл featured.php

после
'product_id' => $product_info['product_id'],
добавляем
'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',

По аналогии делаем с другими файлами latest.tpl bestseller.tpl special.tpl

после
'product_id' => $result['product_id'],
добавляем
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',