{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
<link rel="stylesheet" href="{{ asset('assets/css/additional/page/product/detail.css') }}{{ cache }}">
<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css">
<link rel="stylesheet" href="{{ asset('assets/css/additional/page/product/slider.css') }}{{ cache }}">
{% endblock %}
{% block javascript %}
{{ include_dispatch('Product/js/detail_script.twig') }}
{% endblock %}
{% block main %}
<div class="ec-productRole">
{# <div class="backBtn topPosition maxWid mbPad"><a href="{{ url('product_list') }}"><i class="fas fa-chevron-circle-left"></i>商品一覧へ戻る</a></div> #}
<div class="ec-grid2 mbPad">
<div class="ec-grid2__cell">
<div class="ec-sliderItemRole">
<div class="item_visual">
{% for ProductImage in Product.ProductImage %}
<div class="slide-item"><img src="{{ asset(ProductImage, 'save_image') }}"></div>
{% else %}
<div class="slide-item"><img src="{{ asset(''|no_image_product, 'save_image') }}"/></div>
{% endfor %}
</div>
{# 画像が2枚以上ある場合、サムネイル表示 #}
{% if Product.ProductImage.snapshot | length > 1%}
<div class="item_nav">
{% for ProductImage in Product.ProductImage %}
<div class="slideThumb" data-index="{{ loop.index0 }}"><img src="{{ asset(ProductImage, 'save_image') }}"></div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class="ec-grid2__cell">
<div class="ec-productRole__profile">
<div class="flex2 no2">
<div class="block1">
{# カテゴリー #}
{{ include_dispatch('Product/components/detail_product/category.twig') }}
<h2 class="heading_title">{{ Product.name }}</h2>
{# </div> #}
{% if Product.description_detail %}
<p class="ec-productRole__description">{{ Product.description_detail|raw|nl2br }}
</p>
{% endif %}
{# 価格 #}
{{ include_dispatch('Product/components/detail_product/price.twig') }}
{# タグ #}
{{ include_dispatch('Product/components/detail_product/tag.twig') }}
</div>
{# <div class="block2"> #}
{# 商品規格とカートに追加 #}
{% if (url == 'test') %}
{{ include_dispatch('Product/components/detail_product/add_cart_test.twig') }}
{% else %}
{{ include_dispatch('Product/components/detail_product/add_cart.twig') }}
{% endif %}
{# </div> #}
</div>
</div>
</div>
</div>
{{ include_dispatch('Product/components/set_product.twig') }}
{# 商品詳細 #}
{{ include_dispatch('Product/components/detail_product/details.twig') }}
<div class="backBtn bottomPosition maxWid mbPad">
<a href="{{ url('product_list') }}"><i class="fas fa-caret-left"></i>戻る
</a>
</div>
</div>
{% endblock %}