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

HelenD

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

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

HelenD's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Добрый день уважаемые форумчане! Очень нужна ваша помощь, ибо не понимаю куда двигаться дальше. В стандартном модуле получается без проблем, а здесь стопор... Добавила в нужное место в .../category.tpl <?php if ($category['image']) { ?> <img src="<?php echo $category['image']; ?>"/> <?php } else { ?> <?php } ?> Начала добавлять в .../category.php и не пойму куда вставлять 'image' => $image Вот часть кода: if(!empty($parts)){ $data['active'] = end($parts); }else{ $data['active'] = 0; } $this->load->model('catalog/tree_cats'); $this->load->model('tool/image'); $data['categories'] = array(); $categories = $this->model_catalog_tree_cats->getTreeCats(); foreach($categories as $id => $category){ $categories[$id]['href'] = $this->url->link('product/category', 'path=' . $category['category_id']); } $data['categories_tree'] = $this->model_catalog_tree_cats->getMapTree($categories); return $this->load->view('extension/module/tree_cats', $data); } }
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.