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

reesol

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

reesol's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Добрый день! Столкнулся с проблемой, что в модуле вывода категорий, не выделяется активная категория, путь имеет следующий вид: index.php?route=product/category&path=59_25 так вот в файле category.tpl, перед списком категорий идет проверка <?php if ($category['category_id'] == $category_id) { ?> <a href="<?php echo $category['href']; ?>" class="active"><?php echo $category['name']; ?></a>и она не true, т.к. в $category['category_id'] приходит 25, а в $category_id = 59В категориях в админке, структура такая "одежа -> новинки". То есть получается, что категория родителя сравнивается с подкатегорией и не выполняется <?php if (($category['children']) && ($category['category_id'] == $category_id)) { ?>Как верно сравнить эти категории, чтобы текущая категория была активной?
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.