<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Product/detail.twig */
class __TwigTemplate_fff0a4840f68903f827ae9b636fb97ebcac6f33a3d95e21d188efe3a1ea57684 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 36
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail.twig"));
// line 11
if (twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 11, $this->source); })()), "id", [], "any", false, false, false, 11), twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 11, $this->source); })()), "noindex", [], "any", false, false, false, 11))) {
// line 12
twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 12, $this->source); })()), "setMetaRobots", [0 => "noindex"], "method", false, false, false, 12);
}
// line 15
$context["sidbar_out"] = false;
// line 16
$context["sidebar_type"] = 0;
// line 19
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 19, $this->source); })()), "ProductCategories", [], "any", false, false, false, 19))) {
// line 20
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 20, $this->source); })()), "ProductCategories", [], "any", false, false, false, 20));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 21
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 21), "path", [], "any", false, false, false, 21));
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 22
if ((twig_get_attribute($this->env, $this->source, $context["Path"], "hierarchy", [], "any", false, false, false, 22) == 1)) {
// line 23
if ((twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 23) == "部品")) {
// line 24
$context["sidebar_type"] = 1;
// line 25
$context["sidbar_out"] = true;
}
// line 27
if ((twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 27) == "カートリッジ")) {
// line 28
$context["sidebar_type"] = 2;
// line 29
$context["sidbar_out"] = true;
}
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 38
$context["body_class"] = "product_page";
// line 36
$this->parent = $this->loadTemplate("default_frame.twig", "Product/detail.twig", 36);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 40
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 41
echo " <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;
}
\t\t.ec-price{
\t\t\tmargin-bottom: 20px !important;
\t\t}
\t\t.ec-price__price{
\t\t\tpadding: 0 0 5px 0 !important;
\t\t\tborder-bottom: 1px solid !important;
\t\t\tfont-size: 22px !important;
\t\t\tfont-weight: bold !important;
\t\t}
\t\t.ec-price__tax{
\t\t\tfont-size: 16px !important;
\t\t}
\t\t.ec-blockBtn--action{
\t\t\tmargin-bottom: 0;
\t\t\tfont-weight: bold;
\t\t\ttext-align: center;
\t\t\tvertical-align: middle;
\t\t\ttouch-action: manipulation;
\t\t\tcursor: pointer;
\t\t\tbackground-image: none;
\t\t\tborder: 1px solid transparent;
\t\t\twhite-space: nowrap;
\t\t\tfont-size: 13px !important;
\t\t\tborder-radius: 0px;
\t\t\tuser-select: none;
\t\t\tpadding: 10px 16px;
\t\t\ttext-decoration: none;
\t\t\tcolor: #fff;
\t\t\tdisplay: block;
\t\t\twidth: 100%;
\t\t\theight: 40px !important;
\t\t\tline-height: 40px !important;
\t\t\tpadding-top: 0;
\t\t\tpadding-bottom: 0;
\t\t}
\t\t.ec-layoutRole__mainBottom{
\t\t\tpadding: 0 2.5% !important;
\t\t}
\t\t
\t\t.rental-disclaimer{
margin-bottom: 10px;
}
\t\t
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 162
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 163
echo " <script>
eccube.classCategories = ";
// line 164
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 164, $this->source); })()));
echo ";
// 規格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);
}
";
// line 175
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 175)) {
// line 176
echo " fnSetClassCategories(
\$('#form1'), ";
// line 177
echo json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 177, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 177), "vars", [], "any", false, false, false, 177), "value", [], "any", false, false, false, 177));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 179
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 179)) {
// line 180
echo " eccube.checkStock(\$('#form1'), ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 180, $this->source); })()), "id", [], "any", false, false, false, 180), "html", null, true);
echo ", ";
echo json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 180, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 180), "vars", [], "any", false, false, false, 180), "value", [], "any", false, false, false, 180));
echo ", null);
";
}
// line 182
echo " </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) {
";
// line 216
echo " \$('[name=\"classcategory_id1\"] option[value=\"__unselected\"]').remove();
} else {
";
// line 219
echo " \$('[name=\"classcategory_id1\"] option[value=\"__unselected\"]').text(\"購入方法\");
}
\$(function() {
\$('#Product_contact').on('click', function() {
window.location.href = '";
// line 224
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 224, $this->source); })()), "multipure_contact", [], "any", false, false, false, 224), "html", null, true);
echo "';
});
\$('#Product_rental').on('click', function() {
let href = '";
// line 227
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 227, $this->source); })()), "multipure_lp_rental", [], "any", false, false, false, 227), "html", null, true);
echo "';
window.open(href, \"_blank\");
});
\$('#Product_rental_contact').on('click', function() {
window.location.href = '";
// line 231
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 231, $this->source); })()), "multipure_contact_lp_rental", [], "any", false, false, false, 231), "html", null, true);
echo "';
});
\$('#Product_rental_entry').on('click', function() {
window.location.href = '";
// line 234
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("rental_entry", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 234, $this->source); })()), "id", [], "any", false, false, false, 234)]), "html", null, true);
echo "';
});
";
// line 236
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 236, $this->source); })()), "RelatedProducts", [], "any", false, false, false, 236));
foreach ($context['_seq'] as $context["_key"] => $context["RelatedProduct"]) {
// line 237
echo " ";
$context["ChildProduct"] = twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, false, 237);
// line 238
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ChildProduct"]) || array_key_exists("ChildProduct", $context) ? $context["ChildProduct"] : (function () { throw new RuntimeError('Variable "ChildProduct" does not exist.', 238, $this->source); })()), "Status", [], "any", false, false, false, 238), "id", [], "any", false, false, false, 238) == twig_constant("Eccube\\Entity\\Master\\ProductStatus::DISPLAY_SHOW"))) {
// line 239
echo " \$('#Product_cartridge').on('click', function() {
window.location.href = '";
// line 240
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["ChildProduct"]) || array_key_exists("ChildProduct", $context) ? $context["ChildProduct"] : (function () { throw new RuntimeError('Variable "ChildProduct" does not exist.', 240, $this->source); })()), "id", [], "any", false, false, false, 240)]), "html", null, true);
echo "';
});
";
}
// line 243
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RelatedProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 244
echo "
\$('.add-cart').on('click', function(event) {
";
// line 246
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 246)) {
// line 247
echo " // 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 249
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id1')[0].setCustomValidity('');
}
";
}
// line 255
echo "
";
// line 256
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 256)) {
// line 257
echo " // 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 259
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id2')[0].setCustomValidity('');
}
";
}
// line 265
echo "
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('";
// line 268
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
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: \"";
// line 295
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
// カートブロックが更新された場合、イベントが無効になるため再設定
\$('.ec-cartNavi').click(function() {
window.location.href = '";
// line 303
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "';
});
});
}).fail(function(data) {
alert('";
// line 307
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).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\": \"";
// line 327
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 327, $this->source); })()), "name", [], "any", false, false, false, 327), "html", null, true);
echo "\",
\"image\": [
";
// line 329
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 329, $this->source); })()), "ProductImage", [], "any", false, false, false, 329));
$context['_iterated'] = false;
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
// line 330
echo " \"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 330, $this->source); })()), "request", [], "any", false, false, false, 330), "schemeAndHttpHost", [], "any", false, false, false, 330), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"], "save_image"), "html", null, true);
echo "\"";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 330)) {
echo ",";
}
// line 331
echo "
";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 333
echo " \"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 333, $this->source); })()), "request", [], "any", false, false, false, 333), "schemeAndHttpHost", [], "any", false, false, false, 333), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\"
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 335
echo " ],
\"description\": \"";
// line 336
echo twig_escape_filter($this->env, twig_slice($this->env, twig_replace_filter(((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", true, true, false, 336)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", false, false, false, 336), twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 336, $this->source); })()), "description_detail", [], "any", false, false, false, 336))) : (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 336, $this->source); })()), "description_detail", [], "any", false, false, false, 336))), ["
" => "", "
" => ""]), 0, 300), "html", null, true);
echo "\",
";
// line 337
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 337, $this->source); })()), "code_min", [], "any", false, false, false, 337)) {
// line 338
echo " \"sku\": \"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 338, $this->source); })()), "code_min", [], "any", false, false, false, 338), "html", null, true);
echo "\",
";
}
// line 340
echo " \"offers\": {
\"@type\": \"Offer\",
\"url\": \"";
// line 342
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 342, $this->source); })()), "id", [], "any", false, false, false, 342)]), "html", null, true);
echo "\",
\"priceCurrency\": \"";
// line 343
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 343, $this->source); })()), "currency", [], "any", false, false, false, 343), "html", null, true);
echo "\",
\"price\": ";
// line 344
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 344, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 344), "html", null, true);
echo ",
\"availability\": \"";
// line 345
echo ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 345, $this->source); })()), "stock_find", [], "any", false, false, false, 345)) ? ("InStock") : ("OutOfStock"));
echo "\"
}
}
</script>
";
// line 352
echo "<script>
";
// line 354
echo "(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]);
";
// line 461
echo " 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) {
";
// line 528
echo " \$price02.text(classcat2.price02);
";
// line 530
echo " 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) {
";
// line 556
echo " \$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>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 622
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 623
echo " <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\">
";
// line 629
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 629, $this->source); })()), "ProductImage", [], "any", false, false, false, 629));
$context['_iterated'] = false;
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
// line 630
echo " <div class=\"slide-item\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 630)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 630, $this->source); })()), "name", [], "any", false, false, false, 630), "html", null, true))) : (print ("")));
echo "\"></div>
";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 632
echo " <div class=\"slide-item\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 632)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 632, $this->source); })()), "name", [], "any", false, false, false, 632), "html", null, true))) : (print ("")));
echo "\" /></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 634
echo " </div>
";
// line 636
echo " ";
// line 637
echo " ";
// line 638
echo " ";
// line 639
echo " ";
// line 640
echo " </div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-productRole__profile\">
";
// line 645
if (((isset($context["sidebar_type"]) || array_key_exists("sidebar_type", $context) ? $context["sidebar_type"] : (function () { throw new RuntimeError('Variable "sidebar_type" does not exist.', 645, $this->source); })()) == 1)) {
// line 646
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 646, $this->source); })()), "code_min", [], "any", false, false, false, 646))) {
// line 647
echo " <p style=\"font-size: 12px;\">型番<br /></p>
<span class=\"product-code-default\">";
// line 648
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 648, $this->source); })()), "code_min", [], "any", false, false, false, 648), "html", null, true);
if ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 648, $this->source); })()), "code_min", [], "any", false, false, false, 648) != twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 648, $this->source); })()), "code_max", [], "any", false, false, false, 648))) {
echo " ~ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 648, $this->source); })()), "code_max", [], "any", false, false, false, 648), "html", null, true);
}
echo "</span>
";
}
}
// line 650
echo "\t
\t\t\t\t\t";
// line 652
echo " <div class=\"ec-productRole__description\">";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 652, $this->source); })()), "description_detail", [], "any", false, false, false, 652));
echo "
</div>
";
// line 655
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 655, $this->source); })()), "hasProductClass", [], "any", false, false, false, 655)) {
// line 656
echo "<div class=\"ec-productRole__priceRegular\">
";
// line 657
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 657, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 657)) && (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 657, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 657) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 657, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 657)))) {
// line 658
echo " <span class=\"ec-productRole__priceRegularPrice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html", null, true);
echo ":<span class=\"price01-default\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 658, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 658)), "html", null, true);
echo "</span></span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 659
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 660
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 660, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 660)) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 660, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 660)))) {
// line 661
echo " <span class=\"ec-productRole__priceRegularPrice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html", null, true);
echo ":<span class=\"price01-default\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 661, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 661)), "html", null, true);
echo "~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 661, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 661)), "html", null, true);
echo "</span></span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 662
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
}
// line 664
echo " </div>
";
} else {
// line 666
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 666, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 666))) {
// line 667
echo " <span class=\"ec-productRole__priceRegularPrice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 667, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 667)), "html", null, true);
echo "</span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 668
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
}
// line 670
echo " ";
}
// line 671
echo " ";
if ((isset($context["customSaleTypeRental"]) || array_key_exists("customSaleTypeRental", $context) ? $context["customSaleTypeRental"] : (function () { throw new RuntimeError('Variable "customSaleTypeRental" does not exist.', 671, $this->source); })())) {
// line 672
echo " レンタル月額
";
}
// line 674
echo "
";
// line 676
echo " <div class=\"ec-productRole__price\">
";
// line 677
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 677, $this->source); })()), "hasProductClass", [], "any", false, false, false, 677)) {
// line 678
if ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 678, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 678) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 678, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 678))) {
// line 679
echo " <div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">";
// line 680
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 680, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 680)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 681
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
} else {
// line 684
echo " <div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">";
// line 685
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 685, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 685)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 685, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 685)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 686
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
// line 688
echo " <span class=\"price02-default-Custom-sub\" style=\"font-size: 12px;\"><br />(オートシップメント契約価格";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 688, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 688)), "html", null, true);
echo "円税込)</span>
</div>
";
}
// line 691
echo "
";
} else {
// line 693
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">";
// line 694
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 694, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 694)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 695
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 698
echo " ";
if ( !(isset($context["customSaleTypeRental"]) || array_key_exists("customSaleTypeRental", $context) ? $context["customSaleTypeRental"] : (function () { throw new RuntimeError('Variable "customSaleTypeRental" does not exist.', 698, $this->source); })())) {
// line 699
echo "\t\t\t\t\t\t<p style=\"font-size: 12px;\">※ 分割払いに対応しております(金利手数料無料)<br /></p>
";
}
// line 701
echo " </div>
\t\t\t\t\t
";
// line 704
if ((((isset($context["sidebar_type"]) || array_key_exists("sidebar_type", $context) ? $context["sidebar_type"] : (function () { throw new RuntimeError('Variable "sidebar_type" does not exist.', 704, $this->source); })()) == 2) || ((isset($context["sidebar_type"]) || array_key_exists("sidebar_type", $context) ? $context["sidebar_type"] : (function () { throw new RuntimeError('Variable "sidebar_type" does not exist.', 704, $this->source); })()) == 1))) {
// line 705
echo "\t\t\t\t\t\t<br /><p style=\"font-size: 12px;\">対応機種<br /></p>
";
}
// line 706
echo "\t\t\t\t\t
";
// line 708
echo " <ul class=\"ec-productRole__tags\">
";
// line 709
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 709, $this->source); })()), "Tags", [], "any", false, false, false, 709));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 710
echo " <li class=\"ec-productRole__tag tag_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, false, 710), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["Tag"], "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 712
echo " </ul>
";
// line 714
echo "\t\t\t\t\t";
// line 715
echo "\t\t\t\t\t";
// line 716
echo " ";
// line 717
echo " ";
// line 718
echo " ";
// line 719
echo "\t\t\t\t\t";
// line 720
echo "\t\t\t\t\t
";
// line 723
echo " <form action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 723, $this->source); })()), "id", [], "any", false, false, false, 723)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 724
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 724, $this->source); })()), "stock_find", [], "any", false, false, false, 724)) {
// line 725
echo " <div class=\"ec-productRole__actions\">
";
// line 726
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 726)) {
// line 727
echo " <div class=\"ec-select\">
";
// line 728
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 728, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 728), 'widget');
echo "
";
// line 729
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 729, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 729), 'errors');
echo "
</div>
";
// line 731
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 731)) {
// line 732
echo " <div class=\"ec-select\">
";
// line 733
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 733, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 733), 'widget');
echo "
";
// line 734
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 734, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 734), 'errors');
echo "
</div>
";
}
// line 737
echo " ";
}
// line 738
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 739
if ((isset($context["customSaleTypeRental"]) || array_key_exists("customSaleTypeRental", $context) ? $context["customSaleTypeRental"] : (function () { throw new RuntimeError('Variable "customSaleTypeRental" does not exist.', 739, $this->source); })())) {
// line 740
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 740, $this->source); })()), "quantity", [], "any", false, false, false, 740), 'widget', ["attr" => ["disabled" => "disabled"]]);
echo "
";
} else {
// line 742
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 742, $this->source); })()), "quantity", [], "any", false, false, false, 742), 'widget');
echo "
";
// line 743
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 743, $this->source); })()), "quantity", [], "any", false, false, false, 743), 'errors');
echo "
";
}
// line 745
echo " </div>
</div>
";
// line 747
if ((isset($context["customSaleTypeRental"]) || array_key_exists("customSaleTypeRental", $context) ? $context["customSaleTypeRental"] : (function () { throw new RuntimeError('Variable "customSaleTypeRental" does not exist.', 747, $this->source); })())) {
// line 748
echo " \t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t<div class=\"ec-blockBtn--action\" id=\"Product_rental\">
\t\t\t\t\t\t\t\t";
// line 750
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レンタルについて詳細・お申込み"), "html", null, true);
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
<div class=\"rental-disclaimer\">
<p>お申込み時は会員登録が必要です</p>
</div>
";
} else {
// line 757
echo " <div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
";
// line 759
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
}
// line 763
echo " ";
} else {
// line 764
echo " ";
// line 765
echo " ";
// line 766
echo " ";
// line 767
echo " ";
// line 768
echo " ";
// line 769
echo " ";
}
// line 770
echo "
";
// line 771
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 771, $this->source); })()), 'rest');
echo "
</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=\"";
// line 776
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html", null, true);
echo "\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 777
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">";
// line 780
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 781
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-inlineBtn--action\" style=\"color:#fff;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
";
// line 787
if (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 787, $this->source); })()), "option_favorite_product", [], "any", false, false, false, 787)) {
// line 788
echo " <form action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 788, $this->source); })()), "id", [], "any", false, false, false, 788)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__btn\">
";
// line 790
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 790, $this->source); })()) == false)) {
// line 791
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
";
// line 792
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html", null, true);
echo "
</button>
";
} else {
// line 795
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">";
// line 796
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html", null, true);
echo "
</button>
";
}
// line 799
echo " </div>
</form>
";
}
// line 802
echo "\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
";
// line 803
if ((isset($context["customSaleTypeRental"]) || array_key_exists("customSaleTypeRental", $context) ? $context["customSaleTypeRental"] : (function () { throw new RuntimeError('Variable "customSaleTypeRental" does not exist.', 803, $this->source); })())) {
// line 804
echo " <div class=\"ec-blockBtn--action\" id=\"Product_rental_contact\">
\t";
// line 805
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("資料請求・お問い合わせ"), "html", null, true);
echo "
\t\t\t\t\t\t\t</div>
";
} else {
// line 808
echo "\t\t\t\t\t\t\t<div class=\"ec-blockBtn--action\" id=\"Product_contact\">
\t\t\t\t\t\t\t\t";
// line 809
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("資料請求・お問い合わせ"), "html", null, true);
echo "
\t\t\t\t\t\t\t</div>
";
}
// line 812
echo "\t\t\t\t\t\t</div>
";
// line 815
echo " ";
// line 816
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 816, $this->source); })()), "RelatedProducts", [], "any", false, false, false, 816));
foreach ($context['_seq'] as $context["_key"] => $context["RelatedProduct"]) {
// line 817
echo " ";
$context["ChildProduct"] = twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, false, 817);
// line 818
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ChildProduct"]) || array_key_exists("ChildProduct", $context) ? $context["ChildProduct"] : (function () { throw new RuntimeError('Variable "ChildProduct" does not exist.', 818, $this->source); })()), "Status", [], "any", false, false, false, 818), "id", [], "any", false, false, false, 818) == twig_constant("Eccube\\Entity\\Master\\ProductStatus::DISPLAY_SHOW"))) {
// line 819
echo "\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t<div class=\"ec-blockBtn--action\" id=\"Product_cartridge\">
\t\t\t\t\t\t\t\t";
// line 821
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("対応カートリッジを見る"), "html", null, true);
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
";
}
// line 825
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RelatedProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 826
echo " </div>
</div>
</div>
";
// line 829
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 829, $this->source); })()), "freearea", [], "any", false, false, false, 829)) {
// line 830
echo " <div class=\"ec-productRole__description\">
";
// line 831
echo twig_include($this->env, $context, twig_template_from_string($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 831, $this->source); })()), "freearea", [], "any", false, false, false, 831)));
echo "
</div>
";
}
// line 834
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1424 => 834, 1418 => 831, 1415 => 830, 1413 => 829, 1408 => 826, 1402 => 825, 1395 => 821, 1391 => 819, 1388 => 818, 1385 => 817, 1380 => 816, 1378 => 815, 1374 => 812, 1368 => 809, 1365 => 808, 1359 => 805, 1356 => 804, 1354 => 803, 1351 => 802, 1346 => 799, 1340 => 796, 1337 => 795, 1331 => 792, 1328 => 791, 1326 => 790, 1320 => 788, 1318 => 787, 1307 => 781, 1303 => 780, 1297 => 777, 1293 => 776, 1285 => 771, 1282 => 770, 1279 => 769, 1277 => 768, 1275 => 767, 1273 => 766, 1271 => 765, 1269 => 764, 1266 => 763, 1259 => 759, 1255 => 757, 1245 => 750, 1241 => 748, 1239 => 747, 1235 => 745, 1230 => 743, 1225 => 742, 1219 => 740, 1217 => 739, 1212 => 738, 1209 => 737, 1203 => 734, 1199 => 733, 1196 => 732, 1194 => 731, 1189 => 729, 1185 => 728, 1182 => 727, 1180 => 726, 1177 => 725, 1175 => 724, 1170 => 723, 1166 => 720, 1164 => 719, 1162 => 718, 1160 => 717, 1158 => 716, 1156 => 715, 1154 => 714, 1151 => 712, 1140 => 710, 1136 => 709, 1133 => 708, 1130 => 706, 1126 => 705, 1124 => 704, 1120 => 701, 1116 => 699, 1113 => 698, 1107 => 695, 1103 => 694, 1100 => 693, 1096 => 691, 1089 => 688, 1085 => 686, 1079 => 685, 1076 => 684, 1070 => 681, 1066 => 680, 1063 => 679, 1061 => 678, 1059 => 677, 1056 => 676, 1053 => 674, 1049 => 672, 1046 => 671, 1043 => 670, 1038 => 668, 1031 => 667, 1028 => 666, 1024 => 664, 1019 => 662, 1010 => 661, 1008 => 660, 1004 => 659, 997 => 658, 995 => 657, 992 => 656, 989 => 655, 983 => 652, 980 => 650, 970 => 648, 967 => 647, 964 => 646, 962 => 645, 956 => 640, 954 => 639, 952 => 638, 950 => 637, 948 => 636, 945 => 634, 934 => 632, 916 => 630, 898 => 629, 890 => 623, 880 => 622, 807 => 556, 780 => 530, 777 => 528, 709 => 461, 601 => 354, 598 => 352, 589 => 345, 585 => 344, 581 => 343, 577 => 342, 573 => 340, 567 => 338, 565 => 337, 560 => 336, 557 => 335, 547 => 333, 533 => 331, 525 => 330, 507 => 329, 502 => 327, 479 => 307, 472 => 303, 461 => 295, 431 => 268, 426 => 265, 417 => 259, 413 => 257, 411 => 256, 408 => 255, 399 => 249, 395 => 247, 393 => 246, 389 => 244, 383 => 243, 377 => 240, 374 => 239, 371 => 238, 368 => 237, 364 => 236, 359 => 234, 353 => 231, 346 => 227, 340 => 224, 333 => 219, 329 => 216, 294 => 182, 286 => 180, 284 => 179, 279 => 177, 276 => 176, 274 => 175, 260 => 164, 257 => 163, 247 => 162, 118 => 41, 108 => 40, 97 => 36, 95 => 38, 82 => 29, 80 => 28, 78 => 27, 75 => 25, 73 => 24, 71 => 23, 69 => 22, 65 => 21, 61 => 20, 59 => 19, 57 => 16, 55 => 15, 52 => 12, 50 => 11, 37 => 36,);
}
public function getSourceContext()
{
return new Source("{#
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;
}
\t\t.ec-price{
\t\t\tmargin-bottom: 20px !important;
\t\t}
\t\t.ec-price__price{
\t\t\tpadding: 0 0 5px 0 !important;
\t\t\tborder-bottom: 1px solid !important;
\t\t\tfont-size: 22px !important;
\t\t\tfont-weight: bold !important;
\t\t}
\t\t.ec-price__tax{
\t\t\tfont-size: 16px !important;
\t\t}
\t\t.ec-blockBtn--action{
\t\t\tmargin-bottom: 0;
\t\t\tfont-weight: bold;
\t\t\ttext-align: center;
\t\t\tvertical-align: middle;
\t\t\ttouch-action: manipulation;
\t\t\tcursor: pointer;
\t\t\tbackground-image: none;
\t\t\tborder: 1px solid transparent;
\t\t\twhite-space: nowrap;
\t\t\tfont-size: 13px !important;
\t\t\tborder-radius: 0px;
\t\t\tuser-select: none;
\t\t\tpadding: 10px 16px;
\t\t\ttext-decoration: none;
\t\t\tcolor: #fff;
\t\t\tdisplay: block;
\t\t\twidth: 100%;
\t\t\theight: 40px !important;
\t\t\tline-height: 40px !important;
\t\t\tpadding-top: 0;
\t\t\tpadding-bottom: 0;
\t\t}
\t\t.ec-layoutRole__mainBottom{
\t\t\tpadding: 0 2.5% !important;
\t\t}
\t\t
\t\t.rental-disclaimer{
margin-bottom: 10px;
}
\t\t
</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 %}\t
\t\t\t\t\t{# 商品説明 #}
<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 %}
\t\t\t\t\t\t<p style=\"font-size: 12px;\">※ 分割払いに対応しております(金利手数料無料)<br /></p>
{% endif %}
</div>
\t\t\t\t\t
{# カートリッジ/部品の場合 #}
{% if sidebar_type == 2 or sidebar_type == 1 %}
\t\t\t\t\t\t<br /><p style=\"font-size: 12px;\">対応機種<br /></p>
{% endif %}\t\t\t\t\t
{# タグ #}
<ul class=\"ec-productRole__tags\">
{% for Tag in Product.Tags %}
<li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
{% endfor %}
</ul>
{# タグ #}
\t\t\t\t\t{#<div>#}
\t\t\t\t\t{#\t<p>対応機種</p>#}
{# {% for Tag in Product.Tags %}#}
{# <p class=\"btn_txt tag_{{ Tag.id }}\">{{ Tag }}</p>#}
{# {% endfor %}#}
\t\t\t\t\t{#</div>#}
\t\t\t\t\t
{# カート #}
<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 %}
\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t<div class=\"ec-blockBtn--action\" id=\"Product_rental\">
\t\t\t\t\t\t\t\t{{ 'レンタルについて詳細・お申込み'|trans }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</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 %}
\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
{% if customSaleTypeRental %}
<div class=\"ec-blockBtn--action\" id=\"Product_rental_contact\">
\t{{ '資料請求・お問い合わせ'|trans }}
\t\t\t\t\t\t\t</div>
{% else %}
\t\t\t\t\t\t\t<div class=\"ec-blockBtn--action\" id=\"Product_contact\">
\t\t\t\t\t\t\t\t{{ '資料請求・お問い合わせ'|trans }}
\t\t\t\t\t\t\t</div>
{% endif %}
\t\t\t\t\t\t</div>
{# 関連商品プラグインの設定情報を確認し、設定されていれば、「対応カートリッジを見る」ボタンを表示する #}
{# ※ただし、「関連商品設定」プラグインが無効の場合はエラーが発生します。 #}
{% for RelatedProduct in Product.RelatedProducts %}
{% set ChildProduct = RelatedProduct.ChildProduct %}
{% if ChildProduct.Status.id == constant(\"Eccube\\\\Entity\\\\Master\\\\ProductStatus::DISPLAY_SHOW\") %}
\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t<div class=\"ec-blockBtn--action\" id=\"Product_cartridge\">
\t\t\t\t\t\t\t\t{{ '対応カートリッジを見る'|trans }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% if Product.freearea %}
<div class=\"ec-productRole__description\">
{{ include(template_from_string(Product.freearea)) }}
</div>
{% endif %}
</div>
{% endblock %}
", "Product/detail.twig", "/home/multipure03/multipure.co.jp/public_html/dev-shop.multipure.co.jp/app/template/default/Product/detail.twig");
}
}