{% import '@SyliusShop/Common/Macro/sectionHeaders.html.twig' as headers %}
{% set afficherNouveautes = 0 %}
{% for association in product.associations %}
{% if association.getType().getCode() == "similary_product"%}
{% set afficherNouveautes = 0 %}
{{ render(url('sylius_shop_partial_product_association_show', {'productId': product.id, 'id': association.id, 'template': '@SyliusShop/Product/Show/_association.html.twig'})) }}
{% else %}
{% set afficherNouveautes = 1 %}
{% endif %}
{% endfor %}
{% if (product.associations|length == 0) or (afficherNouveautes == 1) %}
<div class="bloc-top-content text-center">
<h2 class="title-medium title-small-size-lg">{{'app.product.pour_completer'|trans}}</h2>
<div class="contenu-art-top position-relative px-perso-top">
{{ render(url('sylius_shop_partial_product_index_latest', {'count': 8, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }}
</div>
</div>
{% endif %}