{#
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 %}
<style>
.ec-modal {
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 100%;
height: 100%;
}
.ec-modal.small {
width: 30%;
}
.ec-modal.full {
width: 100%;
height: 100%;
}
.ec-modal .ec-modal-overlay {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100%;
}
.ec-modal .ec-modal-wrap {
position: relative;
border-radius: 6px;
border: 0px;
background-color: #fff;
width: 50%;
margin: 20px;
padding: 40px 5px;
}
.ec-modal .ec-modal-close {
cursor: pointer;
position: absolute;
right: 20px;
top: 10px;
font-size: 20px;
height: 30px;
width: 20px;
}
.ec-modal .ec-modal-close:hover {
color: #4b5361;
}
.ec-modal .ec-modal-box {
text-align: center;
}
.ec-modal .ec-role {
margin-top: 20px;
}
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: " ";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
.ec-numberInput {
display: none;
}
.ec-blockBtn--cancel {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #F8C4CF;
border-color: #F8C4CF;
display: block;
width: 330px;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
border-radius: 6px;
}
.ec-blockBtn--cancel:hover {
opacity: 0.7;
background-color: #F8C4CF;
border-color: #F8C4CF;
}
.ec-blockBtn--action-detail {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #d5a770;
border-color: #d5a770;
display: block;
width: 330px;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
border-radius: 6px;
}
.ec-blockBtn--action-detail:hover {
background-color: #d5a770;
border-color: #d5a770;
opacity: 0.7;
}
.ec-blockBtn--action {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #F8C4CF;
border-color: #F8C4CF;
display: block;
width: 330px;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
border-radius: 6px;
}
.ec-productRole__description_icon_car {
margin-top: 7%;
padding-top: 7%;
border-top: 1px dotted #ccc;
display: flex;
}
.ec-productRole__description_icon_present {
margin-top: 7%;
display: flex;
}
.item_desc_icon {
width: 25%;
}
.item_desc {
width: 75%;
padding-top: 0.5%;
font-weight: bold;
}
.item_desc_present {
width: 75%;
padding-top: 4%;
font-weight: bold;
}
.product-detail-artist-icon {
display: flex;
}
.box26 {
position: relative;
margin: 2em 0;
padding: 0.5em 1em;
border: solid 3px #d5a770;
border-radius: 8px;
}
.box26 .box-title {
position: absolute;
display: inline-block;
top: -13px;
left: 10px;
padding: 0 9px;
line-height: 1;
font-size: 19px;
background: #FFF;
color: #d5a770;
font-weight: bold;
}
.box26 h3 {
margin: 0;
padding: 0;
}
.product-detail-artist-icon {
margin-left: -15px;
}
.mr-10 {
margin-right: 10px;
}
a.btn-sns {
font-size: 25px;
line-height: 40px;
width: 40px;
height: 40px;
padding: 1px 2px;
margin-left: 30px;
letter-spacing: 0;
color: #fff;
border-radius: 50%;
}
a.btn-sns:hover {
color: #fff;
}
a.btn-sns--twitter {
background: #1da1f2;
}
.product-detail-artist-link{
padding-top: 20px;
}
.product-detail-artist-link a:hover{
color: #d5a770;
border-bottom: 1px solid #d5a770;
}
.product-detail-artist-link a {
color: black;
border-bottom: 1px solid black;
font-weight: bold;
font-size: 15px;
}
/* 768以下の時 */
@media screen and (max-width: 767px) {
.ec-productRole__description {
display: none;
}
.product-detail-artist-photo {
visibility:hidden
}
.artist-name-size {
width: 500px;
}
.ec-grid2__cell_introduce {
margin: 10% 15% 0;
width: auto;
}
.ec-productRole__profile {
width: auto;
padding: 5%;
text-align: center;
}
.ec-blockBtn--action {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #d5a770;
border-color: #d5a770;
display: block;
width: 230px;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
}
.ec-blockBtn--action-detail {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #d5a770;
border-color: #d5a770;
display: block;
width: 230px;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
}
.ec-blockBtn--cancel {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #525263;
border-color: #525263;
display: block;
width: 230px;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
}
.ec-blockBtn--cancel:hover {
opacity: 0.7;
background-color: #525263;
border-color: #525263;
}
.social-media-title {
display: none;
}
}
/* 570以下の時 */
@media screen and (max-width: 570px) {
.ec-grid2__cell_introduce {
margin: 10% 5% 0;
width: auto;
}
}
</style>
{% endblock %}
{% block javascript %}
<script>
$(function () {
$('#js-slider-4').slick({
arrows: true, // 前・次のボタンを表示する
speed: 500, // スライドさせるスピード(ミリ秒)
slidesToShow: 4, // 表示させるスライド数
centerMode: true, // slidesToShowが奇数のとき、現在のスライドを中央に表示する
variableWidth: true, // スライド幅の自動計算を無効化
});
});
</script>
<script>
eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
// 規格2に選択肢を割り当てる。
function fnSetClassCategories(form, classcat_id2_selected) {
var $form = $(form);
var product_id = $form.find('input[name=product_id]').val();
var $sele1 = $form.find('select[name=classcategory_id1]');
var $sele2 = $form.find('select[name=classcategory_id2]');
eccube.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
}
{% if form.classcategory_id2 is defined %}
fnSetClassCategories(
$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
);
{% elseif form.classcategory_id1 is defined %}
eccube.checkStock($('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
{% endif %}
</script>
<script>
$(function() {
// bfcache無効化
$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
// Core Web Vital の Cumulative Layout Shift(CLS)対策のため
// img タグに width, height が付与されている.
// 630px 未満の画面サイズでは縦横比が壊れるための対策
// see https://github.com/EC-CUBE/ec-cube/pull/5023
$('.ec-grid2__cell').hide();
var removeSize = function () {
$('.slide-item').height('');
$('.slide-item img')
.removeAttr('width')
.removeAttr('height')
.removeAttr('style');
};
var slickInitial = function(slick) {
$('.ec-grid2__cell').fadeIn(1500);
var baseHeight = $(slick.target).height();
var baseWidth = $(slick.target).width();
var rate = baseWidth / baseHeight;
$('.slide-item').height(baseHeight * rate); // 余白を削除する
// transform を使用することでCLSの影響を受けないようにする
$('.slide-item img')
.css(
{
'transform-origin': 'top left',
'transform': 'scaleY(' + rate + ')',
'transition': 'transform .1s'
}
);
// 正しいサイズに近くなったら属性を解除する
setTimeout(removeSize, 500);
};
$('.item_visual').on('init', slickInitial);
// リサイズ時は CLS の影響を受けないため属性を解除する
$(window).resize(removeSize);
$('.item_visual').slick({
dots: false,
arrows: false,
responsive: [{
breakpoint: 768,
settings: {
dots: true
}
}]
});
$('.slideThumb').on('click', function() {
var index = $(this).attr('data-index');
$('.item_visual').slick('slickGoTo', index, false);
})
});
</script>
<script>
$(function() {
$('.add-cart').on('click', function(event) {
{% if form.classcategory_id1 is defined %}
// 規格1フォームの必須チェック
if ($('#classcategory_id1').val() == '__unselected' || $('#classcategory_id1').val() == '') {
$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
$('#classcategory_id1')[0].setCustomValidity('');
}
{% endif %}
{% if form.classcategory_id2 is defined %}
// 規格2フォームの必須チェック
if ($('#classcategory_id2').val() == '__unselected' || $('#classcategory_id2').val() == '') {
$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
$('#classcategory_id2')[0].setCustomValidity('');
}
{% endif %}
// 個数フォームのチェック
if ($('#quantity').val() < 1) {
$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
return true;
} else {
$('#quantity')[0].setCustomValidity('');
}
event.preventDefault();
$form = $('#form1');
$.ajax({
url: $form.attr('action'),
type: $form.attr('method'),
data: $form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
$.each(data.messages, function() {
$('#ec-modal-header').html(this);
});
$('.ec-modal').show()
// カートブロックを更新する
$.ajax({
url: "{{ url('block_cart') }}",
type: 'GET',
dataType: 'html'
}).done(function(html) {
$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
$('.add-cart').prop('disabled', false);
});
});
});
$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
$('.ec-modal').hide()
});
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "{{ Product.name }}",
"image": [
{% for img in Product.ProductImage %}
"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
{% else %}
"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}"
{% endfor %}
],
"description": "{{ Product.description_list | default(Product.description_detail) | replace({'\n': '', '\r': ''}) | slice(0,300) }}",
{% if Product.code_min %}
"sku": "{{ Product.code_min }}",
{% endif %}
"offers": {
"@type": "Offer",
"url": "{{ url('product_detail', {'id': Product.id}) }}",
"priceCurrency": "{{ eccube_config.currency }}",
"price": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
"availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
}
}
</script>
{% endblock %}
{% block main %}
<div class="ec-productRole">
<div class="ec-grid2">
<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') }}" alt="{{ loop.first ? Product.name : '' }}" height="550"{% if loop.index > 1 %} loading="lazy"{% endif %}></div>
{% else %}
<div class="slide-item"><img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" width="550" height="550"></div>
{% endfor %}
</div>
<div class="item_nav">
{% for ProductImage in Product.ProductImage %}
<div class="slideThumb" data-index="{{ loop.index0 }}"><img src="{{ asset(ProductImage, 'save_image') }}" alt="" width="133" height="133" loading="lazy"></div>
{% endfor %}
</div>
</div>
<div class="product-detail-artDetail">
<div class="flex">
<i class="fa-solid fa-palette fa-2x fontawesome-size"></i><h2 class="fontweight-bold">作品紹介<h2>
</div>
<div class="product-detail-title-description">
{% if Product.getDescriptionDetail %}
<p>{{ Product.getDescriptionDetail }}</p>
{% endif %}
</div>
</div>
<div class="hr-bold"></div>
{% for artist in artists %}
{% if Product.getArtistId == artist.id %}
<div class="product-detail-artist">
<div class="product-detail-artist-description">
<div class="flex">
<i class="fa-solid fa-pen-nib fa-2x fontawesome-size"></i>
<h2 class="fontweight-bold artist-name-size">{{ artist.name }}</h2>
<div class="product-detail-artist-photo">
<img src="{{ asset(artist.image |no_image_product, 'user_data') }}" alt=artist.name class='hidden'>
</div>
</div>
<div class="product-detail-artist-desc">
<p>« {{ artist.getDescription }} »</p>
</div>
<div class="hr"></div>
{% if artist.twitter != null %}
<h3 class="fontweight-bold social-media-title">アーティストのソーシャルメディア<h3>
<div class="product-detail-artist-icon">
<div>
<a href='{{artist.twitter}}' class="btn btn-sns btn-sns--twitter"><i class="fa-brands fa-twitter" style="color: white;" onMouseOver="this.style.color='#d5a770'" onMouseOut="this.style.color='white'"></i></a>
</div>
</div>
{% endif %}
<div class="product-detail-artist-link">
<a href="/artists/detail/{{ artist.id }}">{{ artist.name }}の作品を閲覧</a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class="ec-grid2__cell_introduce">
<div class="ec-productRole__profile">
{# 商品名 #}
<div class="ec-productRole__title">
<h2 class="ec-headingTitle">{{ Product.name }}</h2>
</div>
{# アーティスト名とリンク #}
<div class="ec-productRole__title_flex">
{% for artist in artists %}
{% if Product.getArtistId == artist.id %}
<div><a href="/artists/detail/{{ artist.id }}">{{ artist.name }}, </a></div>
<div class="ml-5">
{# アーティストの出身地 #}
{% if Product.getArtistId == artist.id %}
<p>{{ artist.address }}</p>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{# 絵が何で描かれたか #}
{% if Product.getProductionTechnique is not null %}
<div class="ec-productRole__title mt-10">
<p>{{ Product.getProductionTechnique }}</p>
</div>
{% endif %}
{# 絵のサイズ #}
{% if Product.getProductionSizeVertical is not null %}
<div class="ec-productRole__title">
<div><p>{{ Product.getProductionSizeVertical }} x {{ Product.getProductionSizeWidth}} cm</p></div>
</div>
{% endif %}
{# タグ #}
<ul class="ec-productRole__tags">
{% for Tag in Product.Tags %}
<li class="ec-productRole__tag tag_{{ Tag.id }}">{{ Tag }}</li>
{% endfor %}
</ul>
{# 通常価格 #}
{# {% if Product.hasProductClass -%}
<div class="ec-productRole__priceRegular">
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
<span class="ec-productRole__priceRegularPrice">{{ '通常価格'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}</span></span>
<span class="ec-productRole__priceRegularTax">{{ '税込'|trans }}</span>
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
<span class="ec-productRole__priceRegularPrice">{{ '通常価格'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
<span class="ec-productRole__priceRegularTax">{{ '税込'|trans }}</span>
{% endif %}
</div>
{% else %}
{% if Product.getPrice01Max is not null %}
<span class="ec-productRole__priceRegularPrice">{{ '通常価格'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
<span class="ec-productRole__priceRegularTax">{{ '税込'|trans }}</span>
{% endif %}
{% endif %} #}
{# 販売価格 #}
<div class="ec-productRole__price">
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class="ec-price">
<span class="ec-productRole__priceRegularPrice">{{ '価格'|trans }}</span>
<span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class="ec-price__tax">{{ '税込'|trans }}</span>
</div>
{% else %}
<div class="ec-price">
<span class="ec-productRole__priceRegularPrice">{{ '価格'|trans }}</span>
<span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
<span class="ec-price__tax">{{ '税込'|trans }}</span>
</div>
{% endif %}
{% else %}
<div class="ec-price">
<span class="ec-productRole__priceRegularPrice">{{ '価格'|trans }}</span>
<span class="ec-price__price">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class="ec-price__tax">{{ '税込'|trans }}</span>
</div>
{% endif %}
</div>
{# メーカー #}
{% if maker_id is defined %}
<div class="ec-productRole__code">
{{ '店舗'|trans }}: <span>{{ maker[maker_id - 1].name }}</span>
</div>
{% endif %}
{# 商品コード #}
{% if Product.code_min is not empty %}
<div class="ec-productRole__code">
{{ '商品コード'|trans }}: <span class="product-code-default">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
</div>
{% endif %}
{# 関連カテゴリ #}
{% if Product.ProductCategories is not empty %}
<div class="ec-productRole__category">
<div class="fontWeightBold">{{ '関連カテゴリ'|trans }}</div>
{% for ProductCategory in Product.ProductCategories %}
<ul>
<li>
{% for Category in ProductCategory.Category.path %}
<a href="{{ url('product_list') }}?category_id={{ Category.id }}">{{ Category.name }}</a> {%- if loop.last == false %}
<span></span>{% endif -%}
{% endfor %}
</li>
</ul>
{% endfor %}
</div>
{% endif %}
<form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form1" name="form1">
{% if Product.stock_find %}
<div class="ec-productRole__actions">
{% if form.classcategory_id1 is defined %}
<div class="ec-select">
{{ form_row(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class="ec-select">
{{ form_row(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class="ec-numberInput"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity) }}
{{ form_errors(form.quantity) }}
</div>
<div class="ec-numberInput"><span>{{ 'メーカーID'|trans }}</span>
{{ form_widget(form.maker_id) }}
{{ form_errors(form.maker_id) }}
</div>
{% if maker_id is defined %}
<div class="ec-numberInput"><span>{{ 'メーカーID'|trans }}</span>
<input type="number" id="maker_id" name="maker_id" required="required" value="{{ maker_id }}" class="form-control">
</div>
{% else %}
<div class="ec-numberInput"><span>{{ 'メーカーID'|trans }}</span>
{% for cookie in productHistory %}
<input type="number" id="maker_id" name="maker_id" required="required" value="{{ cookie.id }}" class="form-control">
{% endfor %}
</div>
{% endif %}
</div>
<div class="ec-productRole__btn">
<button type="submit" class="ec-blockBtn--action-detail add-cart">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class="ec-productRole__btn">
<button type="button" class="ec-blockBtn--action" disabled="disabled">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{{ form_rest(form) }}
</form>
<div class="ec-modal">
<div class="ec-modal-overlay">
<div class="ec-modal-wrap">
<span class="ec-modal-close"><span class="ec-icon"><img src="{{ asset('assets/icon/cross-dark.svg') }}" alt=""/></span></span>
<div id="ec-modal-header" class="text-center">{{ 'カートに追加しました。'|trans }}</div>
<div class="ec-modal-box">
<div class="ec-role">
<span class="ec-inlineBtn--cancel">{{ 'お買い物を続ける'|trans }}</span>
<a href="{{ url('cart') }}" class="ec-inlineBtn--action mt-5per">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
{% if BaseInfo.option_favorite_product %}
<form action="{{ url('product_add_favorite', {id:Product.id}) }}" method="post">
<div class="ec-productRole__btn">
{% if is_favorite == false %}
<button type="submit" id="favorite" class="ec-blockBtn--cancel">
<i class="ec-headerNav__itemIcon fas fa-heart fa-fw"></i>{{ 'お気に入りに追加'|trans }}
</button>
{% else %}
<button type="submit" id="favorite" class="ec-blockBtn--cancel"
disabled="disabled">{{ 'お気に入りに追加済です。'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}
<div class="ec-productRole__description">
{{ Product.description_detail|raw|nl2br }}
</div>
<div class="ec-productRole__description_icon_car">
<div class='item_desc_icon'><i class="fa-solid fa-truck fa-3x" style="color: #d5a770;"></i></div>
<div class='item_desc'>お届けの目安は<br />ご購入から7日前後</div>
</div>
<div class="ec-productRole__description_icon_present">
<div class='item_desc_icon'><i class="fa-solid fa-gift fa-3x" style="color: #d5a770;"></i></div>
<div class='item_desc_present'>返品無料</div>
</div>
</div>
</div>
</div>
{% if Product.freearea %}
<div class="ec-productRole__description">
{{ include(template_from_string(Product.freearea)) }}
</div>
{% endif %}
</div>
{# <ul class="slider-2" id="js-slider-4">
{% for product in products %}
{% for artist in artists %}
{% if product.getArtistId == artist.id %}
{% if product.getArtistId == artist.id %}
<li>
<div class="ec-newItemRole__listItem">
<a href="{{ url('product_detail', {'id': product.id}) }}" class="text-decoration">
{% for productImage in product.ProductImage %}
<div class="slide-item"><img src="{{ asset(productImage, 'save_image') }}" /></div>
{% endfor %}
<p class="ec-newItemRole__listItemTitle fontWeightBold">{{ product.name|trans }}</p>
<p class="ec-newItemRole__listItemPrice fontWeightBold">¥{{ product.getPrice02IncTaxMax|trans }}(税込)</p>
</a>
</div>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
</ul> #}
{% endblock %}