themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_associations.html.twig line 18

Open in your IDE?
  1. {% import '@SyliusShop/Common/Macro/sectionHeaders.html.twig' as headers %}
  2. {% set afficherNouveautes = 0 %}
  3. {% for association in product.associations  %}
  4.     {% if association.getType().getCode() == "similary_product"%}
  5.         {% set afficherNouveautes = 0 %}
  6.         {{ render(url('sylius_shop_partial_product_association_show', {'productId': product.id, 'id': association.id, 'template': '@SyliusShop/Product/Show/_association.html.twig'})) }}
  7.     {% else %}
  8.         {% set afficherNouveautes = 1 %}
  9.     {% endif %}
  10. {% endfor %}
  11. {% if (product.associations|length == 0) or (afficherNouveautes == 1) %}
  12. <div class="bloc-top-content text-center">
  13.     <h2 class="title-medium title-small-size-lg">{{'app.product.pour_completer'|trans}}</h2>
  14.     <div class="contenu-art-top    position-relative px-perso-top">
  15.         {{ render(url('sylius_shop_partial_product_index_latest', {'count': 8, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }}
  16.     </div>
  17. </div>
  18. {% endif %}