<?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_d5bbacbe350a0034be1dbd43d8637c5fc11799b9b5496f374a915e00cde3dec8 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 22
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 24
$context["body_class"] = "product_page";
// line 22
$this->parent = $this->loadTemplate("default_frame.twig", "Product/detail.twig", 22);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 26
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 27
echo "<script>
\$('#brother').on('change', function(){
\$cartbtn = \$('.add-cart');
if (\$cartbtn.text() != 'ただいま品切れ中です') {
if (!\$(this).val()) {
\$cartbtn.prop('disabled', true);
\$cartbtn.addClass('zero');
} else {
\$cartbtn.prop('disabled', false);
\$cartbtn.removeClass('zero');
}
}
});
eccube.classCategories = ";
// line 40
echo $this->extensions['Customize\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 40, $this->source); })()), 40, $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 51
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 51)) {
// line 52
echo " fnSetClassCategories(
\$('#form1'), ";
// line 53
echo json_encode($this->sandbox->ensureToStringAllowed(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.', 53, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 53), "vars", [], "any", false, false, true, 53), "value", [], "any", false, false, true, 53), 53, $this->source));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 55
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 55)) {
// line 56
echo " eccube.checkStock(\$('#form1'), ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 56, $this->source); })()), "id", [], "any", false, false, true, 56), 56, $this->source), "html", null, true);
echo ", ";
echo json_encode($this->sandbox->ensureToStringAllowed(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.', 56, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 56), "vars", [], "any", false, false, true, 56), "value", [], "any", false, false, true, 56), 56, $this->source));
echo ", null);
";
}
// line 58
echo "
";
// line 59
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.', 59, $this->source); })()), "product_type", [], "any", false, false, true, 59) == "set")) {
// line 60
echo " setSetClassCategories = 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 = setClassCategories[product_id][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);
}
}
setCheckStock(\$form, product_id, \$sele1.val() ? \$sele1.val() : '__unselected2',
\$sele2.val() ? \$sele2.val() : '');
}
}
};
setCheckStock = 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 {
classcat2 = setClassCategories[product_id][classcat_id1]['#' + classcat_id2];
}
// 商品コード
var \$product_code = \$('#item_code_default');
if (typeof this.product_code_origin === 'undefined') {
// 初期値を保持しておく
this.product_code_origin = \$product_code.text();
}
if (classcat2 && typeof classcat2.product_code !== 'undefined') {
\$product_code.text(classcat2.product_code);
} else {
\$product_code.text(this.product_code_origin);
}
// 在庫(品切れ)
var \$cartbtn = \$('#add-cart');
if (classcat2 && classcat2.stock_find === false) {
\$cartbtn.prop('disabled', true);
\$cartbtn.text('ただいま品切れ中です');
} else {
\$cartbtn.prop('disabled', false);
\$cartbtn.text('カートに入れる');
}
// 通常価格
var \$price01 = \$('#detail_description_box__class_normal_range_price')
.find('.price01_default')
.first();
if (typeof this.proce01_origin === 'undefined') {
// 初期値を保持しておく
this.proce01_origin = \$price01.text();
}
if (classcat2 && typeof classcat2.price01 !== 'undefined' && String(classcat2.price01).length >= 1) {
\$price01.text('\\ ' + classcat2.price01);
} else {
\$price01.text(this.proce01_origin);
}
// 販売価格
var \$price02 = \$('#detail_description_box__class_range_sale_price')
.find('.price02_default')
.first();
if (typeof this.proce02_origin === 'undefined') {
// 初期値を保持しておく
this.proce02_origin = \$price02.text();
}
if (classcat2 && typeof classcat2.price02 !== 'undefined' && String(classcat2.price02).length >= 1) {
\$price02.text('\\ ' + classcat2.price02);
} else {
\$price02.text(this.proce02_origin);
}
// ポイント
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('.setproduct_item[data-product-id='+product_id+']').find('.set_product_class');
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('');
}
};
\$('select.setproduct_size1')
.change(function() {
var \$form = \$(this).parents('form');
var product_id = \$(this).closest('.setproduct_item').data('product-id');
var \$sele1 = \$(this);
var \$sele2 = \$(this).closest('.setproduct_item').find('select.setproduct_size2');
var product_class_label = \$('option:selected', \$sele1).text();
if (product_class_label.includes(\"入荷予定\")) {
const str_idx = product_class_label.indexOf(\"入荷予定\");
const result = product_class_label.slice(str_idx);
\$sele1.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
} else {
\$('.stock_date_desc', \$sele1.closest('.setproduct_item')).remove();
}
// 規格1のみの場合
if (!\$sele2.length) {
setCheckStock(\$form, product_id, \$sele1.val(), null);
// 規格2ありの場合
} else {
setSetClassCategories(\$form, product_id, \$sele1, \$sele2);
}
});
// 規格2選択時
\$('select.setproduct_size2')
.change(function() {
var \$form = \$(this).parents('form');
var product_id = \$(this).closest('.setproduct_item').data('product-id');
var \$sele1 = \$(this).closest('.setproduct_item').find('select.setproduct_size1');
var \$sele2 = \$(this);
var product_class_label = \$('option:selected', \$sele2).text();
if (product_class_label.includes(\"入荷予定\")) {
const str_idx = product_class_label.indexOf(\"入荷予定\");
const result = product_class_label.slice(str_idx);
\$sele2.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
} else {
\$('.stock_date_desc', \$sele2.closest('.setproduct_item')).remove();
}
setCheckStock(\$form, product_id, \$sele1.val(), \$sele2.val());
});
setClassCategories = [];
";
// line 223
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ProductInSet"]) || array_key_exists("ProductInSet", $context) ? $context["ProductInSet"] : (function () { throw new RuntimeError('Variable "ProductInSet" does not exist.', 223, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pis"]) {
// line 224
echo " setClassCategories[";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["pis"], "id", [], "any", false, false, true, 224), 224, $this->source), "html", null, true);
echo "] = ";
echo $this->extensions['Customize\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["pis"], 224, $this->source));
echo ";
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pis'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 226
echo " ";
}
// line 227
echo "</script>
<script>
\$(function(){
\$('.carousel').slick({
infinite: false,
speed: 300,
prevArrow:'<button type=\"button\" class=\"slick-prev\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
nextArrow:'<button type=\"button\" class=\"slick-next\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
slidesToShow: 4,
slidesToScroll: 4,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
}
]
});
\$('.slides').slick({
dots: true,
arrows: false,
speed: 300,
customPaging: function(slider, i) {
return '<button class=\"thumbnail\">' + \$(slider.\$slides[i]).find('img').prop('outerHTML') + '</button>';
}
});
\$('#favorite').click(function() {
\$('#mode').val('add_favorite');
});
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
});
</script>
<script>
\$(function() {
\$('.add-cart').on('click', function(event) {
";
// line 274
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 274)) {
// line 275
echo " // 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 277
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id1')[0].setCustomValidity('');
}
";
}
// line 283
echo "
";
// line 284
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 284)) {
// line 285
echo " // 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 287
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id2')[0].setCustomValidity('');
}
";
}
// line 293
echo "
var isAllCategorySelected = true;
\$('.setproduct_item select').each(function(idx){
if(\$(this).val() == '__unselected' || \$(this).val() == ''){
this.setCustomValidity('";
// line 297
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
isAllCategorySelected = false;
return true;
}
else
this.setCustomValidity('');
});
if(!isAllCategorySelected)
return true;
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 309
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "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').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: \"";
// line 336
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 343
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "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()
});
\$('#add_favorite').click(function(){
\$('#add_favorite_form').submit();
});
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org/\",
\"@type\": \"Product\",
\"name\": \"";
// line 366
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 366, $this->source); })()), "name", [], "any", false, false, true, 366), 366, $this->source), "html", null, true);
echo "\",
\"image\": [
";
// line 368
$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.', 368, $this->source); })()), "ProductImage", [], "any", false, false, true, 368));
$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 369
echo " \"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 369, $this->source); })()), "request", [], "any", false, false, true, 369), "schemeAndHttpHost", [], "any", false, false, true, 369), 369, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["img"], 369, $this->source), "save_image"), "html", null, true);
echo "\"";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 369)) {
echo ",";
}
// line 370
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 372
echo " \"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 372, $this->source); })()), "request", [], "any", false, false, true, 372), "schemeAndHttpHost", [], "any", false, false, true, 372), 372, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\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 374
echo " ],
\"description\": \"";
// line 375
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, true, 375)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", false, false, true, 375), 375, $this->source), $this->sandbox->ensureToStringAllowed(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.', 375, $this->source); })()), "description_detail", [], "any", false, false, true, 375), 375, $this->source))) : (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.', 375, $this->source); })()), "description_detail", [], "any", false, false, true, 375))), ["
" => "", "
" => ""]), 0, 300), "html", null, true);
echo "\",
";
// line 376
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.', 376, $this->source); })()), "code_min", [], "any", false, false, true, 376)) {
// line 377
echo " \"sku\": \"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 377, $this->source); })()), "code_min", [], "any", false, false, true, 377), 377, $this->source), "html", null, true);
echo "\",
";
}
// line 379
echo " \"offers\": {
\"@type\": \"Offer\",
\"url\": \"";
// line 381
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.', 381, $this->source); })()), "id", [], "any", false, false, true, 381)]), "html", null, true);
echo "\",
\"priceCurrency\": \"";
// line 382
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 382, $this->source); })()), "currency", [], "any", false, false, true, 382), 382, $this->source), "html", null, true);
echo "\",
\"price\": ";
// line 383
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 383, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 383), 383, $this->source), "html", null, true);
echo ",
\"availability\": \"";
// line 384
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.', 384, $this->source); })()), "stock_find", [], "any", false, false, true, 384)) ? ("InStock") : ("OutOfStock"));
echo "\"
}
}
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 389
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 390
echo " <style>
.setproduct_size select{
margin-bottom: 15px;
}
.discount_price
{
font-size: 25px;
font-weight: bold;
}
.discount_period {
font-size: 18px;
margin-top: 10px !important;
font-weight: bold;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 407
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 408
echo "
";
// line 409
$this->loadTemplate("rireki_hikaku.twig", "Product/detail.twig", 409)->display($context);
// line 410
echo " <!-- ▼item_detail▼ -->
<div id=\"item_detail\">
<div id=\"detail_wrap\" class=\"row\">
";
// line 413
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 414
echo " <!--★画像★-->
<div id=\"item_photo_area\" class=\"col-sm-6\">
<div id=\"detail_image_box__slides\" class=\"slides\">
";
// line 417
if ((twig_length_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.', 417, $this->source); })()), "ProductImage", [], "any", false, false, true, 417)) > 0)) {
// line 418
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.', 418, $this->source); })()), "ProductImage", [], "any", false, false, true, 418));
$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 419
echo " <div id=\"detail_image_box__item--";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 419), 419, $this->source), "html", null, true);
echo "\">
<img src=\"";
// line 420
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed($context["ProductImage"], 420, $this->source)), "save_image"), "html", null, true);
echo "\"/>
</div>
";
++$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'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 423
echo " ";
} else {
// line 424
echo " <div id=\"detail_image_box__item\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\"/></div>
";
}
// line 426
echo " </div>
</div>
<section id=\"item_detail_area\" class=\"col-sm-6\">
";
// line 429
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.', 429, $this->source); })()), "ProductTag", [], "any", false, false, true, 429))) {
// line 430
echo " <!--▼商品タグ-->
<div id=\"product_tag_box\" class=\"product_tag\">
";
// line 432
$this->loadTemplate("Block/product_sex_tag.twig", "Product/detail.twig", 432)->display($context);
// line 433
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.', 433, $this->source); })()), "hasTag", [0 => "購入必需品"], "method", false, false, true, 433)) {
// line 434
echo " <div class=\"cateicon2\">入学時の必要品</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 435
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 435, $this->source); })()), "hasTag", [0 => "購入必需品(選択可)"], "method", false, false, true, 435)) {
// line 436
echo " <div class=\"cateicon2\">入学時の必要品(選択可)</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 437
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 437, $this->source); })()), "hasTag", [0 => "希望購入品"], "method", false, false, true, 437)) {
// line 438
echo " <div class=\"cateicon3\">希望購入品</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 439
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 439, $this->source); })()), "hasTag", [0 => "購入必需品(女子も購入可)"], "method", false, false, true, 439)) {
// line 440
echo " <div class=\"cateicon2\">入学時の必要品(女子も購入可)</div>
";
}
// line 442
echo " </div>
";
}
// line 444
echo "
<!--★商品名★-->
<h3 id=\"detail_description_box__name\" class=\"item_name\">";
// line 446
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 446, $this->source); })()), "name", [], "any", false, false, true, 446), 446, $this->source), "html", null, true);
echo "</h3>
<div id=\"detail_description_box__body\" class=\"item_detail\">
<!--★通常価格★-->
";
// line 449
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.', 449, $this->source); })()), "hasProductClass", [], "any", false, false, true, 449)) {
// line 450
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.', 450, $this->source); })()), "getPrice01Min", [], "any", false, false, true, 450)) && (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.', 450, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 450) == 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.', 450, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, true, 450)))) {
// line 451
echo " <p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
<span class=\"ec-productRole__priceRegularPrice\">";
// line 452
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html", null, true);
echo ":<span class=\"price01-default\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 452, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 452), 452, $this->source)), "html", null, true);
echo "</span></span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 453
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html", null, true);
echo "</span>
</p>
";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 455
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 455, $this->source); })()), "getPrice01Min", [], "any", false, false, true, 455)) && !(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.', 455, $this->source); })()), "getPrice01Max", [], "any", false, false, true, 455)))) {
// line 456
echo " <p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
<span class=\"ec-productRole__priceRegularPrice\">";
// line 457
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html", null, true);
echo ":<span class=\"price01-default\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 457, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 457), 457, $this->source)), "html", null, true);
echo "</span></span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 458
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html", null, true);
echo "</span>
</p>
";
}
// line 461
echo " ";
} else {
// line 462
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.', 462, $this->source); })()), "getPrice01Max", [], "any", false, false, true, 462))) {
// line 463
echo " <p id=\"detail_description_box__normal_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 463, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 463), 463, $this->source)), "html", null, true);
echo "</span> <span class=\"small\">税込</span></p>
";
}
// line 465
echo " ";
}
// line 467
echo "<!--★販売価格★-->
";
// line 468
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.', 468, $this->source); })()), "hasProductClass", [], "any", false, false, true, 468)) {
// line 469
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.', 469, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 469) == 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.', 469, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 469))) {
// line 470
echo " <p id=\"detail_description_box__class_sale_price\" class=\"sale_price text-primary\">
<span class=\"ec-price__price price02-default\">";
// line 471
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 471, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 471), 471, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 472
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html", null, true);
echo "</span>
\t\t\t\t </p>
";
} else {
// line 475
echo " <p id=\"detail_description_box__class_range_sale_price\" class=\"sale_price text-primary\">
<span class=\"ec-price__price price02-default\">";
// line 476
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 476, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 476), 476, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 476, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 476), 476, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 477
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html", null, true);
echo "</span>
\t\t\t\t </p>
";
}
// line 480
echo " ";
} else {
// line 481
echo "<p id=\"detail_description_box__sale_price\" class=\"sale_price text-primary\">
<span class=\"ec-price__price\">";
// line 482
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 482, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 482), 482, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 483
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html", null, true);
echo "</span>
\t\t\t\t </p>
";
}
// line 487
echo "<!--★割引価格★-->
";
// line 488
if ((((twig_get_attribute($this->env, $this->source, 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.', 488, $this->source); })()), "user", [], "any", false, false, true, 488), "school", [], "any", false, false, true, 488), "sale_start_date", [], "any", false, false, true, 488) < twig_date_converter($this->env)) && (twig_get_attribute($this->env, $this->source, 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.', 488, $this->source); })()), "user", [], "any", false, false, true, 488), "school", [], "any", false, false, true, 488), "sale_end_date", [], "any", false, false, true, 488) > twig_date_converter($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.', 488, $this->source); })()), "getPrice03IncTaxMin", [], "any", false, false, true, 488))) {
// line 489
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.', 489, $this->source); })()), "hasProductClass", [], "any", false, false, true, 489)) {
// line 490
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.', 490, $this->source); })()), "getPrice03IncTaxMin", [], "any", false, false, true, 490) == 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.', 490, $this->source); })()), "getPrice03IncTaxMax", [], "any", false, false, true, 490))) {
// line 491
echo " <p id=\"detail_description_box__class_discount_price\" class=\"discount_price text-primary\">
<span>割引価格:</span><span class=\"price03_default\">";
// line 492
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 492, $this->source); })()), "getPrice03IncTaxMin", [], "any", false, false, true, 492), 492, $this->source)), "html", null, true);
echo "</span> <span class=\"small\">税込</span>
</p>
";
} else {
// line 495
echo " <p id=\"detail_description_box__class_range_discount_price\" class=\"discount_price text-primary\"><span class=\"price03_default\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 495, $this->source); })()), "getPrice03IncTaxMin", [], "any", false, false, true, 495), 495, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 495, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 495), 495, $this->source)), "html", null, true);
echo "</span> <span class=\"small\">税込</span></p>
";
}
// line 497
echo " ";
} else {
// line 498
echo "<p id=\"detail_description_box__discount_price\" class=\"sale_price text-primary discount_price\"><span class=\"price03_default\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 498, $this->source); })()), "getPrice03IncTaxMin", [], "any", false, false, true, 498), 498, $this->source)), "html", null, true);
echo "</span> <span class=\"small\">税込</span></p>
";
}
// line 500
echo "<p class=\"discount_period text-primary\">割引期間:";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 500, $this->source); })()), "user", [], "any", false, false, true, 500), "school", [], "any", false, false, true, 500), "sale_start_date", [], "any", false, false, true, 500), 500, $this->source), "Y年m月d日"), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 500, $this->source); })()), "user", [], "any", false, false, true, 500), "school", [], "any", false, false, true, 500), "sale_end_date", [], "any", false, false, true, 500), 500, $this->source), "Y年m月d日"), "html", null, true);
echo "</p>
";
}
// line 502
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.', 502, $this->source); })()), "id", [], "any", false, false, true, 502)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
<!--▼買い物かご-->
<div id=\"detail_cart_box\" class=\"cart_area\">
";
// line 505
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.', 505, $this->source); })()), "stock_find", [], "any", false, false, true, 505)) {
// line 506
echo " ";
// line 507
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 507) || (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.', 507, $this->source); })()), "product_type", [], "any", false, false, true, 507) == "set"))) {
// line 508
echo " <ul id=\"detail_cart_box__cart_class_category_id\" class=\"classcategory_list\">
";
// line 509
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.', 509, $this->source); })()), "product_type", [], "any", false, false, true, 509) != "set")) {
// line 510
echo " ";
if (twig_get_attribute($this->env, $this->source, 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.', 510, $this->source); })()), "user", [], "any", false, false, true, 510), "school", [], "any", false, false, true, 510), "size_recommend_flag", [], "any", false, false, true, 510)) {
// line 511
echo " ";
if ((array_key_exists("RecommendSize", $context) && (isset($context["RecommendSize"]) || array_key_exists("RecommendSize", $context) ? $context["RecommendSize"] : (function () { throw new RuntimeError('Variable "RecommendSize" does not exist.', 511, $this->source); })()))) {
// line 512
echo " <li class=\"rec_size\">
\t\t\t\t\t\t<p>自分のサイズ:";
// line 513
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Place"]) || array_key_exists("Place", $context) ? $context["Place"] : (function () { throw new RuntimeError('Variable "Place" does not exist.', 513, $this->source); })()), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["RecommendSize"]) || array_key_exists("RecommendSize", $context) ? $context["RecommendSize"] : (function () { throw new RuntimeError('Variable "RecommendSize" does not exist.', 513, $this->source); })()), "RecommendX", [], "any", false, false, true, 513), "recommend_xplace", [], "any", false, false, true, 513), [], "array", false, false, true, 513), 513, $this->source), "html", null, true);
echo "…";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["x"]) || array_key_exists("x", $context) ? $context["x"] : (function () { throw new RuntimeError('Variable "x" does not exist.', 513, $this->source); })()), 513, $this->source), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Place"]) || array_key_exists("Place", $context) ? $context["Place"] : (function () { throw new RuntimeError('Variable "Place" does not exist.', 513, $this->source); })()), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["RecommendSize"]) || array_key_exists("RecommendSize", $context) ? $context["RecommendSize"] : (function () { throw new RuntimeError('Variable "RecommendSize" does not exist.', 513, $this->source); })()), "RecommendY", [], "any", false, false, true, 513), "recommend_yplace", [], "any", false, false, true, 513), [], "array", false, false, true, 513), 513, $this->source), "html", null, true);
echo "…";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["y"]) || array_key_exists("y", $context) ? $context["y"] : (function () { throw new RuntimeError('Variable "y" does not exist.', 513, $this->source); })()), 513, $this->source), "html", null, true);
echo "</p>
\t\t\t\t\t\t<p class=\"result\">貴方へのオススメサイズは<br><span>";
// line 514
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["RecommendSize"]) || array_key_exists("RecommendSize", $context) ? $context["RecommendSize"] : (function () { throw new RuntimeError('Variable "RecommendSize" does not exist.', 514, $this->source); })()), "recommend_notation", [], "any", false, false, true, 514), 514, $this->source), "html", null, true);
echo "</span>です</p>
\t\t\t\t\t\t<p class=\"kome\">こちらはサイズをオススメさせて頂く機能となります。<br>サイズ、数量のご入力はお客様ご自身で行ってください。</p>
</li>
";
} elseif ( !(null === twig_get_attribute($this->env, $this->source, // line 517
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 517, $this->source); })()), "Recommend", [], "any", false, false, true, 517))) {
// line 518
echo " <li>「採寸データが正しく登録されていないため、サイズのオススメができません。<br/>
<span><a href=\"";
// line 519
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_change_saisun");
echo "\" target=\"_blank\">オススメサイズが知りたい</a></span>
</li>
";
}
// line 522
echo " ";
}
// line 523
echo " ";
}
// line 524
echo " ";
// line 525
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.', 525, $this->source); })()), "product_type", [], "any", false, false, true, 525) != "set")) {
// line 526
echo " <li>
";
// line 527
$context["break"] = false;
// line 528
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 528)) {
// line 529
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 529, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 529), 529, $this->source), 'widget');
echo "
";
// line 530
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 530, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 530), 530, $this->source), 'errors');
echo "
";
}
// line 532
echo " </li>
";
// line 535
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 535)) {
// line 536
echo " <li>
";
// line 537
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 537, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 537), 537, $this->source), 'widget');
echo "
";
// line 538
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 538, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 538), 538, $this->source), 'errors');
echo "
</li>
";
}
// line 541
echo " ";
} else {
// line 542
echo " <li class=\"setproduct_size\">
";
// line 543
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ProductInSet"]) || array_key_exists("ProductInSet", $context) ? $context["ProductInSet"] : (function () { throw new RuntimeError('Variable "ProductInSet" does not exist.', 543, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pis"]) {
// line 544
echo " <div class=\"setproduct_item\" data-product-id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["pis"], "id", [], "any", false, false, true, 544), 544, $this->source), "html", null, true);
echo "\">
<p>";
// line 545
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["pis"], "name", [], "any", false, false, true, 545), 545, $this->source), "html", null, true);
echo "</p>
";
// line 546
$context["category2_count"] = 0;
// line 547
echo " ";
$context["class_category1"] = [];
// line 548
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["pis"], "getProductClasses", [], "any", false, false, true, 548)) > 1)) {
// line 549
echo " <select class=\"form-control setproduct_size1\" required>
<option value=\"__unselected\">";
// line 550
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.select"), "html", null, true);
echo "</option>
";
// line 551
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["pis"], "getProductClasses", [], "any", false, false, true, 551));
$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["ps"]) {
// line 552
echo " ";
if ((( !(null === twig_get_attribute($this->env, $this->source, $context["ps"], "ClassCategory1", [], "any", false, false, true, 552)) && twig_get_attribute($this->env, $this->source, $context["ps"], "visible", [], "any", false, false, true, 552)) && !twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ps"], "ClassCategory1", [], "any", false, false, true, 552), "id", [], "any", false, false, true, 552), (isset($context["class_category1"]) || array_key_exists("class_category1", $context) ? $context["class_category1"] : (function () { throw new RuntimeError('Variable "class_category1" does not exist.', 552, $this->source); })())))) {
// line 553
echo " <option value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ps"], "ClassCategory1", [], "any", false, false, true, 553), "id", [], "any", false, false, true, 553), 553, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ps"], "ClassCategory1", [], "any", false, false, true, 553), "name", [], "any", false, false, true, 553), 553, $this->source), "html", null, true);
echo "</option>
";
// line 554
$context["class_category1"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["class_category1"]) || array_key_exists("class_category1", $context) ? $context["class_category1"] : (function () { throw new RuntimeError('Variable "class_category1" does not exist.', 554, $this->source); })()), 554, $this->source), [twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 554) => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ps"], "ClassCategory1", [], "any", false, false, true, 554), "id", [], "any", false, false, true, 554)]);
// line 555
echo " ";
}
// line 556
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["ps"], "ClassCategory2", [], "any", false, false, true, 556))) {
// line 557
echo " ";
$context["category2_count"] = ((isset($context["category2_count"]) || array_key_exists("category2_count", $context) ? $context["category2_count"] : (function () { throw new RuntimeError('Variable "category2_count" does not exist.', 557, $this->source); })()) + 1);
// line 558
echo " ";
}
// line 559
echo " ";
++$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'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ps'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 560
echo " </select>
";
}
// line 562
echo " ";
if (((isset($context["category2_count"]) || array_key_exists("category2_count", $context) ? $context["category2_count"] : (function () { throw new RuntimeError('Variable "category2_count" does not exist.', 562, $this->source); })()) != 0)) {
// line 563
echo " ";
// line 564
echo " <select class=\"form-control setproduct_size2\" required>
<option value=\"__unselected\">";
// line 565
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.select"), "html", null, true);
echo "</option>
</select>
";
}
// line 568
echo " <input type=\"hidden\" name=\"SetProductClass[]\" class=\"set_product_class ";
echo (((twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["pis"], "getProductClasses", [], "any", false, false, true, 568), 568, $this->source)) == 1)) ? ("no_product_class") : (""));
echo "\" value=\"";
(((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["pis"], "getProductClasses", [], "any", false, false, true, 568)) == 1)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["pis"], "getProductClasses", [], "any", false, false, true, 568), 0, [], "array", false, false, true, 568), "id", [], "any", false, false, true, 568), "html", null, true))) : (print ("")));
echo "\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pis'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 571
echo " </li>
";
}
// line 573
echo " </ul>
";
}
// line 575
echo "
";
// line 577
echo " <dl id=\"detail_cart_box__cart_quantity\" class=\"quantity\">
<dt>数量</dt>
<dd>
";
// line 580
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 580, $this->source); })()), "quantity", [], "any", false, false, true, 580), 580, $this->source), 'widget');
echo "
";
// line 581
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 581, $this->source); })()), "quantity", [], "any", false, false, true, 581), 581, $this->source), 'errors');
echo "
";
// line 582
if (twig_get_attribute($this->env, $this->source, 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.', 582, $this->source); })()), "user", [], "any", false, false, true, 582), "school", [], "any", false, false, true, 582), "isBrotherEnabled", [], "any", false, false, true, 582)) {
// line 583
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 583, $this->source); })()), "brother", [], "any", false, false, true, 583), 583, $this->source), 'widget');
echo "
";
// line 584
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 584, $this->source); })()), "brother", [], "any", false, false, true, 584), 584, $this->source), 'errors');
echo "
";
}
// line 586
echo " </dd>
</dl>
<div class=\"extra-form\">
";
// line 589
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 589, $this->source); })()), "getIterator", [], "any", false, false, true, 589));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 590
echo " ";
if (preg_match("[^plg*]", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 590), "name", [], "any", false, false, true, 590))) {
// line 591
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 591, $this->source), 'row');
echo "
";
}
// line 593
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 594
echo " </div>
";
// line 597
echo " <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul id=\"detail_cart_box__insert_button\" class=\"row\">
<li class=\"col-xs-12 col-sm-8\">
<button type=\"submit\" class=\"ec-blockBtn--action def_button4 add-cart";
// line 600
if (twig_get_attribute($this->env, $this->source, 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.', 600, $this->source); })()), "user", [], "any", false, false, true, 600), "school", [], "any", false, false, true, 600), "isBrotherEnabled", [], "any", false, false, true, 600)) {
echo " zero";
}
echo "\"";
if (twig_get_attribute($this->env, $this->source, 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.', 600, $this->source); })()), "user", [], "any", false, false, true, 600), "school", [], "any", false, false, true, 600), "isBrotherEnabled", [], "any", false, false, true, 600)) {
echo " disabled=\"disabled\"";
}
echo ">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart"), "html", null, true);
echo "</button>
</li>
</ul>
</div> ";
// line 604
echo " ";
} else {
// line 605
echo " ";
// line 606
echo " <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul class=\"row\">
<li class=\"col-xs-12 col-sm-8\">
<button type=\"button\" class=\"ec-blockBtn--action def_button4 zero\" disabled=\"disabled\">";
// line 609
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.out_of_stock"), "html", null, true);
echo "</button>
";
// line 610
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 610, $this->source); })()), "product_classes", [], "any", false, false, true, 610), 0, [], "array", false, false, true, 610), "stock_date", [], "any", false, false, true, 610)) {
// line 611
echo " <p>";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 611, $this->source); })()), "product_classes", [], "any", false, false, true, 611), 0, [], "array", false, false, true, 611), "stock_date", [], "any", false, false, true, 611), 611, $this->source), "Y年m月d日"), "html", null, true);
echo "入荷予定</p>
";
}
// line 613
echo " </li>
</ul>
</div> ";
// line 616
echo " ";
}
echo " ";
// line 617
echo " </div>
<!--▲買い物かご-->
";
// line 619
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 619, $this->source); })()), 619, $this->source), 'rest');
echo "
</form>
";
// line 621
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.', 621, $this->source); })()), "option_favorite_product", [], "any", false, false, true, 621)) {
// line 622
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.', 622, $this->source); })()), "id", [], "any", false, false, true, 622)]), "html", null, true);
echo "\" method=\"post\" id=\"add_favorite_form\">
<div class=\"btn_area\">
<ul id=\"detail_cart_box__favorite_button\" class=\"row\">
";
// line 625
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 625, $this->source); })()) == false)) {
// line 626
echo " <li class=\"col-xs-12 col-sm-8\">
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5\">";
// line 627
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite"), "html", null, true);
echo "</button>
</li>
";
} else {
// line 630
echo " <li class=\"col-xs-12 col-sm-8\">
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5 ck\" disabled=\"disabled\">";
// line 631
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite_alrady"), "html", null, true);
echo "</button>
</li>
";
}
// line 634
echo " </ul>
</div>
</form>
";
}
// line 638
echo " </div>
<!-- /.item_detail -->
</section>
<!--詳細ここまで-->
";
}
// line 643
echo " </div>
";
// line 646
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.', 646, $this->source); })()), "freearea", [], "any", false, false, true, 646)) {
// line 647
echo " <div id=\"sub_area\" class=\"row\">
<div class=\"col-sm-10 col-sm-offset-1\">
<div id=\"detail_free_box__freearea\" class=\"freearea\">";
// line 649
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, twig_template_from_string($this->env, $this->sandbox->ensureToStringAllowed(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.', 649, $this->source); })()), "freearea", [], "any", false, false, true, 649), 649, $this->source)));
echo "</div>
</div>
</div>
";
}
// line 653
echo " </div>
<!-- ▲item_detail▲ -->
";
$__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 ( 1293 => 653, 1286 => 649, 1282 => 647, 1279 => 646, 1275 => 643, 1268 => 638, 1262 => 634, 1256 => 631, 1253 => 630, 1247 => 627, 1244 => 626, 1242 => 625, 1235 => 622, 1233 => 621, 1228 => 619, 1224 => 617, 1220 => 616, 1216 => 613, 1210 => 611, 1208 => 610, 1204 => 609, 1199 => 606, 1197 => 605, 1194 => 604, 1180 => 600, 1175 => 597, 1171 => 594, 1165 => 593, 1159 => 591, 1156 => 590, 1152 => 589, 1147 => 586, 1142 => 584, 1137 => 583, 1135 => 582, 1131 => 581, 1127 => 580, 1122 => 577, 1119 => 575, 1115 => 573, 1111 => 571, 1099 => 568, 1093 => 565, 1090 => 564, 1088 => 563, 1085 => 562, 1081 => 560, 1067 => 559, 1064 => 558, 1061 => 557, 1058 => 556, 1055 => 555, 1053 => 554, 1046 => 553, 1043 => 552, 1026 => 551, 1022 => 550, 1019 => 549, 1016 => 548, 1013 => 547, 1011 => 546, 1007 => 545, 1002 => 544, 998 => 543, 995 => 542, 992 => 541, 986 => 538, 982 => 537, 979 => 536, 976 => 535, 972 => 532, 967 => 530, 962 => 529, 959 => 528, 957 => 527, 954 => 526, 951 => 525, 949 => 524, 946 => 523, 943 => 522, 937 => 519, 934 => 518, 932 => 517, 926 => 514, 916 => 513, 913 => 512, 910 => 511, 907 => 510, 905 => 509, 902 => 508, 899 => 507, 897 => 506, 895 => 505, 888 => 502, 880 => 500, 874 => 498, 871 => 497, 863 => 495, 857 => 492, 854 => 491, 852 => 490, 849 => 489, 847 => 488, 844 => 487, 838 => 483, 834 => 482, 831 => 481, 828 => 480, 822 => 477, 816 => 476, 813 => 475, 807 => 472, 803 => 471, 800 => 470, 798 => 469, 796 => 468, 793 => 467, 790 => 465, 784 => 463, 782 => 462, 779 => 461, 773 => 458, 767 => 457, 764 => 456, 762 => 455, 757 => 453, 751 => 452, 748 => 451, 746 => 450, 744 => 449, 738 => 446, 734 => 444, 730 => 442, 726 => 440, 724 => 439, 721 => 438, 719 => 437, 716 => 436, 714 => 435, 711 => 434, 708 => 433, 706 => 432, 702 => 430, 700 => 429, 695 => 426, 689 => 424, 686 => 423, 669 => 420, 664 => 419, 646 => 418, 644 => 417, 639 => 414, 637 => 413, 632 => 410, 630 => 409, 627 => 408, 617 => 407, 592 => 390, 582 => 389, 568 => 384, 564 => 383, 560 => 382, 556 => 381, 552 => 379, 546 => 377, 544 => 376, 539 => 375, 536 => 374, 526 => 372, 512 => 370, 504 => 369, 486 => 368, 481 => 366, 455 => 343, 445 => 336, 415 => 309, 400 => 297, 394 => 293, 385 => 287, 381 => 285, 379 => 284, 376 => 283, 367 => 277, 363 => 275, 361 => 274, 312 => 227, 309 => 226, 298 => 224, 294 => 223, 129 => 60, 127 => 59, 124 => 58, 116 => 56, 114 => 55, 109 => 53, 106 => 52, 104 => 51, 90 => 40, 75 => 27, 65 => 26, 54 => 22, 52 => 24, 39 => 22,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
http://www.lockon.co.jp/
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block javascript %}
<script>
\$('#brother').on('change', function(){
\$cartbtn = \$('.add-cart');
if (\$cartbtn.text() != 'ただいま品切れ中です') {
if (!\$(this).val()) {
\$cartbtn.prop('disabled', true);
\$cartbtn.addClass('zero');
} else {
\$cartbtn.prop('disabled', false);
\$cartbtn.removeClass('zero');
}
}
});
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 %}
{% if Product.product_type =='set' %}
setSetClassCategories = 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 = setClassCategories[product_id][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);
}
}
setCheckStock(\$form, product_id, \$sele1.val() ? \$sele1.val() : '__unselected2',
\$sele2.val() ? \$sele2.val() : '');
}
}
};
setCheckStock = 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 {
classcat2 = setClassCategories[product_id][classcat_id1]['#' + classcat_id2];
}
// 商品コード
var \$product_code = \$('#item_code_default');
if (typeof this.product_code_origin === 'undefined') {
// 初期値を保持しておく
this.product_code_origin = \$product_code.text();
}
if (classcat2 && typeof classcat2.product_code !== 'undefined') {
\$product_code.text(classcat2.product_code);
} else {
\$product_code.text(this.product_code_origin);
}
// 在庫(品切れ)
var \$cartbtn = \$('#add-cart');
if (classcat2 && classcat2.stock_find === false) {
\$cartbtn.prop('disabled', true);
\$cartbtn.text('ただいま品切れ中です');
} else {
\$cartbtn.prop('disabled', false);
\$cartbtn.text('カートに入れる');
}
// 通常価格
var \$price01 = \$('#detail_description_box__class_normal_range_price')
.find('.price01_default')
.first();
if (typeof this.proce01_origin === 'undefined') {
// 初期値を保持しておく
this.proce01_origin = \$price01.text();
}
if (classcat2 && typeof classcat2.price01 !== 'undefined' && String(classcat2.price01).length >= 1) {
\$price01.text('\\ ' + classcat2.price01);
} else {
\$price01.text(this.proce01_origin);
}
// 販売価格
var \$price02 = \$('#detail_description_box__class_range_sale_price')
.find('.price02_default')
.first();
if (typeof this.proce02_origin === 'undefined') {
// 初期値を保持しておく
this.proce02_origin = \$price02.text();
}
if (classcat2 && typeof classcat2.price02 !== 'undefined' && String(classcat2.price02).length >= 1) {
\$price02.text('\\ ' + classcat2.price02);
} else {
\$price02.text(this.proce02_origin);
}
// ポイント
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('.setproduct_item[data-product-id='+product_id+']').find('.set_product_class');
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('');
}
};
\$('select.setproduct_size1')
.change(function() {
var \$form = \$(this).parents('form');
var product_id = \$(this).closest('.setproduct_item').data('product-id');
var \$sele1 = \$(this);
var \$sele2 = \$(this).closest('.setproduct_item').find('select.setproduct_size2');
var product_class_label = \$('option:selected', \$sele1).text();
if (product_class_label.includes(\"入荷予定\")) {
const str_idx = product_class_label.indexOf(\"入荷予定\");
const result = product_class_label.slice(str_idx);
\$sele1.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
} else {
\$('.stock_date_desc', \$sele1.closest('.setproduct_item')).remove();
}
// 規格1のみの場合
if (!\$sele2.length) {
setCheckStock(\$form, product_id, \$sele1.val(), null);
// 規格2ありの場合
} else {
setSetClassCategories(\$form, product_id, \$sele1, \$sele2);
}
});
// 規格2選択時
\$('select.setproduct_size2')
.change(function() {
var \$form = \$(this).parents('form');
var product_id = \$(this).closest('.setproduct_item').data('product-id');
var \$sele1 = \$(this).closest('.setproduct_item').find('select.setproduct_size1');
var \$sele2 = \$(this);
var product_class_label = \$('option:selected', \$sele2).text();
if (product_class_label.includes(\"入荷予定\")) {
const str_idx = product_class_label.indexOf(\"入荷予定\");
const result = product_class_label.slice(str_idx);
\$sele2.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
} else {
\$('.stock_date_desc', \$sele2.closest('.setproduct_item')).remove();
}
setCheckStock(\$form, product_id, \$sele1.val(), \$sele2.val());
});
setClassCategories = [];
{% for pis in ProductInSet %}
setClassCategories[{{pis.id}}] = {{ class_categories_as_json(pis)|raw }};
{% endfor %}
{% endif %}
</script>
<script>
\$(function(){
\$('.carousel').slick({
infinite: false,
speed: 300,
prevArrow:'<button type=\"button\" class=\"slick-prev\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
nextArrow:'<button type=\"button\" class=\"slick-next\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
slidesToShow: 4,
slidesToScroll: 4,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
}
]
});
\$('.slides').slick({
dots: true,
arrows: false,
speed: 300,
customPaging: function(slider, i) {
return '<button class=\"thumbnail\">' + \$(slider.\$slides[i]).find('img').prop('outerHTML') + '</button>';
}
});
\$('#favorite').click(function() {
\$('#mode').val('add_favorite');
});
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
});
</script>
<script>
\$(function() {
\$('.add-cart').on('click', function(event) {
{% if form.classcategory_id1 is defined %}
// 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|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('{{ 'front.product.product_class_unselected'|trans }}');
return true;
} else {
\$('#classcategory_id2')[0].setCustomValidity('');
}
{% endif %}
var isAllCategorySelected = true;
\$('.setproduct_item select').each(function(idx){
if(\$(this).val() == '__unselected' || \$(this).val() == ''){
this.setCustomValidity('{{ '項目が選択されていません'|trans }}');
isAllCategorySelected = false;
return true;
}
else
this.setCustomValidity('');
});
if(!isAllCategorySelected)
return true;
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#classcategory_id2')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|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').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: \"{{ url('block_cart') }}\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'front.product.add_cart_error'|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()
});
\$('#add_favorite').click(function(){
\$('#add_favorite_form').submit();
});
</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\" }}\"
}
}
{% endblock %}
{% block stylesheet %}
<style>
.setproduct_size select{
margin-bottom: 15px;
}
.discount_price
{
font-size: 25px;
font-weight: bold;
}
.discount_period {
font-size: 18px;
margin-top: 10px !important;
font-weight: bold;
}
</style>
{% endblock %}
{% block main %}
{% include 'rireki_hikaku.twig' %}
<!-- ▼item_detail▼ -->
<div id=\"item_detail\">
<div id=\"detail_wrap\" class=\"row\">
{% if is_granted('ROLE_USER') %}
<!--★画像★-->
<div id=\"item_photo_area\" class=\"col-sm-6\">
<div id=\"detail_image_box__slides\" class=\"slides\">
{% if Product.ProductImage|length > 0 %}
{% for ProductImage in Product.ProductImage %}
<div id=\"detail_image_box__item--{{ loop.index }}\">
<img src=\"{{ asset(ProductImage|no_image_product , 'save_image') }}\"/>
</div>
{% endfor %}
{% else %}
<div id=\"detail_image_box__item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/></div>
{% endif %}
</div>
</div>
<section id=\"item_detail_area\" class=\"col-sm-6\">
{% if Product.ProductTag is not empty %}
<!--▼商品タグ-->
<div id=\"product_tag_box\" class=\"product_tag\">
{% include 'Block/product_sex_tag.twig' %}
{% if Product.hasTag('購入必需品') %}
<div class=\"cateicon2\">入学時の必要品</div>
{% elseif Product.hasTag('購入必需品(選択可)') %}
<div class=\"cateicon2\">入学時の必要品(選択可)</div>
{% elseif Product.hasTag('希望購入品') %}
<div class=\"cateicon3\">希望購入品</div>
{% elseif Product.hasTag('購入必需品(女子も購入可)') %}
<div class=\"cateicon2\">入学時の必要品(女子も購入可)</div>
{% endif %}
</div>
{% endif %}
<!--★商品名★-->
<h3 id=\"detail_description_box__name\" class=\"item_name\">{{ Product.name }}</h3>
<div id=\"detail_description_box__body\" class=\"item_detail\">
<!--★通常価格★-->
{% if Product.hasProductClass -%}
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
<p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
<span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
<span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
</p>
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
<p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
<span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
<span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
</p>
{% endif %}
{% else -%}
{% if Product.getPrice01Max is not null %}
<p id=\"detail_description_box__normal_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">{{ Product.getPrice01IncTaxMin|price }}</span> <span class=\"small\">税込</span></p>
{% endif %}
{% endif -%}
<!--★販売価格★-->
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<p id=\"detail_description_box__class_sale_price\" class=\"sale_price text-primary\">
<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
\t\t\t\t </p>
{% else %}
<p id=\"detail_description_box__class_range_sale_price\" class=\"sale_price text-primary\">
<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
<span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
\t\t\t\t </p>
{% endif %}
{% else -%}
<p id=\"detail_description_box__sale_price\" class=\"sale_price text-primary\">
<span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
\t\t\t\t </p>
{% endif -%}
<!--★割引価格★-->
{% if app.user.school.sale_start_date<date() and app.user.school.sale_end_date>date() and Product.getPrice03IncTaxMin%}
{% if Product.hasProductClass -%}
{% if Product.getPrice03IncTaxMin == Product.getPrice03IncTaxMax %}
<p id=\"detail_description_box__class_discount_price\" class=\"discount_price text-primary\">
<span>割引価格:</span><span class=\"price03_default\">{{ Product.getPrice03IncTaxMin|price }}</span> <span class=\"small\">税込</span>
</p>
{% else %}
<p id=\"detail_description_box__class_range_discount_price\" class=\"discount_price text-primary\"><span class=\"price03_default\">{{ Product.getPrice03IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span> <span class=\"small\">税込</span></p>
{% endif %}
{% else -%}
<p id=\"detail_description_box__discount_price\" class=\"sale_price text-primary discount_price\"><span class=\"price03_default\">{{ Product.getPrice03IncTaxMin|price }}</span> <span class=\"small\">税込</span></p>
{% endif -%}
<p class=\"discount_period text-primary\">割引期間:{{ app.user.school.sale_start_date|date('Y年m月d日') }} ~ {{ app.user.school.sale_end_date|date('Y年m月d日') }}</p>
{% endif %}
<form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
<!--▼買い物かご-->
<div id=\"detail_cart_box\" class=\"cart_area\">
{% if Product.stock_find %}
{# 規格 #}
{% if form.classcategory_id1 is defined or Product.product_type=='set'%}
<ul id=\"detail_cart_box__cart_class_category_id\" class=\"classcategory_list\">
{% if Product.product_type != 'set' %}
{% if app.user.school.size_recommend_flag %}
{% if RecommendSize is defined and RecommendSize %}
<li class=\"rec_size\">
\t\t\t\t\t\t<p>自分のサイズ:{{ Place[RecommendSize.RecommendX.recommend_xplace] }}…{{ x }}/{{ Place[RecommendSize.RecommendY.recommend_yplace] }}…{{ y }}</p>
\t\t\t\t\t\t<p class=\"result\">貴方へのオススメサイズは<br><span>{{ RecommendSize.recommend_notation }}</span>です</p>
\t\t\t\t\t\t<p class=\"kome\">こちらはサイズをオススメさせて頂く機能となります。<br>サイズ、数量のご入力はお客様ご自身で行ってください。</p>
</li>
{% elseif Product.Recommend is not null %}
<li>「採寸データが正しく登録されていないため、サイズのオススメができません。<br/>
<span><a href=\"{{ url('mypage_change_saisun') }}\" target=\"_blank\">オススメサイズが知りたい</a></span>
</li>
{% endif %}
{% endif %}
{% endif %}
{# 規格1 #}
{% if Product.product_type != 'set' %}
<li>
{% set break = false %}
{% if form.classcategory_id1 is defined %}
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
{% endif %}
</li>
{# 規格2 #}
{% if form.classcategory_id2 is defined %}
<li>
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</li>
{% endif %}
{% else %}
<li class=\"setproduct_size\">
{% for pis in ProductInSet %}
<div class=\"setproduct_item\" data-product-id=\"{{ pis.id }}\">
<p>{{ pis.name }}</p>
{% set category2_count = 0 %}
{% set class_category1 = [] %}
{% if pis.getProductClasses|length > 1 %}
<select class=\"form-control setproduct_size1\" required>
<option value=\"__unselected\">{{'common.select'|trans}}</option>
{% for ps in pis.getProductClasses %}
{% if ps.ClassCategory1 is not null and ps.visible and ps.ClassCategory1.id not in class_category1 %}
<option value=\"{{ps.ClassCategory1.id}}\">{{ps.ClassCategory1.name}}</option>
{% set class_category1 = class_category1|merge({ (loop.index0): ps.ClassCategory1.id }) %}
{% endif %}
{% if ps.ClassCategory2 is not null%}
{% set category2_count = category2_count + 1 %}
{% endif %}
{% endfor %}
</select>
{% endif %}
{% if category2_count != 0 %}
{# 規格2 #}
<select class=\"form-control setproduct_size2\" required>
<option value=\"__unselected\">{{'common.select'|trans}}</option>
</select>
{% endif %}
<input type=\"hidden\" name=\"SetProductClass[]\" class=\"set_product_class {{ pis.getProductClasses|length == 1 ? 'no_product_class' : ''}}\" value=\"{{ pis.getProductClasses|length == 1 ? pis.getProductClasses[0].id : ''}}\">
</div>
{% endfor %}
</li>
{% endif %}
</ul>
{% endif %}
{# 数量 #}
<dl id=\"detail_cart_box__cart_quantity\" class=\"quantity\">
<dt>数量</dt>
<dd>
{{ form_widget(form.quantity) }}
{{ form_errors(form.quantity) }}
{% if app.user.school.isBrotherEnabled %}
{{ form_widget(form.brother) }}
{{ form_errors(form.brother) }}
{% endif %}
</dd>
</dl>
<div class=\"extra-form\">
{% for f in form.getIterator %}
{% if f.vars.name matches '[^plg*]' %}
{{ form_row(f) }}
{% endif %}
{% endfor %}
</div>
{# カートボタン #}
<div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul id=\"detail_cart_box__insert_button\" class=\"row\">
<li class=\"col-xs-12 col-sm-8\">
<button type=\"submit\" class=\"ec-blockBtn--action def_button4 add-cart{% if app.user.school.isBrotherEnabled %} zero{% endif %}\"{% if app.user.school.isBrotherEnabled %} disabled=\"disabled\"{% endif %}>{{ 'front.product.add_cart'|trans }}</button>
</li>
</ul>
</div> {# End div#detail_cart_box__button_area #}
{% else %}
{# 在庫がない場合は品切れボタンを表示 #}
<div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul class=\"row\">
<li class=\"col-xs-12 col-sm-8\">
<button type=\"button\" class=\"ec-blockBtn--action def_button4 zero\" disabled=\"disabled\">{{ 'front.product.out_of_stock'|trans }}</button>
{% if Product.product_classes[0].stock_date %}
<p>{{ Product.product_classes[0].stock_date|date('Y年m月d日') }}入荷予定</p>
{% endif %}
</li>
</ul>
</div> {# End div#detail_cart_box__button_area #}
{% endif %} {# End stock find #}
</div>
<!--▲買い物かご-->
{{ form_rest(form) }}
</form>
{% if BaseInfo.option_favorite_product %}
<form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\" id=\"add_favorite_form\">
<div class=\"btn_area\">
<ul id=\"detail_cart_box__favorite_button\" class=\"row\">
{% if is_favorite == false %}
<li class=\"col-xs-12 col-sm-8\">
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5\">{{ 'front.product.add_favorite'|trans }}</button>
</li>
{% else %}
<li class=\"col-xs-12 col-sm-8\">
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5 ck\" disabled=\"disabled\">{{ 'front.product.add_favorite_alrady'|trans }}</button>
</li>
{% endif %}
</ul>
</div>
</form>
{% endif %}
</div>
<!-- /.item_detail -->
</section>
<!--詳細ここまで-->
{% endif %}
</div>
{# フリーエリア #}
{% if Product.freearea %}
<div id=\"sub_area\" class=\"row\">
<div class=\"col-sm-10 col-sm-offset-1\">
<div id=\"detail_free_box__freearea\" class=\"freearea\">{{ include(template_from_string(Product.freearea)) }}</div>
</div>
</div>
{% endif %}
</div>
<!-- ▲item_detail▲ -->
{% endblock %}", "Product/detail.twig", "/home/nmhata01/nmhata01.xsrv.jp/public_html/app/template/unishop/Product/detail.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 24, "if" => 51, "for" => 223, "include" => 409);
static $filters = array("raw" => 40, "json_encode" => 53, "escape" => 56, "trans" => 277, "no_image_product" => 372, "slice" => 375, "replace" => 375, "default" => 375, "length" => 417, "price" => 452, "date" => 500, "merge" => 554);
static $functions = array("class_categories_as_json" => 40, "url" => 336, "asset" => 369, "is_granted" => 413, "date" => 488, "form_widget" => 529, "form_errors" => 530, "form_row" => 591, "form_rest" => 619, "include" => 649, "template_from_string" => 649);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['raw', 'json_encode', 'escape', 'trans', 'no_image_product', 'slice', 'replace', 'default', 'length', 'price', 'date', 'merge'],
['class_categories_as_json', 'url', 'asset', 'is_granted', 'date', 'form_widget', 'form_errors', 'form_row', 'form_rest', 'include', 'template_from_string']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}