<div class="ui breadcrumb">
<a href="{{ path('sylius_shop_homepage') }}" class="section">{{ 'sylius.ui.home'|trans }}</a>
<div class="divider"> / </div>
{% if product.mainTaxon is not null %}
{% set taxon = product.mainTaxon %}
{% set ancestors = taxon.ancestors|reverse %}
{% for ancestor in ancestors %}
{% if not ancestor.isRoot() %}
{% if not ancestor.enabled %}
<div class="section">{{ ancestor.name }}</div>
{% else %}
<a href="{{ path('bitbag_sylius_elasticsearch_plugin_shop_list_products', {
'slug': ancestor.slug,
'_locale': ancestor.translation.locale,
'products':'products'|trans,
'product_category':'product_category'|trans
}) }}" class="section">{{ ancestor.name }}</a>
{% endif %}
<div class="divider"> / </div>
{% endif %}
{% endfor %}
{% if taxon.enabled %}
<a href="{{ path('bitbag_sylius_elasticsearch_plugin_shop_list_products', {
'slug': taxon.slug,
'products':'products'|trans,
'product_category':'product_category'|trans,
'_locale': taxon.translation.locale})
}}" class="section">{{ taxon.name }}</a>
{% else %}
<div class="section">{{ taxon.name }}</div>
{% endif %}
{% endif %}
</div>