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

SorDes

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

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

SorDes's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Добрый день! Подскажите пожалуйста, как полностью убрать сортировку? Мне нужно что бы работала стандартная сортировка opencart
  2. Добрый день! Как вывести категории в карточке товара, в следующем виде: -Категория --Подкатегория ... Сейчас выводятся все подряд. Код в контроллере: $catprod = array(); $product_category = $this->model_catalog_product->getCategories($product_id); foreach ($product_category as $prodcat) { $category_info = $this->model_catalog_category->getCategory($prodcat['category_id']); if ($category_info) { $data['catprod'][] = array( 'name' => $category_info['name'], 'href' => $this->url->link('product/category', 'path=' . $category_info['category_id']) ); } } Код в product.tpl: <ul class="list-unstyled"> Категории: <?php foreach ($catprod as $catp) { ?> <li><a href="<?php echo $catp['href']; ?>" rel="nofollow"><?php echo $catp['name']; ?></a>;</li> <?php } ?> </ul> Помогите пожалуйста!
  3. Добрый день! На странице товара нужно вывести все категории, к которым относится этот товар, сохраняя иерархию. Сейчас они выводятся подряд, пример: Категории: обувь, мужская обувь, кеды А нужно, пример: Категории: - Обувь - - Мужская обувь - - - Кеды
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.