#1 2015-07-18 14:26

vicsk
Пользователь

Вывод доп.параметра категории

Помогите вывести дополнительный параметр категории, вот тут:
{foreach $top_category.childs as $child_category name=child_categories}
<li><a href="{$child_category.url}">{$child_category.name|escape}</a></li>
{/foreach}

КОНСОЛЬ DEBUG:

$category
$category    Smarty_Variable Object (3)
->value = Array (23)
  id => "2"
  left_key => "1"
  right_key => "74"
  depth => "0"
  parent_id => "0"
  name => "Стеновой профлист"
  meta_title => ""
  meta_keywords => ""
  meta_description => ""
  type => "0"
  url => "stenovoy-proflist"
  full_url => "stenovoy-proflist"
  count => "0"
  description => ""
  conditions => null
  create_datetime => "2015-05-26 18:11:40"
  edit_datetime => "2015-06-23 12:40:16"
  filter => null
  sort_products => null
  include_sub_categories => "0"
  status => "1"
  subcategories => Array (36)
    148 => Array (22)
      id => "148"
      left_key => "2"
      right_key => "3"
      depth => "1"
      parent_id => "2"
      name => "Отмотка-1250 цинк"
      meta_title => ""
      meta_keywords => ""
      meta_description => ""
      type => "0"
      url => "/stenovoy-proflist/otmotka-tsink/"
      full_url => "stenovoy-proflist/otmotka-tsink"
      count => "24"
      description => ""
      conditions => null
      create_datetime => "2015-07-17 13:55:38"
      edit_datetime => "2015-07-18 14:22:47"
      filter => null
      sort_products => null
      include_sub_categories => "0"
      status => "1"
      params => Array (2)
        price => "150"
        hide => "1"

Условие  {if $category.params.hide==1} не срабатывает...

Отредактировано vicsk (2015-07-18 14:30)

Неактивен

 

Board footer

Powered by PunBB