templates/front/catalog/product/view/infos.html.twig line 1

Open in your IDE?
  1. <div class="product-infos">
  2.     <div class="pictures-ctn">
  3.         <div class="scene">
  4.             {% include 'front/modules/wishlist/bt.html.twig' %}
  5.             {% if product.pictures|length > 0 %}
  6.                 <div class="pictures">
  7.                 {% for picture in product.pictures %}
  8.                     <a {% if loop.first %}class="on" {% endif %} data-fancybox="products-assets" data-src="{{ asset(picture.webPath) | imagine_filter('product_zoom') }}"><img src="{{ asset(picture.webPath) | imagine_filter('product_large') }}" width="400" height="400" alt="{{ picture.title?picture.title:product.name }}"></a>
  9.                 {% endfor %}
  10.                 </div>
  11.             {% endif  %}
  12.             <div class="flags">
  13.                 {% if product.isMadeInFrance() %}
  14.                     <div class="flag origin made-in-france">
  15.                         <img src="{{ asset('img/pictos/cocarde.svg') }}" alt="Made in France">
  16.                         <span>{% trans %}Fabriqué<br>en France{% endtrans %}</span>
  17.                     </div>
  18.                 {% endif %}
  19.                 {% if product.guaranty %}
  20.                     <div class="flag guaranty">
  21.                         <img src="{{ asset('img/pictos/check.svg') }}" alt="Made in France">
  22.                         <span>
  23.                             {% trans %}Garantie{% endtrans %} 
  24. {#                            {% if product.guaranty matches '/^\\d+$/' %}#}
  25.                             {{ product.guaranty }} {% trans %}an{% endtrans %}{% if product.guaranty > 1 %}s{% endif %}
  26. {#                            {% else %}
  27.                                 {% trans %}{{ product.guaranty }}{% endtrans %}
  28.                             {% endif %}#}
  29.                         </span>
  30.                     </div>
  31.                 {% endif %}
  32.             </div>
  33.         </div>
  34.         {% if product.pictures|length > 1 %}
  35.             <ul class="thumbs">
  36.             {% for picture in product.pictures %}
  37.                 <li class="thumb">
  38.                     <a {% if loop.first %}class="on" {% endif %} data-index="{{ loop.index0 }}"><img src="{{ asset(picture.webPath) | imagine_filter('product_small') }}" width="100" height="100" alt="{{ picture.title?picture.title:product.name }}"></a>
  39.                 </li>
  40.             {% endfor %}
  41.             </ul>
  42.         {% endif %}
  43.     </div>
  44.     <div class="infos">
  45.         {% if is_granted('ROLE_ADMIN') %}
  46.         <div class="admin-tools">
  47.             <a href="{{ path('admin_product_edit',{id:product.id}) }}" class="admin-update" target="_blank">modifier le produit</a>
  48.         </div>
  49.         {% endif %}
  50.         {% if product.manufacturer %}
  51.             <div class="manufacturer"><a href="{{ path('manufacturer',{id:product.manufacturer.id, url:product.manufacturer.url}) }}">{{ product.manufacturer.name }}</a></div>
  52.         {% endif %}
  53.         <h1>{{ product.headingTitle }}</h1>
  54.         <div class="description">
  55.             <p>{{ productDescription.teaser|raw }}</p>
  56.             {% if hasWelcomeDiscount %}
  57.             <div>
  58.                 {% include 'front/catalog/product/view/discount-welcome.html.twig' %}
  59.             </div>
  60.             {% endif %}
  61.             {% if productDescription.description %}
  62.             <a href="#description" class="bt-scroll">{% trans %}Voir le descriptif{% endtrans %}</a>
  63.             {% endif %}
  64.         </div>
  65.         {% if not customerMgr.canSeePrices() %}
  66.         <div class="not-logged">
  67.             {% trans %}Pour voir les prix des articles, {% endtrans %}<a href="{{ path('customer_login') }}">{% trans %}il faut être connecté{% endtrans %}</a> {% trans %}(c’est gratuit){% endtrans %}.
  68.         </div>
  69.         {% endif %}
  70.         {% include 'front/catalog/product/view/references.html.twig' %}
  71.         {% if not customerMgr.isExpert() %}
  72.             <div class="offers">
  73.                 <div class="free-shipping">
  74.                     <img src="{{ asset('img/pictos/shipping.svg') }}" alt="{% trans %}Livraison gratuite dès 100 € HT{% endtrans %}">
  75.                     <div>{% trans %}<strong>LIVRAISON GRATUITE</strong><br>dès 100 € HT{% endtrans %}</div>
  76.                 </div>
  77.                 <div class="free-gift">
  78.                     <img src="{{ asset('img/pictos/gift.svg') }}" alt="{% trans %}1 cadeau offert pour chaque commande internet{% endtrans %}">
  79.                     <div>{% trans %}<strong>1 CADEAU OFFERT</strong> pour <br>chaque commande internet{% endtrans %}</div>
  80.                 </div>
  81.             </div>
  82.             {% if product.hasSoleil() %}
  83.                 <p>{% trans %}-25% de remise sur les produits <span class="picto soleil"></span> dès 100€ HT de commande de produits <span class="picto soleil"></span>{% endtrans %}</p>
  84.             {% endif %}
  85.             {% if product.hasNonSoleil() %}
  86.                 <p>{% trans %}-10% de remise sur les produits <span class="picto non-soleil"></span> dès 100€ HT de commande de produits <span class="picto non-soleil"></span>{% endtrans %}</p>
  87.             {% endif %}
  88.         {% endif %}
  89.     </div>
  90. </div>