Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

victormickhan

Новичок
  
  • Posts

    2
  • Joined

  • Last visited

victormickhan's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Разобрался) Да, я перепуил с расширениями(tpl и php) . Все гдело в кэше,я его просто не листил/обновлял. В контроллере в файл home.php всивил код: $this->load->model('catalog/category'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['tile']) { //tile - собственная переменная для check в админке $children_data = array(); $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']), 'thumb' => $image, ); } после вывел home.tpl
  2. Здравствуйте. Нужна помощь - не могу вывести категории(нужны свойства типа $categories["href"]) в файле шаблона $home.tpl. Попытки объявления переменной в контроллере файла home.tpl на подобии файлов контроллера header.tpl или category.tpl не увенчались успехом. Поммогите пожалуйси. Спасипотому что!!!
×
×
  • 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.