{# {% macro recursiveCatgories(categories, countryLanguageId) %}
{% set sub_category = [] %}
{% set has_child = 'no' %}
{% for index, category in categories %}
{% if category.child is defined %}
{% set has_child = 'yes' %}
{% set item_type = 'product-category' %}
{% else %}
{% set has_child = 'no' %}
{% set item_type = 'category-product-list' %}
{% endif %}
{% if has_child == 'yes' %}
{{ _self.recursiveCatgories(category.child, countryLanguageId) }}
{% else %}
{% endif %}
{% endfor %}
{% endmacro %}
{{ _self.recursiveCatgories(product_categories, countryLanguageId) }} #}
{% if product_categories is defined and product_categories|length >0 %}
{% for index, category in product_categories %}
{% endfor %}
{% endif %}