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

gektor

Newbie
  
  • Posts

    16
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

gektor's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Здравствуйте, 1) В шаблоне кнопка справа в самому низу, которая при нажатии перекидывает наверх страницы - отображается некорректно (не отображается сама стрелочка). 2) Подскажите, пожалуйста, как исправить ссылку на новости сайта с вида /index.php?route=octemplates/blog_articles на /blog или /blog_articles (ЧПУ и SEO PRO включено, остальные ссылки на страницы О нас, Контакты и Информация о доставке отображается корректно).
  2. Подскажите, пожалуйста, как уменьшить ширину столбцов выпадающего меню? Меню реализовано через bootstrap. Я так понимаю, что необходимо увеличить количество столбцов, таким образом уменьшая их ширину (как-то с помощью col-sm). Надеюсь, объяснил правильно, но не знаю в каком файле css (bootstrap.css, stylesheet.css, menu.css) изменять это и где конкретно.
  3. Спасибо большое, сработало. Только в мобильном виде в меню категории 3-го уровня не отображаются(
  4. Тема - не стандартная. Пробовал разные бесплатные модули, чтобы делать вывод категорий 3-го уровня, - ни один не сработал. Подскажите, пожалуйста. В файле \catalog\controller\common\header.php заменил это: foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } на это: foreach ($children as $child) { $children_data2 = array(); $children2 = $this->model_catalog_category->getCategories($child['category_id']); foreach ($children2 as $child2) { $children_data2[] = array( 'name' => $child2['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $child['category_id'] . '_' . $child2['category_id']), ); } $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']), 'children' => $children_data2, ); } Подскажите, пожалуйста, как теперь изменить файл header.tpl? Вот код, отвечающий за вывод горизонтального меню: <div class="megamenu-wrapper"> <div class="megamenu-pattern"> <div class="container"> <ul class="megamenu shift-up"> <?php foreach ($categories as $category) { ?> <?php if ($category['children']) { ?> <li class="with-sub-menu hover"><p class="close-menu"></p><p class="open-menu"></p> <a href="<?php echo $category['href'];?>"><span><strong><?php echo $category['name']; ?></strong></span></a> <?php } else { ?> <li> <a href="<?php echo $category['href']; ?>"><span><strong><?php echo $category['name']; ?></strong></span></a> <?php } ?> <?php if ($category['children']) { ?> <?php $width = '100%'; $row_fluid = 3; if($category['column'] == 1) { $width = '220px'; $row_fluid = 12; } if($category['column'] == 2) { $width = '500px'; $row_fluid = 6; } if($category['column'] == 3) { $width = '700px'; $row_fluid = 4; } ?> <div class="sub-menu" style="width: <?php echo $width; ?>"> <div class="content"> <p class="arrow"></p> <div class="row hover-menu"> <?php for ($i = 0; $i < count($category['children']);) { ?> <div class="col-sm-<?php echo $row_fluid; ?> mobile-enabled"> <div class="menu"> <ul> <?php $j = $i + ceil(count($category['children']) / $category['column']); ?> <?php for (; $i < $j; $i++) { ?> <?php if (isset($category['children'][$i])) { ?> <li><a href="<?php echo $category['children'][$i]['href']; ?>" class="main-menu"><?php echo $category['children'][$i]['name']; ?></a></li> <?php } ?> <?php } ?> </ul> </div> </div> <?php } ?> </div> </div> </div> <?php } ?> </li> <?php } ?> </ul> </div> </div> </div> </div> </div> </div> </div> <?php } ?> <?php if($theme_options->get( 'megamenu_type' ) == 4 || $theme_options->get( 'megamenu_type' ) == 5 || $theme_options->get( 'megamenu_type' ) == 6 || $theme_options->get( 'megamenu_type' ) == 9 || $theme_options->get( 'megamenu_type' ) == 14 || $theme_options->get( 'megamenu_type' ) == 19 || $theme_options->get( 'megamenu_type' ) == 29) { ?> </div> <?php } ?>
  5. В Opencart 2.3. есть меню Система-Импорт / Экспорт. Чтобы узнать какой вид должен иметь файл импорта, сделал экспорт. Взяв за основу этот, попробовал добавить категорию в таком же виде, создав новый файл с разрешением .sql и сделал импорт. После нажатия "Импорт" выдает ошибку 500 - невозможно обработать запрос. Подскажите, пожалуйста, что неправильно делаю. Файл для импорта: TRUNCATE TABLE `oc_category`; INSERT INTO `oc_category` (`category_id`, `image`, `parent_id`, `top`, `column`, `sort_order`, `status`, `date_added`, `date_modified`) VALUES ('71', '', '59', '1', '1', '0', '1', '2017-07-07 14:30:09', '2017-07-07 16:20:42'); TRUNCATE TABLE `oc_category_description`; INSERT INTO `oc_category_description` (`category_id`, `language_id`, `name`, `description`, `meta_title`, `meta_description`, `meta_keyword`, `meta_h1`) VALUES ('71', '2', 'Категория', '', '', '', '', '');
  6. Спасибо огромное! Сделал только для категорий - все заработало!
  7. Хлебные крошки везде отображаются в виде Home-Категория и т.д. Как сделать так, чтобы было Главная вместо Home. Русифицированный Opencart 2.3
  8. Шаблон англоязычный - не подходит для ocStore
  9. Установил обычную Opencart 2.3. В ней возможности прописывать отдельный h1 для категорий, а им по умолчанию является то, что прописывается в названии категории. Нужно, чтобы то, что выводится в меню и h1 были разными (как в оСstore). Подскажите, пожалуйста, или модуль, или другой вариант решения, чтобы при этом не было 2 h1 на одной категории.
×
×
  • 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.