app/template/airconwork/Module/category_search.twig line 1

Open in your IDE?
  1. {% set Category = repository('Eccube\\Entity\\Category').find(cid) %}
  2. {% set cate_childs = Category.getDescendants %}
  3. {% if cate_childs %}
  4. {% set h = Category.hierarchy + 1 %}
  5. {% for cate in cate_childs %}
  6. {% if h == cate.hierarchy and cate.hidden_flag == 0 %}
  7. <option label="{{ cate.name }}" value="{{ cate.id }}" data-id="category_id_{{ cate.id }}">{{ cate.name }}</option>
  8. {% endif %}
  9. {% endfor %}
  10. {% endif %}