app/template/default/Product/detail.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'product_page' %}
  10.     {% block stylesheet %}
  11.         <link rel="stylesheet" href="{{ asset('assets/css/additional/page/product/detail.css') }}{{ cache }}">
  12.         <link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css">
  13.         <link rel="stylesheet" href="{{ asset('assets/css/additional/page/product/slider.css') }}{{ cache }}">
  14.     {% endblock %}
  15.     {% block javascript %}
  16.         {{ include_dispatch('Product/js/detail_script.twig') }}
  17.     {% endblock %}
  18.     {% block main %}
  19.         <div class="ec-productRole">
  20.             {#             <div class="backBtn topPosition maxWid mbPad"><a href="{{ url('product_list') }}"><i class="fas fa-chevron-circle-left"></i>商品一覧へ戻る</a></div> #}
  21.             <div class="ec-grid2 mbPad">
  22.                 <div class="ec-grid2__cell">
  23.                     <div class="ec-sliderItemRole">
  24.                         <div class="item_visual">
  25.                             {% for ProductImage in Product.ProductImage %}
  26.                                 <div class="slide-item"><img src="{{ asset(ProductImage, 'save_image') }}"></div>
  27.                             {% else %}
  28.                                 <div class="slide-item"><img src="{{ asset(''|no_image_product, 'save_image') }}"/></div>
  29.                             {% endfor %}
  30.                         </div>
  31.                         {# 画像が2枚以上ある場合、サムネイル表示 #}
  32.                         {% if Product.ProductImage.snapshot | length > 1%}
  33.                         <div class="item_nav">
  34.                             {% for ProductImage in Product.ProductImage %}
  35.                                 <div class="slideThumb" data-index="{{ loop.index0 }}"><img src="{{ asset(ProductImage, 'save_image') }}"></div>
  36.                             {% endfor %}
  37.                         </div>
  38.                     {% endif %}
  39.                 </div>
  40.             </div>
  41.             <div class="ec-grid2__cell">
  42.                 <div class="ec-productRole__profile">
  43.                     <div class="flex2 no2">
  44.                         <div class="block1">
  45.                             {# カテゴリー #}
  46.                             {{ include_dispatch('Product/components/detail_product/category.twig') }}
  47.                             <h2 class="heading_title">{{ Product.name }}</h2>
  48.                             {# </div> #}
  49.                             {% if Product.description_detail %}
  50.                                 <p class="ec-productRole__description">{{ Product.description_detail|raw|nl2br }}
  51.                                 </p>
  52.                             {% endif %}
  53.                             {# 価格 #}
  54.                             {{ include_dispatch('Product/components/detail_product/price.twig') }}
  55.                             {# タグ #}
  56.                             {{ include_dispatch('Product/components/detail_product/tag.twig') }}
  57.                         </div>
  58.                         {# <div class="block2"> #}
  59.                         {# 商品規格とカートに追加 #}
  60.      {% if (url == 'test') %}
  61.                         {{ include_dispatch('Product/components/detail_product/add_cart_test.twig') }}
  62.                     {% else %}
  63.                         {{ include_dispatch('Product/components/detail_product/add_cart.twig') }}
  64.                     {% endif %}
  65.                         {# </div> #}
  66.                     </div>
  67.                 </div>
  68.             </div>
  69.         </div>
  70.          {{ include_dispatch('Product/components/set_product.twig') }}
  71.         {# 商品詳細 #}
  72.         {{ include_dispatch('Product/components/detail_product/details.twig') }}
  73.         <div class="backBtn bottomPosition maxWid mbPad">
  74.             <a href="{{ url('product_list') }}"><i class="fas fa-caret-left"></i>戻る
  75.             </a>
  76.         </div>
  77.     </div>
  78. {% endblock %}