{% extends 'base.html.twig' %} {% block title %} Produit {% endblock %} {% block ogtitle %}Produit {% endblock %} {% block twittertitle %} Produit {% endblock %} {% block canonical %} {% set currentUrl = app.request.uri() %}{{canonicalHandler(currentUrl, "Produit")}} {% endblock %} {% block ogurl %} {% set currentUrl = app.request.uri() %}{{canonicalHandler(currentUrl, "Produit")}} {% endblock %} {% block twitterurl %} {% set currentUrl = app.request.uri() %}{{canonicalHandler(currentUrl, "Produit")}} {% endblock %} {% block body %}

{{ produit['produit'] }}

{{ produit['prix_ttc'] }}€

{% if produit['stock'] < 10 and produit['stock']> 0 %}

Dépêchez-vous! seulement {{ produit['stock'] }} articles restants

{% endif %} {% if produit['stock'] > 10 %}

Il y a {{ produit['stock'] }} articles restants

{% endif %}
+
{% set marque = produit|marqueProduit %}
Description du produit
    {% if produit['id_marque'] is not empty %}
  • Constructeur: {% set marque = produit|marqueProduit %} {{ marque['marque'] }}
  • {% endif %} {% if produit['id_famille'] is not empty %}
  • Type: {% set famille = produit|familleProduit %} {{ famille['nom'] }}
  • {% endif %} {% if produit['critere1'] is not empty %}
  • {% set critere1 = produit['critere1']|split('=>') %} {{ critere1[0] }}: {% set critere1 = produit['critere1']|split('=>') %} {{ critere1[1] }}
  • {% endif %} {% if produit['critere2'] is not empty %}
  • {% set critere2 = produit['critere2']|split('=>') %} {{ critere2[0] }}: {% set critere2 = produit['critere2']|split('=>') %} {{ critere2[1] }}
  • {% endif %} {% if produit['critere3'] is not empty %}
  • {% set critere3 = produit['critere3']|split('=>') %} {{ critere3[0] }}: {% set critere3 = produit['critere3']|split('=>') %} {{ critere3[1] }}
  • {% endif %} {% if produit['critere4'] is not empty %}
  • {% set critere4 = produit['critere4']|split('=>') %} {{ critere4[0] }}: {% set critere4 = produit['critere4']|split('=>') %} {{ critere4[1] }}
  • {% endif %} {% if produit['critere5'] is not empty %}
  • {% set critere5 = produit['critere5']|split('=>') %} {{ critere5[0] }}: {% set critere5 = produit['critere5']|split('=>') %} {{ critere5[1] }}
  • {% endif %} {% if produit['critere6'] is not empty %}
  • {% set critere6 = produit['critere6']|split('=>') %} {{ critere6[0] }}: {% set critere6 = produit['critere6']|split('=>') %} {{ critere6[1] }}
  • {% endif %} {% if produit['critere7'] is not empty %}
  • {% set critere7 = produit['critere7']|split('=>') %} {{ critere7[0] }}: {% set critere7 = produit['critere7']|split('=>') %} {{ critere7[1] }}
  • {% endif %} {% if produit['critere8'] is not empty %}
  • {% set critere8 = produit['critere8']|split('=>') %} {{ critere8[0] }}: {% set critere8 = produit['critere8']|split('=>') %} {{ critere8[1] }}
  • {% endif %} {% if produit['critere9'] is not empty %}
  • {% set critere9 = produit['critere9']|split('=>') %} {{ critere9[0] }}: {% set critere9 = produit['critere9']|split('=>') %} {{ critere9[1] }}
  • {% endif %} {% if produit['critere10'] is not empty %}
  • {% set critere10 = produit['critere10']|split('=>') %} {{ critere10[0] }}: {% set critere10 = produit['critere10']|split('=>') %} {{ critere10[1] }}
  • {% endif %} {% if produit['code_ean'] is not empty %}
  • Code EAN: {{ produit['code_ean'] }}
  • {% endif %} {% if produit['code_fabricant'] is not empty %}
  • Code Fabricant: {{ produit['code_fabricant'] }}
  • {% endif %} {% if produit['etat'] is not empty %}
  • état: {{ produit['etat'] }}
  • {% endif %} {% if produit['stock'] is not empty %}
  • Stock: {{ produit['stock'] }}
  • {% endif %} {% if produit['poid'] is not empty %}
  • Poid: {{ produit['poid'] }}
  • {% endif %}
  • {% if produit['largeur'] is not empty %} largeur: {{ produit['largeur'] }} {% endif %}
  • {% if produit['profondeur'] is not empty %}
  • profondeur: {{ produit['profondeur'] }}
  • {% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}