Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

dzh2000

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

1 Follower

dzh2000's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter
  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Добавил модуль новостей. После добавления в catalog/view/theme/default/template/common/home.tpl кода: <?php if (isset($news)) { ?> <?php echo $news; ?> <?php } ?>в центральной части страницы появился модуль новостей. Только есть проблема. Его шапка не растягивается по ширине, а остается такого же размера, как в модулях слева и справа.Как это исправить?
  2. Разобрался сам. Надо было еще править catalogcontrollercommonheader.php
  3. Использую на локальном компьютере последнюю русскую версию ocStore v0.1.5 (OpenCart 1.4.9.2) Редактирую шапку catalogviewthemedefaulttemplatecommonheader.tpl Хочу использовать переменную $text_news <?php echo $text_news; ?> Предварительно внес изменения в файл cataloglanguagerussiancommonheader.php добавил $_['text_news'] = 'Новости'; При попытке открыть сайт получаю ошибку Notice: Undefined variable: text_news in Z:homeopencartwwwcatalogviewthemedefaulttemplatecommonheader.tpl on line 69 Что еще надо сделать с переменной $text_news?
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.