{#
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.
#}
{% if Product.id in eccube_config.noindex %}
{% do Page.setMetaRobots('noindex') %}
{% endif %}
{% set sidbar_out = false %}
{% set sidebar_type = 0 %}
{# 商品詳細からの場合 #}
{% if Product.ProductCategories is not empty %}
{% for ProductCategory in Product.ProductCategories %}
{% for Path in ProductCategory.Category.path %}
{% if Path.hierarchy == 1 %}
{% if Path.name == '部品' %}
{% set sidebar_type = 1 %}
{% set sidbar_out = true %}
{% endif %}
{% if Path.name == 'カートリッジ' %}
{% set sidebar_type = 2 %}
{% set sidbar_out = true %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
<style>
.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-price{
margin-bottom: 20px !important;
}
.ec-price__price{
padding: 0 0 5px 0 !important;
border-bottom: 1px solid !important;
font-size: 22px !important;
font-weight: bold !important;
}
.ec-price__tax{
font-size: 16px !important;
}
.ec-blockBtn--action{
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;
font-size: 13px !important;
border-radius: 0px;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
display: block;
width: 100%;
height: 40px !important;
line-height: 40px !important;
padding-top: 0;
padding-bottom: 0;
}
.ec-layoutRole__mainBottom{
padding: 0 2.5% !important;
}
.rental-disclaimer{
margin-bottom: 10px;
}
</style>
{% endblock %}
{% block javascript %}
<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);
}
});
$('.item_visual').slick({
autoplay: true, //自動再生
speed: 300, //スライドするスピード
dots: true, //ドット
arrows: false, //矢印
infinite: true, //スライドのループ
pauseOnHover: 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>
if ($('[name="classcategory_id1"] option').length == 2) {
{# 選択肢は実質1つであるため、不要な操作をさせない #}
$('[name="classcategory_id1"] option[value="__unselected"]').remove();
} else {
{# 規格設定の選択項目を「選択してください」→「購入方法」へ変更 #}
$('[name="classcategory_id1"] option[value="__unselected"]').text("購入方法");
}
$(function() {
$('#Product_contact').on('click', function() {
window.location.href = '{{ eccube_config.multipure_contact }}';
});
$('#Product_rental').on('click', function() {
let href = '{{ eccube_config.multipure_lp_rental }}';
window.open(href, "_blank");
});
$('#Product_rental_contact').on('click', function() {
window.location.href = '{{ eccube_config.multipure_contact_lp_rental }}';
});
$('#Product_rental_entry').on('click', function() {
window.location.href = '{{ url('rental_entry', {id: Product.id}) }}';
});
{% for RelatedProduct in Product.RelatedProducts %}
{% set ChildProduct = RelatedProduct.ChildProduct %}
{% if ChildProduct.Status.id == constant("Eccube\\Entity\\Master\\ProductStatus::DISPLAY_SHOW") %}
$('#Product_cartridge').on('click', function() {
window.location.href = '{{ url('product_detail', {id : ChildProduct.id}) }}';
});
{% endif %}
{% endfor %}
$('.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);
// カートブロックが更新された場合、イベントが無効になるため再設定
$('.ec-cartNavi').click(function() {
window.location.href = '{{ url('cart') }}';
});
});
}).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 }},
"availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
}
}
</script>
{# ここからは、カスタマイズ部分 #}
<script>
{# 規格選択イベントの上書き #}
(function(window, undefined) {
// 名前空間の重複を防ぐ
if (window.eccube === undefined) {
window.eccube = {};
}
var eccube = window.eccube;
// グローバルに使用できるようにする
window.eccube = eccube;
/**
* 規格2のプルダウンを設定する.
*/
eccube.setClassCategories = function($form, product_id, $sele1, $sele2, selected_id2) {
if ($sele1 && $sele1.length) {
var classcat_id1 = $sele1.val() ? $sele1.val() : '';
if ($sele2 && $sele2.length) {
// 規格2の選択肢をクリア
$sele2.children().remove();
var classcat2;
if (eccube.hasOwnProperty('productsClassCategories')) {
// 商品一覧時
classcat2 = eccube.productsClassCategories[product_id][classcat_id1];
} else {
// 詳細表示時
classcat2 = eccube.classCategories[classcat_id1];
}
// 規格2の要素を設定
for (var key in classcat2) {
if (classcat2.hasOwnProperty(key)) {
var id = classcat2[key].classcategory_id2;
var name = classcat2[key].name;
var option = $('<option />').val(id ? id : '').text(name);
if (id === selected_id2) {
option.attr('selected', true);
}
$sele2.append(option);
}
}
eccube.checkStock($form, product_id, $sele1.val() ? $sele1.val() : '__unselected2',
$sele2.val() ? $sele2.val() : '');
}
}
};
/**
* 規格の選択状態に応じて, フィールドを設定する.
*/
// 税抜価格を格納
var price02_origin = [];
// 税込価格を格納
var price02Tax_origin = [];
eccube.checkStock = function($form, product_id, classcat_id1, classcat_id2) {
classcat_id2 = classcat_id2 ? classcat_id2 : '';
var classcat2;
if (eccube.hasOwnProperty('productsClassCategories')) {
// 商品一覧時
classcat2 = eccube.productsClassCategories[product_id][classcat_id1]['#' + classcat_id2];
} else {
// 詳細表示時
if (typeof eccube.classCategories[classcat_id1] !== 'undefined') {
classcat2 = eccube.classCategories[classcat_id1]['#' + classcat_id2];
}
}
if (typeof classcat2 === 'undefined') {
// 商品コード
var $product_code = $('.product-code-default');
if (typeof this.product_code_origin === 'undefined') {
// 初期値を保持しておく
this.product_code_origin = $product_code.text();
}
$product_code.text(this.product_code_origin);
// 在庫(品切れ)
var $cartbtn = $form.parent().find('.add-cart').first();
if (typeof this.product_cart_origin === 'undefined') {
// 初期値を保持しておく
this.product_cart_origin = $cartbtn.text();
}
$cartbtn.prop('disabled', false);
$cartbtn.text(this.product_cart_origin);
// 通常価格
var $price01 = $form.parent().find('.price01-default-Custom').first();
if (typeof this.price01_origin === 'undefined') {
// 初期値を保持しておく
this.price01_origin = $price01.text();
}
$price01.text(this.price01_origin);
// 販売価格
var $price02 = $form.parent().find('.price02-default-Custom').first();
if (typeof price02_origin[product_id] === 'undefined') {
// 初期値を保持しておく
price02_origin[product_id] = $price02.text();
}
$price02.text(price02_origin[product_id]);
{# オートシップメント価格項目の表示 #}
var $price02_sub = $form.parent().find('.price02-default-Custom-sub').first();
$price02_sub.show();
// 通常価格(税込)
var $price01 = $form.parent().find('.price01Tax-default-Custom').first();
if (typeof this.price01Tax_origin === 'undefined') {
// 初期値を保持しておく
this.price01Tax_origin = $price01.text();
}
$price01.text(this.price01Tax_origin);
// 販売価格(税込)
var $price02 = $form.parent().find('.price02Tax-default-Custom').first();
if (typeof price02Tax_origin[product_id] === 'undefined') {
// 初期値を保持しておく
price02Tax_origin[product_id] = $price02.text();
}
$price02.text(price02Tax_origin[product_id]);
// 商品規格
var $product_class_id_dynamic = $form.find('[id^=ProductClass]');
$product_class_id_dynamic.val('');
} else {
// 商品コード
var $product_code = $('.product-code-default');
if (classcat2 && typeof classcat2.product_code !== 'undefined') {
$product_code.text(classcat2.product_code);
} else {
$product_code.text(this.product_code_origin);
}
// 在庫(品切れ)
var $cartbtn = $form.parent().find('.add-cart').first();
if (typeof this.product_cart_origin === 'undefined') {
// 初期値を保持しておく
this.product_cart_origin = $cartbtn.text();
}
if (classcat2 && classcat2.stock_find === false) {
$cartbtn.prop('disabled', true);
$cartbtn.text('ただいま品切れ中です');
} else {
$cartbtn.prop('disabled', false);
$cartbtn.text(this.product_cart_origin);
}
// 通常価格
var $price01 = $form.parent().find('.price01-default-Custom').first();
if (typeof this.price01_origin === 'undefined') {
// 初期値を保持しておく
this.price01_origin = $price01.text();
}
if (classcat2 && typeof classcat2.price01 !== 'undefined' && String(classcat2.price01).length >= 1) {
$price01.text('¥' + classcat2.price01);
} else {
$price01.text(this.price01_origin);
}
// 販売価格
var $price02 = $form.parent().find('.price02-default-Custom').first();
if (typeof price02_origin[product_id] === 'undefined') {
// 初期値を保持しておく
price02_origin[product_id] = $price02.text();
}
if (classcat2 && typeof classcat2.price02 !== 'undefined' && String(classcat2.price02).length >= 1) {
{# $price02.text('¥' + classcat2.price02); #}
$price02.text(classcat2.price02);
{# オートシップメント価格項目の非表示 #}
var $price02_sub = $form.parent().find('.price02-default-Custom-sub').first();
$price02_sub.hide();
} else {
$price02.text(price02_origin[product_id]);
}
// 通常価格(税込)
var $price01 = $form.parent().find('.price01Tax-default-Custom').first();
if (typeof this.price01Tax_origin === 'undefined') {
// 初期値を保持しておく
this.price01Tax_origin = $price01.text();
}
if (classcat2 && typeof classcat2.price01 !== 'undefined' && String(classcat2.price01).length >= 1) {
$price01.text('¥' + classcat2.price01_inc_tax);
} else {
$price01.text(this.price01Tax_origin);
}
// 販売価格(税込)
var $price02 = $form.parent().find('.price02Tax-default-Custom').first();
if (typeof price02Tax_origin[product_id] === 'undefined') {
// 初期値を保持しておく
price02Tax_origin[product_id] = $price02.text();
}
if (classcat2 && typeof classcat2.price02 !== 'undefined' && String(classcat2.price02).length >= 1) {
{# $price02.text('¥' + classcat2.price02_inc_tax); #}
$price02.text(classcat2.price02_inc_tax);
} else {
$price02.text(price02Tax_origin[product_id]);
}
// ポイント
var $point_default = $form.find('[id^=point_default]');
var $point_dynamic = $form.find('[id^=point_dynamic]');
if (classcat2 && typeof classcat2.point !== 'undefined' && String(classcat2.point).length >= 1) {
$point_dynamic.text(classcat2.point).show();
$point_default.hide();
} else {
$point_dynamic.hide();
$point_default.show();
}
// 商品規格
var $product_class_id_dynamic = $form.find('[id^=ProductClass]');
if (classcat2 && typeof classcat2.product_class_id !== 'undefined' && String(classcat2.product_class_id).length >= 1) {
$product_class_id_dynamic.val(classcat2.product_class_id);
} else {
$product_class_id_dynamic.val('');
}
}
};
/**
* Initialize.
*/
$(function() {
// 規格1選択時
$('select[name=classcategory_id1]')
.change(function() {
var $form = $(this).parents('form');
var product_id = $form.find('input[name=product_id]').val();
var $sele1 = $(this);
var $sele2 = $form.find('select[name=classcategory_id2]');
// 規格1のみの場合
if (!$sele2.length) {
eccube.checkStock($form, product_id, $sele1.val(), null);
// 規格2ありの場合
} else {
eccube.setClassCategories($form, product_id, $sele1, $sele2);
}
});
// 規格2選択時
$('select[name=classcategory_id2]')
.change(function() {
var $form = $(this).parents('form');
var product_id = $form.find('input[name=product_id]').val();
var $sele1 = $form.find('select[name=classcategory_id1]');
var $sele2 = $(this);
eccube.checkStock($form, product_id, $sele1.val(), $sele2.val());
});
});
})(window);
</script>
{% endblock %}
{% block main %}
<div class="ec-productRole">
<div class="ec-grid2" style="margin-bottom: 50px;">
<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 : '' }}"></div>
{% else %}
<div class="slide-item"><img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" /></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=""></div>#}
{#{% endfor %}#}
{#</div>#}
</div>
</div>
<div class="ec-grid2__cell">
<div class="ec-productRole__profile">
{# 部品の場合 #}
{% if sidebar_type == 1 %}
{% if Product.code_min is not empty %}
<p style="font-size: 12px;">型番<br /></p>
<span class="product-code-default">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
{% endif %}
{% endif %}
{# 商品説明 #}
<div class="ec-productRole__description">{{ Product.description_detail|raw|nl2br }}
</div>
{# 通常価格 #}
{% 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 %}
{% if customSaleTypeRental %}
レンタル月額
{% endif %}
{# 販売価格 #}
<div class="ec-productRole__price">
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class="ec-price">
<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-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
<span class="ec-price__tax">{{ '税込'|trans }}</span>
{# オートシップメント価格項目の非表示 #}
<span class="price02-default-Custom-sub" style="font-size: 12px;"><br />(オートシップメント契約価格{{ Product.getPrice02IncTaxMin|number_format }}円税込)</span>
</div>
{% endif %}
{% else %}
<div class="ec-price">
<span class="ec-price__price">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class="ec-price__tax">{{ '税込'|trans }}</span>
</div>
{% endif %}
{% if not customSaleTypeRental %}
<p style="font-size: 12px;">※ 分割払いに対応しております(金利手数料無料)<br /></p>
{% endif %}
</div>
{# カートリッジ/部品の場合 #}
{% if sidebar_type == 2 or sidebar_type == 1 %}
<br /><p style="font-size: 12px;">対応機種<br /></p>
{% endif %}
{# タグ #}
<ul class="ec-productRole__tags">
{% for Tag in Product.Tags %}
<li class="ec-productRole__tag tag_{{ Tag.id }}">{{ Tag }}</li>
{% endfor %}
</ul>
{# タグ #}
{#<div>#}
{# <p>対応機種</p>#}
{# {% for Tag in Product.Tags %}#}
{# <p class="btn_txt tag_{{ Tag.id }}">{{ Tag }}</p>#}
{# {% endfor %}#}
{#</div>#}
{# カート #}
<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_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class="ec-select">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class="ec-numberInput"><span>{{ '数量'|trans }}</span>
{% if customSaleTypeRental %}
{{ form_widget(form.quantity, {attr: { disabled: 'disabled'}}) }}
{% else %}
{{ form_widget(form.quantity) }}
{{ form_errors(form.quantity) }}
{% endif %}
</div>
</div>
{% if customSaleTypeRental %}
<div class="ec-productRole__btn">
<div class="ec-blockBtn--action" id="Product_rental">
{{ 'レンタルについて詳細・お申込み'|trans }}
</div>
</div>
<div class="rental-disclaimer">
<p>お申込み時は会員登録が必要です</p>
</div>
{% else %}
<div class="ec-productRole__btn">
<button type="submit" class="ec-blockBtn--action add-cart">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% endif %}
{% 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" style="color:#fff;">{{ 'カートへ進む'|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">
{{ 'お気に入りに追加'|trans }}
</button>
{% else %}
<button type="submit" id="favorite" class="ec-blockBtn--cancel"
disabled="disabled">{{ 'お気に入りに追加済です。'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}
<div class="ec-productRole__btn">
{% if customSaleTypeRental %}
<div class="ec-blockBtn--action" id="Product_rental_contact">
{{ '資料請求・お問い合わせ'|trans }}
</div>
{% else %}
<div class="ec-blockBtn--action" id="Product_contact">
{{ '資料請求・お問い合わせ'|trans }}
</div>
{% endif %}
</div>
{# 関連商品プラグインの設定情報を確認し、設定されていれば、「対応カートリッジを見る」ボタンを表示する #}
{# ※ただし、「関連商品設定」プラグインが無効の場合はエラーが発生します。 #}
{% for RelatedProduct in Product.RelatedProducts %}
{% set ChildProduct = RelatedProduct.ChildProduct %}
{% if ChildProduct.Status.id == constant("Eccube\\Entity\\Master\\ProductStatus::DISPLAY_SHOW") %}
<div class="ec-productRole__btn">
<div class="ec-blockBtn--action" id="Product_cartridge">
{{ '対応カートリッジを見る'|trans }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% if Product.freearea %}
<div class="ec-productRole__description">
{{ include(template_from_string(Product.freearea)) }}
</div>
{% endif %}
</div>
{% endblock %}