themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/show.html.twig line 91

Open in your IDE?
  1. {% set block = app_get_blocks('num_telephone', sylius.channel.code )  %}
  2. {% set block_h = app_get_blocks('horaires_magasin', sylius.channel.code )  %}
  3. {% set block_livr = app_get_blocks('imageperso_index', sylius.channel.code )  %}
  4. {% extends '@SyliusShop/layout.html.twig' %}
  5. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  6. {% block title %}
  7.     {% include '@DediSyliusSEOPlugin/Shop/Header/_title.html.twig' with { 'resource': product ?? sylius.channel } %}
  8. {% endblock %}
  9. {% block metatags %}
  10.     {% if product.metaKeywords is not empty %}
  11.         <meta name="keywords" content="{{ product.metaKeywords }}" />
  12.     {% endif %}
  13.     {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) }}
  14.     {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  15. {% endblock %}
  16. {% block content %}
  17. {# alternative product #}
  18. {% if app.request.query.get('alternativeProductName') %}
  19.     <div style="padding: 20px;">
  20.         {{ 'app.product.product_is_substituted'|trans({'%name%': app.request.query.get('alternativeProductName'), '%name2%': product.name}) }}
  21.     </div>
  22. {% endif %}
  23. {# end alternative product #}
  24. <section class="art-bg pb-4 pb-xl-5">
  25.     <div class="article-top">
  26.         <div class="contenuArticle">
  27.             <div class="container p-0 border-top-4">
  28.                 <div class="px-0 d-none d-md-block">{% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}</div>
  29.                 
  30.                 <div class="max-container-6 ">
  31.                     <div class="border rounded-10 bg-white px-3 py-md-3 pb-xl-4 pt-xl-2 px-xl-4 mx-n3 mx-md-0 rounded-mobile-0">
  32.                         <div class=" d-block d-md-none">{% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}</div>
  33.                         <div class="pt-1 pb-2">
  34.                             <a href="/" class="back-link font-16" title="{{'sylius.ui.back'|trans}}"><i  class="icon-left-open"></i> {{'sylius.ui.back'|trans}}</a>
  35.                         </div>
  36.                         <div class="d-block d-md-none pt-3">
  37.                             <div class="art-top-desc ">
  38.                                 <h1 class="title-article-art" aria-label="hidden"> {{ product.name }} </h1>
  39.                                 <div class="font-16 font-18-mobile  pt-1">{{'app.product.sku'|trans}} : {{ product.code }}</div>
  40.                             </div>
  41.                         </div>
  42.                         <div class="art-detail d-md-flex">
  43.                             <div class="article-left col-md-7 col-12 ">
  44.                                 {{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
  45.                             </div>
  46.                             <div class="article-right col-md-5 col-12 pl-md-4 pr-md-0">
  47.                                 <div class="max-art-desc">    
  48.                                     {{ sylius_template_event('sylius.shop.product.show.right_sidebar', _context) }}
  49.                                     {% include '@SyliusShop/Product/Show/_files.html.twig' %}
  50.                                     {% set slugPage_free_delivery = app_get_slug_by_code_and_locale('free_delivery') %}
  51.                                     {% set slugPage_shipping_page = app_get_slug_by_code_and_locale('shipping_page') %}
  52.                                     {% set slugPage_secure_payment = app_get_slug_by_code_and_locale('secure_payment') %}
  53.                                     <div class="av-article mt-md-4 mt-3 pt-md-4 pt-3">
  54.                                         <div class="row mx-lg-n3 mx-n1  justify-content-center">
  55.                                             <div class="col text-xl-left text-md-center text-left px-lg-3 px-1  mb-lg-0 mb-3">
  56.                                                 <a href="{% if slugPage_free_delivery is not null  %}{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug': slugPage_free_delivery }) }} {% else %}#{% endif %}" class="box-av d-xl-flex d-md-block d-flex align-items-center" title="{{'app.footer.av4_txt'|trans|raw}}">
  57.                                                     <strong class="d-inline-block"><img src="{{asset('images/av4.svg')}}" alt=""></strong>
  58.                                                     <span class="d-block pl-xl-2 pl-2 pl-md-0 pt-xl-0 pt-md-3 pt-0">{{'app.footer.av4_txt_br'|trans|raw}} {{ money.convertAndFormat(app_get_amount_franco_port()['amountFrancoPort']) }} HT</span>
  59.                                                 </a>
  60.                                             </div>
  61.                                             <div class="col text-xl-left text-md-center text-left px-lg-3 px-1  mb-lg-0 mb-3">
  62.                                                 <a href="{% if slugPage_shipping_page is not null  %}{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug': slugPage_shipping_page }) }} {% else %}#{% endif %}" class="box-av d-xl-flex d-md-block d-flex align-items-center"  title="{{'app.footer.av5_txt'|trans|raw}}">
  63.                                                     <strong class="d-inline-block"><img src="{{asset('images/av5.svg')}}" alt=""></strong>
  64.                                                     <span class="d-block pl-xl-2 pl-2 pl-md-0 pt-xl-0 pt-md-3 pt-0">{{'app.footer.av5_txt_br'|trans|raw}}</span>
  65.                                                 </a>
  66.                                             </div>
  67.                                             <div class="col text-xl-left text-md-center text-left px-lg-3 px-1  mb-lg-0 mb-3">
  68.                                                 <a href="{% if slugPage_secure_payment is not null  %}{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug': slugPage_secure_payment }) }} {% else %}#{% endif %}" class="box-av d-xl-flex d-md-block d-flex align-items-center"  title="{{'app.footer.av6_txt'|trans|raw}}">
  69.                                                     <strong class="d-inline-block"><img src="{{asset('images/av6.svg')}}" alt=""></strong>
  70.                                                     <span class="d-block pl-xl-2 pl-2 pl-md-0 pt-xl-0 pt-md-3 pt-0">{{'app.footer.av6_txt_br'|trans|raw}}</span>
  71.                                                 </a>
  72.                                             </div>
  73.                                         </div>
  74.                                     </div>
  75.                                 </div>
  76.                                 
  77.                             </div>
  78.                             
  79.                         </div>
  80.                     </div>
  81.                 </div>
  82.                 
  83.             </div>
  84.         </div>
  85.         <div class="article-bottom">
  86.             {{ sylius_template_event('sylius.shop.product.show.content', _context) }}  
  87.         </div>
  88.     </div>
  89.     
  90. </section>
  91. {% endblock %}