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

Artem079

Newbie
  
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

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

Artem079's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Добрый день, @snastik! Подскажите, пожалуйста, как пользоваться этим Profiler? Vqmod установлен. Версия Ocstore 1.5.5.1.2
  2. Добрый день, @markimax! Подскажите, пожалуйста, можно ли во вкладке "Схемы", в поле указания URL как-то указать точное соответствие URL, по которому будет отображаться виджет? Уточню, что в таком случае [velosipedy/], виджет отображается и на страницах, типа: site.ru/velosipedy/&page=2 site.ru/velosipedy/&filter= и т.д. Возможно есть какой-то спецсимвол или еще какой прием для решения этого случая? p.s. в мануале по SeoCms Top не нашел информации. Заранее спасибо!
  3. Добрый день! Можно ли получить ваш фильтр на 2-3 дня, чтобы протестировать его и принять решение о покупке? Есть ряд требований и пожеланий к фильтру, которые не получается проверить на демо-доступе.
  4. Добрый день! Opencart 1.5 Ошибка при переходе Каналы продвижения -> UniXML -> изменить(редактировать) Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Loader' does not have a method 'controller' in /home/f/ffb79291/formand.ru/public_html/system/library/agoo/loader.php on line 132Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Loader' does not have a method 'controller' in /home/f/ffb79291/formand.ru/public_html/system/library/agoo/loader.php on line 132Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Loader' does not have a method 'controller' in /home/f/ffb79291/formand.ru/public_html/system/library/agoo/loader.php on line 132Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Loader' does not have a method 'view' in /home/f/ffb79291/formand.ru/public_html/system/library/agoo/loader.php on line 132
  5. Спасибо за ответ!) Но стало понятнее не более, чем было) Это более-менее понятно, а как тогда еще можно сделать цикл вывода "соседних" категорий в шаблоне *tpl?
  6. Добрый день! Opencart 1.5, да, не свежий, но работает) Как сейчас: на странице категории 2го уровня "1111", над списком товаров отображены "соседние категории" и подкатегории этой самой категории "1111". Соседние, я имею ввиду: все категории 2го уровня главной категории. Если я нахожусь на странице категории 3го уровня, то у меня эти самый "соседние" категории не отображаются впринципе. Догадываюсь, что в php файле category.php в директории controller/product/ код разбирает только категории 1 и 2 уровня, но не глубже. Вопрос: как сделать так, чтобы отображались "соседние" категории в 3 уровне вложенности? часть controller/product/category.php if (isset($this->request->get['path'])) { $parts = explode('_', (string)$this->request->get['path']); } else { $parts = array(); } if (isset($parts[0])) { $this->data['category_id'] = $parts[0]; } else { $this->data['category_id'] = 0; } if (isset($parts[1])) { $this->data['child_id'] = $parts[1]; } else { $this->data['child_id'] = 0; } $this->data['allcategories'] = array(); $allcategories = $this->model_catalog_category->getCategories(0); foreach ($allcategories as $allcategory) { $children_data = array(); $children = $this->model_catalog_category->getCategories($allcategory['category_id']); foreach ($children as $child) { $children_data[] = array( 'category_id' => $child['category_id'], 'sub' => $child['sub'], 'name' => $child['name'], 'href' => $this->url->link('product/category', 'path=' . $allcategory['category_id'] . '_' . $child['category_id']), 'thumb' => $this->model_tool_image->resize(($child['image']=='' ? 'no_image.jpg' : $child['image']), $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')) ); } $this->data['allcategories'][] = array( 'category_id' => $allcategory['category_id'], 'name' => $allcategory['name'], 'children' => $children_data, 'href' => $this->url->link('product/category', 'path=' . $allcategory['category_id']), 'thumb' => $this->model_tool_image->resize(($allcategory['image']=='' ? 'no_image.jpg' : $allcategory['image']), $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')) ); } часть кода тема/template/product/category.tpl <?php foreach ($allcategories as $allcategory) { ?> <?php if ($allcategory['category_id'] == $parent_id) { ?> <div class="sub2_text">Похожие категории</div> <div class="temp-categories-list"> <ul> <?php foreach ($allcategory['children'] as $child) { ?> <?php if ($child['category_id'] !== $category_id and !$child['sub']) { ?> <li><a title="<?php echo $child['name']; ?>" href="<?php echo $child['href'];?>"><img alt="<?php echo $child['name']; ?>" src="<?php echo $child['thumb']; ?>"><br><?php echo $child['name']; ?></a></li> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <?php } ?> Помогите, пожалуйста, с решением, ну или хотя бы может будут мысли какие у вас
×
×
  • 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.