var/cache/dev/twig/44/44b97cd337dc7d7b5cb239fcb3381a8f41391947853ed0b426af18c3d72fae96.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Product/detail.twig */
  14. class __TwigTemplate_d5bbacbe350a0034be1dbd43d8637c5fc11799b9b5496f374a915e00cde3dec8 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 22
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  42.         // line 24
  43.         $context["body_class"] = "product_page";
  44.         // line 22
  45.         $this->parent $this->loadTemplate("default_frame.twig""Product/detail.twig"22);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 26
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 27
  61.         echo "<script>
  62.     \$('#brother').on('change', function(){
  63.         \$cartbtn = \$('.add-cart');
  64.         if (\$cartbtn.text() != 'ただいま品切れ中です') {
  65.             if (!\$(this).val()) {
  66.                 \$cartbtn.prop('disabled', true);
  67.                 \$cartbtn.addClass('zero');
  68.             } else {
  69.                 \$cartbtn.prop('disabled', false);
  70.                 \$cartbtn.removeClass('zero');
  71.             }
  72.         }
  73.     });
  74.     eccube.classCategories = ";
  75.         // line 40
  76.         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));
  77.         echo ";
  78.     // 規格2に選択肢を割り当てる。
  79.     function fnSetClassCategories(form, classcat_id2_selected) {
  80.         var \$form = \$(form);
  81.         var product_id = \$form.find('input[name=product_id]').val();
  82.         var \$sele1 = \$form.find('select[name=classcategory_id1]');
  83.         var \$sele2 = \$form.find('select[name=classcategory_id2]');
  84.         eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  85.     }
  86.     ";
  87.         // line 51
  88.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruetrue51)) {
  89.             // line 52
  90.             echo "    fnSetClassCategories(
  91.         \$('#form1'), ";
  92.             // line 53
  93.             echo json_encode($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue53), "vars", [], "any"falsefalsetrue53), "value", [], "any"falsefalsetrue53), 53$this->source));
  94.             echo "
  95.     );
  96.     ";
  97.         } elseif (twig_get_attribute($this->env$this->source,         // line 55
  98. ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue55)) {
  99.             // line 56
  100.             echo "    eccube.checkStock(\$('#form1'), ";
  101.             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"falsefalsetrue56), 56$this->source), "html"nulltrue);
  102.             echo ", ";
  103.             echo json_encode($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue56), "vars", [], "any"falsefalsetrue56), "value", [], "any"falsefalsetrue56), 56$this->source));
  104.             echo ", null);
  105.     ";
  106.         }
  107.         // line 58
  108.         echo "
  109.     ";
  110.         // line 59
  111.         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"falsefalsetrue59) == "set")) {
  112.             // line 60
  113.             echo "        setSetClassCategories = function(\$form, product_id, \$sele1, \$sele2, selected_id2) {
  114.             if (\$sele1 && \$sele1.length) {
  115.                 var classcat_id1 = \$sele1.val() ? \$sele1.val() : '';
  116.                 if (\$sele2 && \$sele2.length) {
  117.                     // 規格2の選択肢をクリア
  118.                     \$sele2.children().remove();
  119.                     var classcat2;
  120.                     // 商品一覧時
  121.                     if (eccube.hasOwnProperty('productsClassCategories')) {
  122.                         classcat2 = eccube.productsClassCategories[product_id][classcat_id1];
  123.                     }
  124.                     // 詳細表示時
  125.                     else {
  126.                         classcat2 = setClassCategories[product_id][classcat_id1];
  127.                     }
  128.                     // 規格2の要素を設定
  129.                     for (var key in classcat2) {
  130.                         if (classcat2.hasOwnProperty(key)) {
  131.                             var id = classcat2[key].classcategory_id2;
  132.                             var name = classcat2[key].name;
  133.                             var option = \$('<option />').val(id ? id : '').text(name);
  134.                             if (id === selected_id2) {
  135.                                 option.attr('selected', true);
  136.                             }
  137.                             \$sele2.append(option);
  138.                         }
  139.                     }
  140.                     setCheckStock(\$form, product_id, \$sele1.val() ? \$sele1.val() : '__unselected2',
  141.                     \$sele2.val() ? \$sele2.val() : '');
  142.                 }
  143.             }
  144.         };
  145.         setCheckStock = function(\$form, product_id, classcat_id1, classcat_id2) {
  146.             classcat_id2 = classcat_id2 ? classcat_id2 : '';
  147.             var classcat2;
  148.             // 商品一覧時
  149.             if (eccube.hasOwnProperty('productsClassCategories')) {
  150.                 classcat2 = eccube.productsClassCategories[product_id][classcat_id1]['#' + classcat_id2];
  151.             }
  152.             // 詳細表示時
  153.             else {
  154.                 classcat2 = setClassCategories[product_id][classcat_id1]['#' + classcat_id2];
  155.             }
  156.             // 商品コード
  157.             var  \$product_code = \$('#item_code_default');
  158.             if (typeof this.product_code_origin === 'undefined') {
  159.                 // 初期値を保持しておく
  160.                 this.product_code_origin =  \$product_code.text();
  161.             }
  162.             if (classcat2 && typeof classcat2.product_code !== 'undefined') {
  163.                 \$product_code.text(classcat2.product_code);
  164.             } else {
  165.                 \$product_code.text(this.product_code_origin);
  166.             }
  167.             // 在庫(品切れ)
  168.             var \$cartbtn = \$('#add-cart');
  169.             if (classcat2 && classcat2.stock_find === false) {
  170.                 \$cartbtn.prop('disabled', true);
  171.                 \$cartbtn.text('ただいま品切れ中です');
  172.             } else {
  173.                 \$cartbtn.prop('disabled', false);
  174.                 \$cartbtn.text('カートに入れる');
  175.             }
  176.             // 通常価格
  177.             var \$price01 = \$('#detail_description_box__class_normal_range_price')
  178.                 .find('.price01_default')
  179.                 .first();
  180.             if (typeof this.proce01_origin === 'undefined') {
  181.                 // 初期値を保持しておく
  182.                 this.proce01_origin = \$price01.text();
  183.             }
  184.             if (classcat2 && typeof classcat2.price01 !== 'undefined' && String(classcat2.price01).length >= 1) {
  185.                 \$price01.text('\\ ' + classcat2.price01);
  186.             } else {
  187.                 \$price01.text(this.proce01_origin);
  188.             }
  189.             // 販売価格
  190.             var \$price02 = \$('#detail_description_box__class_range_sale_price')
  191.                 .find('.price02_default')
  192.                 .first();
  193.             if (typeof this.proce02_origin === 'undefined') {
  194.                 // 初期値を保持しておく
  195.                 this.proce02_origin = \$price02.text();
  196.             }
  197.             if (classcat2 && typeof classcat2.price02 !== 'undefined' && String(classcat2.price02).length >= 1) {
  198.                 \$price02.text('\\ ' + classcat2.price02);
  199.             } else {
  200.                 \$price02.text(this.proce02_origin);
  201.             }
  202.             // ポイント
  203.             var \$point_default = \$form.find('[id^=point_default]');
  204.             var \$point_dynamic = \$form.find('[id^=point_dynamic]');
  205.             if (classcat2 && typeof classcat2.point !== 'undefined' && String(classcat2.point).length >= 1) {
  206.                 \$point_dynamic.text(classcat2.point).show();
  207.                 \$point_default.hide();
  208.             } else {
  209.                 \$point_dynamic.hide();
  210.                 \$point_default.show();
  211.             }
  212.             // 商品規格
  213.             var \$product_class_id_dynamic = \$form.find('.setproduct_item[data-product-id='+product_id+']').find('.set_product_class');
  214.             if (classcat2 && typeof classcat2.product_class_id !== 'undefined' && String(classcat2.product_class_id).length >= 1) {
  215.                 \$product_class_id_dynamic.val(classcat2.product_class_id);
  216.             } else {
  217.                 \$product_class_id_dynamic.val('');
  218.             }
  219.         };
  220.         \$('select.setproduct_size1')
  221.         .change(function() {
  222.             var \$form = \$(this).parents('form');
  223.             var product_id = \$(this).closest('.setproduct_item').data('product-id');
  224.             var \$sele1 = \$(this);
  225.             var \$sele2 = \$(this).closest('.setproduct_item').find('select.setproduct_size2');
  226.             var product_class_label = \$('option:selected', \$sele1).text();
  227.             if (product_class_label.includes(\"入荷予定\")) {
  228.                 const str_idx = product_class_label.indexOf(\"入荷予定\");
  229.                 const result = product_class_label.slice(str_idx);
  230.                 \$sele1.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
  231.             } else {
  232.                 \$('.stock_date_desc', \$sele1.closest('.setproduct_item')).remove();
  233.             }
  234.             // 規格1のみの場合
  235.             if (!\$sele2.length) {
  236.                 setCheckStock(\$form, product_id, \$sele1.val(), null);
  237.                 // 規格2ありの場合
  238.             } else {
  239.                 setSetClassCategories(\$form, product_id, \$sele1, \$sele2);
  240.             }
  241.         });
  242.         // 規格2選択時
  243.         \$('select.setproduct_size2')
  244.         .change(function() {
  245.             var \$form = \$(this).parents('form');
  246.             var product_id = \$(this).closest('.setproduct_item').data('product-id');
  247.             var \$sele1 = \$(this).closest('.setproduct_item').find('select.setproduct_size1');
  248.             var \$sele2 = \$(this);
  249.             var product_class_label = \$('option:selected', \$sele2).text();
  250.             if (product_class_label.includes(\"入荷予定\")) {
  251.                 const str_idx = product_class_label.indexOf(\"入荷予定\");
  252.                 const result = product_class_label.slice(str_idx);
  253.                 \$sele2.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
  254.             } else {
  255.                 \$('.stock_date_desc', \$sele2.closest('.setproduct_item')).remove();
  256.             }
  257.             setCheckStock(\$form, product_id, \$sele1.val(), \$sele2.val());
  258.         });
  259.         setClassCategories = [];
  260.         ";
  261.             // line 223
  262.             $context['_parent'] = $context;
  263.             $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); })()));
  264.             foreach ($context['_seq'] as $context["_key"] => $context["pis"]) {
  265.                 // line 224
  266.                 echo "            setClassCategories[";
  267.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["pis"], "id", [], "any"falsefalsetrue224), 224$this->source), "html"nulltrue);
  268.                 echo "] = ";
  269.                 echo $this->extensions['Customize\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["pis"], 224$this->source));
  270.                 echo ";
  271.         ";
  272.             }
  273.             $_parent $context['_parent'];
  274.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pis'], $context['_parent'], $context['loop']);
  275.             $context array_intersect_key($context$_parent) + $_parent;
  276.             // line 226
  277.             echo "    ";
  278.         }
  279.         // line 227
  280.         echo "</script>
  281. <script>
  282. \$(function(){
  283.     \$('.carousel').slick({
  284.         infinite: false,
  285.         speed: 300,
  286.         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>',
  287.         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>',
  288.         slidesToShow: 4,
  289.         slidesToScroll: 4,
  290.         responsive: [
  291.             {
  292.                 breakpoint: 768,
  293.                 settings: {
  294.                     slidesToShow: 3,
  295.                     slidesToScroll: 3
  296.                 }
  297.             }
  298.         ]
  299.     });
  300.     \$('.slides').slick({
  301.         dots: true,
  302.         arrows: false,
  303.         speed: 300,
  304.         customPaging: function(slider, i) {
  305.             return '<button class=\"thumbnail\">' + \$(slider.\$slides[i]).find('img').prop('outerHTML') + '</button>';
  306.         }
  307.     });
  308.     \$('#favorite').click(function() {
  309.         \$('#mode').val('add_favorite');
  310.     });
  311.     // bfcache無効化
  312.     \$(window).bind('pageshow', function(event) {
  313.         if (event.originalEvent.persisted) {
  314.             location.reload(true);
  315.         }
  316.     });
  317. });
  318. </script>
  319. <script>
  320.     \$(function() {
  321.         \$('.add-cart').on('click', function(event) {
  322.             ";
  323.         // line 274
  324.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue274)) {
  325.             // line 275
  326.             echo "            // 規格1フォームの必須チェック
  327.             if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  328.                     \$('#classcategory_id1')[0].setCustomValidity('";
  329.             // line 277
  330.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html"nulltrue);
  331.             echo "');
  332.                 return true;
  333.             } else {
  334.                 \$('#classcategory_id1')[0].setCustomValidity('');
  335.             }
  336.             ";
  337.         }
  338.         // line 283
  339.         echo "
  340.             ";
  341.         // line 284
  342.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruetrue284)) {
  343.             // line 285
  344.             echo "            // 規格2フォームの必須チェック
  345.             if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  346.                     \$('#classcategory_id2')[0].setCustomValidity('";
  347.             // line 287
  348.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html"nulltrue);
  349.             echo "');
  350.                 return true;
  351.             } else {
  352.                 \$('#classcategory_id2')[0].setCustomValidity('');
  353.             }
  354.             ";
  355.         }
  356.         // line 293
  357.         echo "
  358.             var isAllCategorySelected = true;
  359.             \$('.setproduct_item select').each(function(idx){
  360.                 if(\$(this).val() == '__unselected' || \$(this).val() == ''){
  361.                     this.setCustomValidity('";
  362.         // line 297
  363.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  364.         echo "');
  365.                     isAllCategorySelected = false;
  366.                     return true;
  367.                 }
  368.                 else
  369.                     this.setCustomValidity('');
  370.             });
  371.             if(!isAllCategorySelected)
  372.                 return true;
  373.             // 個数フォームのチェック
  374.             if (\$('#quantity').val() < 1) {
  375.                     \$('#classcategory_id2')[0].setCustomValidity('";
  376.         // line 309
  377.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html"nulltrue);
  378.         echo "');
  379.                 return true;
  380.             } else {
  381.                 \$('#quantity')[0].setCustomValidity('');
  382.             }
  383.             event.preventDefault();
  384.             \$form = \$('#form1');
  385.             \$.ajax({
  386.                 url: \$form.attr('action'),
  387.                 type: \$form.attr('method'),
  388.                 data: \$form.serialize(),
  389.                 dataType: 'json',
  390.                 beforeSend: function(xhr, settings) {
  391.                     // Buttonを無効にする
  392.                     \$('.add-cart').prop('disabled', true);
  393.                 }
  394.             }).done(function(data) {
  395.                 // レスポンス内のメッセージをalertで表示
  396.                 \$.each(data.messages, function() {
  397.                         \$('#ec-modal-header').text(this);
  398.                 });
  399.                 \$('.ec-modal').show()
  400.                 // カートブロックを更新する
  401.                 \$.ajax({
  402.                     url: \"";
  403.         // line 336
  404.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  405.         echo "\",
  406.                     type: 'GET',
  407.                     dataType: 'html'
  408.                 }).done(function(html) {
  409.                     \$('.ec-headerRole__cart').html(html);
  410.                 });
  411.             }).fail(function(data) {
  412.                     alert('";
  413.         // line 343
  414.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "html"nulltrue);
  415.         echo "');
  416.             }).always(function(data) {
  417.                 // Buttonを有効にする
  418.                 \$('.add-cart').prop('disabled', false);
  419.             });
  420.         });
  421.     });
  422.     \$('.ec-modal-wrap').on('click', function(e) {
  423.         // モーダル内の処理は外側にバブリングさせない
  424.         e.stopPropagation();
  425.     });
  426.     \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  427.         \$('.ec-modal').hide()
  428.     });
  429.     \$('#add_favorite').click(function(){
  430.         \$('#add_favorite_form').submit();
  431.     });
  432. </script>
  433. <script type=\"application/ld+json\">
  434. {
  435.     \"@context\": \"https://schema.org/\",
  436.     \"@type\": \"Product\",
  437.     \"name\": \"";
  438.         // line 366
  439.         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"falsefalsetrue366), 366$this->source), "html"nulltrue);
  440.         echo "\",
  441.     \"image\": [
  442.         ";
  443.         // line 368
  444.         $context['_parent'] = $context;
  445.         $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"falsefalsetrue368));
  446.         $context['_iterated'] = false;
  447.         $context['loop'] = [
  448.           'parent' => $context['_parent'],
  449.           'index0' => 0,
  450.           'index'  => 1,
  451.           'first'  => true,
  452.         ];
  453.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  454.             $length count($context['_seq']);
  455.             $context['loop']['revindex0'] = $length 1;
  456.             $context['loop']['revindex'] = $length;
  457.             $context['loop']['length'] = $length;
  458.             $context['loop']['last'] = === $length;
  459.         }
  460.         foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
  461.             // line 369
  462.             echo "            \"";
  463.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue369), "schemeAndHttpHost", [], "any"falsefalsetrue369), 369$this->source), "html"nulltrue);
  464.             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"nulltrue);
  465.             echo "\"";
  466.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue369)) {
  467.                 echo ",";
  468.             }
  469.             // line 370
  470.             echo "
  471.         ";
  472.             $context['_iterated'] = true;
  473.             ++$context['loop']['index0'];
  474.             ++$context['loop']['index'];
  475.             $context['loop']['first'] = false;
  476.             if (isset($context['loop']['length'])) {
  477.                 --$context['loop']['revindex0'];
  478.                 --$context['loop']['revindex'];
  479.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  480.             }
  481.         }
  482.         if (!$context['_iterated']) {
  483.             // line 372
  484.             echo "            \"";
  485.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue372), "schemeAndHttpHost", [], "any"falsefalsetrue372), 372$this->source), "html"nulltrue);
  486.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  487.             echo "\"
  488.         ";
  489.         }
  490.         $_parent $context['_parent'];
  491.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
  492.         $context array_intersect_key($context$_parent) + $_parent;
  493.         // line 374
  494.         echo "    ],
  495.     \"description\": \"";
  496.         // line 375
  497.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_replace_filter(((twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"truetruetrue375)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"falsefalsetrue375), 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"falsefalsetrue375), 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"falsefalsetrue375))), ["
  498. => """ " => ""]), 0300), "html"nulltrue);
  499.         echo "\",
  500.     ";
  501.         // line 376
  502.         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"falsefalsetrue376)) {
  503.             // line 377
  504.             echo "    \"sku\": \"";
  505.             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"falsefalsetrue377), 377$this->source), "html"nulltrue);
  506.             echo "\",
  507.     ";
  508.         }
  509.         // line 379
  510.         echo "    \"offers\": {
  511.         \"@type\": \"Offer\",
  512.         \"url\": \"";
  513.         // line 381
  514.         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"falsefalsetrue381)]), "html"nulltrue);
  515.         echo "\",
  516.         \"priceCurrency\": \"";
  517.         // line 382
  518.         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"falsefalsetrue382), 382$this->source), "html"nulltrue);
  519.         echo "\",
  520.         \"price\": ";
  521.         // line 383
  522.         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"falsefalsetrue383), 383$this->source), "html"nulltrue);
  523.         echo ",
  524.         \"availability\": \"";
  525.         // line 384
  526.         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"falsefalsetrue384)) ? ("InStock") : ("OutOfStock"));
  527.         echo "\"
  528.     }
  529. }
  530. ";
  531.         
  532.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  533.         
  534.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  535.     }
  536.     // line 389
  537.     public function block_stylesheet($context, array $blocks = [])
  538.     {
  539.         $macros $this->macros;
  540.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  541.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  542.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  543.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  544.         // line 390
  545.         echo "    <style>
  546.         .setproduct_size select{
  547.             margin-bottom: 15px;
  548.         }
  549.         .discount_price
  550.         {
  551.             font-size: 25px;
  552.             font-weight: bold;
  553.         }
  554.         .discount_period {
  555.             font-size: 18px;
  556.             margin-top: 10px !important;
  557.             font-weight: bold;
  558.         }
  559.     </style>
  560. ";
  561.         
  562.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  563.         
  564.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  565.     }
  566.     // line 407
  567.     public function block_main($context, array $blocks = [])
  568.     {
  569.         $macros $this->macros;
  570.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  571.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  572.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  573.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  574.         // line 408
  575.         echo "
  576.     ";
  577.         // line 409
  578.         $this->loadTemplate("rireki_hikaku.twig""Product/detail.twig"409)->display($context);
  579.         // line 410
  580.         echo "    <!-- ▼item_detail▼ -->
  581.     <div id=\"item_detail\">
  582.         <div id=\"detail_wrap\" class=\"row\">
  583.         ";
  584.         // line 413
  585.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  586.             // line 414
  587.             echo "            <!--★画像★-->
  588.             <div id=\"item_photo_area\" class=\"col-sm-6\">
  589.                 <div id=\"detail_image_box__slides\" class=\"slides\">
  590.                     ";
  591.             // line 417
  592.             if ((twig_length_filter($this->envtwig_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"falsefalsetrue417)) > 0)) {
  593.                 // line 418
  594.                 echo "                        ";
  595.                 $context['_parent'] = $context;
  596.                 $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"falsefalsetrue418));
  597.                 $context['loop'] = [
  598.                   'parent' => $context['_parent'],
  599.                   'index0' => 0,
  600.                   'index'  => 1,
  601.                   'first'  => true,
  602.                 ];
  603.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  604.                     $length count($context['_seq']);
  605.                     $context['loop']['revindex0'] = $length 1;
  606.                     $context['loop']['revindex'] = $length;
  607.                     $context['loop']['length'] = $length;
  608.                     $context['loop']['last'] = === $length;
  609.                 }
  610.                 foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  611.                     // line 419
  612.                     echo "                            <div id=\"detail_image_box__item--";
  613.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue419), 419$this->source), "html"nulltrue);
  614.                     echo "\">
  615.                                 <img src=\"";
  616.                     // line 420
  617.                     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"nulltrue);
  618.                     echo "\"/>
  619.                             </div>
  620.                         ";
  621.                     ++$context['loop']['index0'];
  622.                     ++$context['loop']['index'];
  623.                     $context['loop']['first'] = false;
  624.                     if (isset($context['loop']['length'])) {
  625.                         --$context['loop']['revindex0'];
  626.                         --$context['loop']['revindex'];
  627.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  628.                     }
  629.                 }
  630.                 $_parent $context['_parent'];
  631.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  632.                 $context array_intersect_key($context$_parent) + $_parent;
  633.                 // line 423
  634.                 echo "                    ";
  635.             } else {
  636.                 // line 424
  637.                 echo "                        <div id=\"detail_image_box__item\"><img src=\"";
  638.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  639.                 echo "\"/></div>
  640.                     ";
  641.             }
  642.             // line 426
  643.             echo "                </div>
  644.             </div>
  645.             <section id=\"item_detail_area\" class=\"col-sm-6\">
  646.                 ";
  647.             // line 429
  648.             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"falsefalsetrue429))) {
  649.                 // line 430
  650.                 echo "                    <!--▼商品タグ-->
  651.                     <div id=\"product_tag_box\" class=\"product_tag\">
  652.                         ";
  653.                 // line 432
  654.                 $this->loadTemplate("Block/product_sex_tag.twig""Product/detail.twig"432)->display($context);
  655.                 // line 433
  656.                 echo "                        ";
  657.                 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", [=> "購入必需品"], "method"falsefalsetrue433)) {
  658.                     // line 434
  659.                     echo "                            <div class=\"cateicon2\">入学時の必要品</div>
  660.                         ";
  661.                 } elseif (twig_get_attribute($this->env$this->source,                 // line 435
  662. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'435$this->source); })()), "hasTag", [=> "購入必需品(選択可)"], "method"falsefalsetrue435)) {
  663.                     // line 436
  664.                     echo "                            <div class=\"cateicon2\">入学時の必要品(選択可)</div>
  665.                         ";
  666.                 } elseif (twig_get_attribute($this->env$this->source,                 // line 437
  667. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'437$this->source); })()), "hasTag", [=> "希望購入品"], "method"falsefalsetrue437)) {
  668.                     // line 438
  669.                     echo "                            <div class=\"cateicon3\">希望購入品</div>
  670.                             ";
  671.                 } elseif (twig_get_attribute($this->env$this->source,                 // line 439
  672. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'439$this->source); })()), "hasTag", [=> "購入必需品(女子も購入可)"], "method"falsefalsetrue439)) {
  673.                     // line 440
  674.                     echo "                            <div class=\"cateicon2\">入学時の必要品(女子も購入可)</div>
  675.                         ";
  676.                 }
  677.                 // line 442
  678.                 echo "                    </div>
  679.                 ";
  680.             }
  681.             // line 444
  682.             echo "
  683.                 <!--★商品名★-->
  684.                 <h3 id=\"detail_description_box__name\" class=\"item_name\">";
  685.             // line 446
  686.             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"falsefalsetrue446), 446$this->source), "html"nulltrue);
  687.             echo "</h3>
  688.                 <div id=\"detail_description_box__body\" class=\"item_detail\">
  689.                     <!--★通常価格★-->
  690.                     ";
  691.             // line 449
  692.             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"falsefalsetrue449)) {
  693.                 // line 450
  694.                 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"falsefalsetrue450)) && (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"falsefalsetrue450) == 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"falsefalsetrue450)))) {
  695.                     // line 451
  696.                     echo "                            <p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
  697.                                 <span class=\"ec-productRole__priceRegularPrice\">";
  698.                     // line 452
  699.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  700.                     echo ":<span class=\"price01-default\">";
  701.                     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"falsefalsetrue452), 452$this->source)), "html"nulltrue);
  702.                     echo "</span></span>
  703.                                 <span class=\"ec-productRole__priceRegularTax\">";
  704.                     // line 453
  705.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  706.                     echo "</span>
  707.                             </p>
  708.                         ";
  709.                 } elseif (( !(null === twig_get_attribute($this->env$this->source,                 // line 455
  710. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'455$this->source); })()), "getPrice01Min", [], "any"falsefalsetrue455)) &&  !(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"falsefalsetrue455)))) {
  711.                     // line 456
  712.                     echo "                            <p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
  713.                                 <span class=\"ec-productRole__priceRegularPrice\">";
  714.                     // line 457
  715.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  716.                     echo ":<span class=\"price01-default\">";
  717.                     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"falsefalsetrue457), 457$this->source)), "html"nulltrue);
  718.                     echo "</span></span>
  719.                                 <span class=\"ec-productRole__priceRegularTax\">";
  720.                     // line 458
  721.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  722.                     echo "</span>
  723.                             </p>
  724.                         ";
  725.                 }
  726.                 // line 461
  727.                 echo "                    ";
  728.             } else {
  729.                 // line 462
  730.                 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"falsefalsetrue462))) {
  731.                     // line 463
  732.                     echo "                            <p id=\"detail_description_box__normal_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">";
  733.                     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"falsefalsetrue463), 463$this->source)), "html"nulltrue);
  734.                     echo "</span> <span class=\"small\">税込</span></p>
  735.                         ";
  736.                 }
  737.                 // line 465
  738.                 echo "                    ";
  739.             }
  740.             // line 467
  741.             echo "<!--★販売価格★-->
  742.                     ";
  743.             // line 468
  744.             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"falsefalsetrue468)) {
  745.                 // line 469
  746.                 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"falsefalsetrue469) == 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"falsefalsetrue469))) {
  747.                     // line 470
  748.                     echo "                            <p id=\"detail_description_box__class_sale_price\" class=\"sale_price text-primary\">
  749.                                 <span class=\"ec-price__price price02-default\">";
  750.                     // line 471
  751.                     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"falsefalsetrue471), 471$this->source)), "html"nulltrue);
  752.                     echo "</span>
  753.                                 <span class=\"ec-price__tax\">";
  754.                     // line 472
  755.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  756.                     echo "</span>
  757. \t\t\t\t            </p>
  758.                         ";
  759.                 } else {
  760.                     // line 475
  761.                     echo "                            <p id=\"detail_description_box__class_range_sale_price\" class=\"sale_price text-primary\">
  762.                                 <span class=\"ec-price__price price02-default\">";
  763.                     // line 476
  764.                     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"falsefalsetrue476), 476$this->source)), "html"nulltrue);
  765.                     echo " ~ ";
  766.                     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"falsefalsetrue476), 476$this->source)), "html"nulltrue);
  767.                     echo "</span>
  768.                                 <span class=\"ec-price__tax\">";
  769.                     // line 477
  770.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  771.                     echo "</span>
  772. \t\t\t\t            </p>
  773.                         ";
  774.                 }
  775.                 // line 480
  776.                 echo "                    ";
  777.             } else {
  778.                 // line 481
  779.                 echo "<p id=\"detail_description_box__sale_price\" class=\"sale_price text-primary\">
  780.                             <span class=\"ec-price__price\">";
  781.                 // line 482
  782.                 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"falsefalsetrue482), 482$this->source)), "html"nulltrue);
  783.                 echo "</span>
  784.                             <span class=\"ec-price__tax\">";
  785.                 // line 483
  786.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  787.                 echo "</span>
  788. \t\t\t\t        </p>
  789.                     ";
  790.             }
  791.             // line 487
  792.             echo "<!--★割引価格★-->
  793.                     ";
  794.             // line 488
  795.             if ((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue488), "school", [], "any"falsefalsetrue488), "sale_start_date", [], "any"falsefalsetrue488) < twig_date_converter($this->env)) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue488), "school", [], "any"falsefalsetrue488), "sale_end_date", [], "any"falsefalsetrue488) > 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"falsefalsetrue488))) {
  796.                 // line 489
  797.                 echo "                        ";
  798.                 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"falsefalsetrue489)) {
  799.                     // line 490
  800.                     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"falsefalsetrue490) == 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"falsefalsetrue490))) {
  801.                         // line 491
  802.                         echo "                                <p id=\"detail_description_box__class_discount_price\" class=\"discount_price text-primary\">
  803.                                     <span>割引価格:</span><span class=\"price03_default\">";
  804.                         // line 492
  805.                         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"falsefalsetrue492), 492$this->source)), "html"nulltrue);
  806.                         echo "</span> <span class=\"small\">税込</span>
  807.                                 </p>
  808.                             ";
  809.                     } else {
  810.                         // line 495
  811.                         echo "                                <p id=\"detail_description_box__class_range_discount_price\" class=\"discount_price text-primary\"><span class=\"price03_default\">";
  812.                         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"falsefalsetrue495), 495$this->source)), "html"nulltrue);
  813.                         echo " ~ ";
  814.                         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"falsefalsetrue495), 495$this->source)), "html"nulltrue);
  815.                         echo "</span> <span class=\"small\">税込</span></p>
  816.                             ";
  817.                     }
  818.                     // line 497
  819.                     echo "                        ";
  820.                 } else {
  821.                     // line 498
  822.                     echo "<p id=\"detail_description_box__discount_price\" class=\"sale_price text-primary discount_price\"><span class=\"price03_default\">";
  823.                     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"falsefalsetrue498), 498$this->source)), "html"nulltrue);
  824.                     echo "</span> <span class=\"small\">税込</span></p>
  825.                         ";
  826.                 }
  827.                 // line 500
  828.                 echo "<p class=\"discount_period text-primary\">割引期間:";
  829.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue500), "school", [], "any"falsefalsetrue500), "sale_start_date", [], "any"falsefalsetrue500), 500$this->source), "Y年m月d日"), "html"nulltrue);
  830.                 echo " ~ ";
  831.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue500), "school", [], "any"falsefalsetrue500), "sale_end_date", [], "any"falsefalsetrue500), 500$this->source), "Y年m月d日"), "html"nulltrue);
  832.                 echo "</p>
  833.                     ";
  834.             }
  835.             // line 502
  836.             echo "                    <form action=\"";
  837.             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"falsefalsetrue502)]), "html"nulltrue);
  838.             echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  839.                         <!--▼買い物かご-->
  840.                         <div id=\"detail_cart_box\" class=\"cart_area\">
  841.                             ";
  842.             // line 505
  843.             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"falsefalsetrue505)) {
  844.                 // line 506
  845.                 echo "                                ";
  846.                 // line 507
  847.                 echo "                                ";
  848.                 if ((twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue507) || (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"falsefalsetrue507) == "set"))) {
  849.                     // line 508
  850.                     echo "                                    <ul id=\"detail_cart_box__cart_class_category_id\" class=\"classcategory_list\">
  851.                                         ";
  852.                     // line 509
  853.                     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"falsefalsetrue509) != "set")) {
  854.                         // line 510
  855.                         echo "                                            ";
  856.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue510), "school", [], "any"falsefalsetrue510), "size_recommend_flag", [], "any"falsefalsetrue510)) {
  857.                             // line 511
  858.                             echo "                                                ";
  859.                             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); })()))) {
  860.                                 // line 512
  861.                                 echo "                                                    <li class=\"rec_size\">
  862.                                  \t\t\t\t\t\t<p>自分のサイズ:";
  863.                                 // line 513
  864.                                 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->sourcetwig_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"falsefalsetrue513), "recommend_xplace", [], "any"falsefalsetrue513), [], "array"falsefalsetrue513), 513$this->source), "html"nulltrue);
  865.                                 echo "…";
  866.                                 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"nulltrue);
  867.                                 echo "/";
  868.                                 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->sourcetwig_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"falsefalsetrue513), "recommend_yplace", [], "any"falsefalsetrue513), [], "array"falsefalsetrue513), 513$this->source), "html"nulltrue);
  869.                                 echo "…";
  870.                                 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"nulltrue);
  871.                                 echo "</p>
  872.                                  \t\t\t\t\t\t<p class=\"result\">貴方へのオススメサイズは<br><span>";
  873.                                 // line 514
  874.                                 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"falsefalsetrue514), 514$this->source), "html"nulltrue);
  875.                                 echo "</span>です</p>
  876.                                  \t\t\t\t\t\t<p class=\"kome\">こちらはサイズをオススメさせて頂く機能となります。<br>サイズ、数量のご入力はお客様ご自身で行ってください。</p>
  877.                                                     </li>
  878.                                                 ";
  879.                             } elseif ( !(null === twig_get_attribute($this->env$this->source,                             // line 517
  880. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'517$this->source); })()), "Recommend", [], "any"falsefalsetrue517))) {
  881.                                 // line 518
  882.                                 echo "                                                    <li>「採寸データが正しく登録されていないため、サイズのオススメができません。<br/>
  883.                                                         <span><a href=\"";
  884.                                 // line 519
  885.                                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_change_saisun");
  886.                                 echo "\" target=\"_blank\">オススメサイズが知りたい</a></span>
  887.                                                     </li>
  888.                                                 ";
  889.                             }
  890.                             // line 522
  891.                             echo "                                            ";
  892.                         }
  893.                         // line 523
  894.                         echo "                                        ";
  895.                     }
  896.                     // line 524
  897.                     echo "                                        ";
  898.                     // line 525
  899.                     echo "                                        ";
  900.                     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"falsefalsetrue525) != "set")) {
  901.                         // line 526
  902.                         echo "                                            <li>
  903.                                             ";
  904.                         // line 527
  905.                         $context["break"] = false;
  906.                         // line 528
  907.                         echo "                                            ";
  908.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue528)) {
  909.                             // line 529
  910.                             echo "                                                ";
  911.                             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"falsefalsetrue529), 529$this->source), 'widget');
  912.                             echo "
  913.                                                 ";
  914.                             // line 530
  915.                             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"falsefalsetrue530), 530$this->source), 'errors');
  916.                             echo "
  917.                                             ";
  918.                         }
  919.                         // line 532
  920.                         echo "                                            </li>
  921.                                             ";
  922.                         // line 535
  923.                         echo "                                            ";
  924.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruetrue535)) {
  925.                             // line 536
  926.                             echo "                                                <li>
  927.                                                     ";
  928.                             // line 537
  929.                             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"falsefalsetrue537), 537$this->source), 'widget');
  930.                             echo "
  931.                                                     ";
  932.                             // line 538
  933.                             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"falsefalsetrue538), 538$this->source), 'errors');
  934.                             echo "
  935.                                                 </li>
  936.                                             ";
  937.                         }
  938.                         // line 541
  939.                         echo "                                        ";
  940.                     } else {
  941.                         // line 542
  942.                         echo "                                            <li class=\"setproduct_size\">
  943.                                             ";
  944.                         // line 543
  945.                         $context['_parent'] = $context;
  946.                         $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); })()));
  947.                         foreach ($context['_seq'] as $context["_key"] => $context["pis"]) {
  948.                             // line 544
  949.                             echo "                                                <div class=\"setproduct_item\" data-product-id=\"";
  950.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["pis"], "id", [], "any"falsefalsetrue544), 544$this->source), "html"nulltrue);
  951.                             echo "\">
  952.                                                     <p>";
  953.                             // line 545
  954.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["pis"], "name", [], "any"falsefalsetrue545), 545$this->source), "html"nulltrue);
  955.                             echo "</p>
  956.                                                     ";
  957.                             // line 546
  958.                             $context["category2_count"] = 0;
  959.                             // line 547
  960.                             echo "                                                    ";
  961.                             $context["class_category1"] = [];
  962.                             // line 548
  963.                             echo "                                                    ";
  964.                             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["pis"], "getProductClasses", [], "any"falsefalsetrue548)) > 1)) {
  965.                                 // line 549
  966.                                 echo "                                                        <select class=\"form-control setproduct_size1\" required>
  967.                                                             <option value=\"__unselected\">";
  968.                                 // line 550
  969.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.select"), "html"nulltrue);
  970.                                 echo "</option>
  971.                                                             ";
  972.                                 // line 551
  973.                                 $context['_parent'] = $context;
  974.                                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["pis"], "getProductClasses", [], "any"falsefalsetrue551));
  975.                                 $context['loop'] = [
  976.                                   'parent' => $context['_parent'],
  977.                                   'index0' => 0,
  978.                                   'index'  => 1,
  979.                                   'first'  => true,
  980.                                 ];
  981.                                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  982.                                     $length count($context['_seq']);
  983.                                     $context['loop']['revindex0'] = $length 1;
  984.                                     $context['loop']['revindex'] = $length;
  985.                                     $context['loop']['length'] = $length;
  986.                                     $context['loop']['last'] = === $length;
  987.                                 }
  988.                                 foreach ($context['_seq'] as $context["_key"] => $context["ps"]) {
  989.                                     // line 552
  990.                                     echo "                                                                ";
  991.                                     if ((( !(null === twig_get_attribute($this->env$this->source$context["ps"], "ClassCategory1", [], "any"falsefalsetrue552)) && twig_get_attribute($this->env$this->source$context["ps"], "visible", [], "any"falsefalsetrue552)) && !twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ps"], "ClassCategory1", [], "any"falsefalsetrue552), "id", [], "any"falsefalsetrue552), (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); })())))) {
  992.                                         // line 553
  993.                                         echo "                                                                <option value=\"";
  994.                                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ps"], "ClassCategory1", [], "any"falsefalsetrue553), "id", [], "any"falsefalsetrue553), 553$this->source), "html"nulltrue);
  995.                                         echo "\">";
  996.                                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ps"], "ClassCategory1", [], "any"falsefalsetrue553), "name", [], "any"falsefalsetrue553), 553$this->source), "html"nulltrue);
  997.                                         echo "</option>
  998.                                                                 ";
  999.                                         // line 554
  1000.                                         $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"falsefalsetrue554) => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ps"], "ClassCategory1", [], "any"falsefalsetrue554), "id", [], "any"falsefalsetrue554)]);
  1001.                                         // line 555
  1002.                                         echo "                                                                ";
  1003.                                     }
  1004.                                     // line 556
  1005.                                     echo "                                                                ";
  1006.                                     if ( !(null === twig_get_attribute($this->env$this->source$context["ps"], "ClassCategory2", [], "any"falsefalsetrue556))) {
  1007.                                         // line 557
  1008.                                         echo "                                                                ";
  1009.                                         $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);
  1010.                                         // line 558
  1011.                                         echo "                                                                ";
  1012.                                     }
  1013.                                     // line 559
  1014.                                     echo "                                                            ";
  1015.                                     ++$context['loop']['index0'];
  1016.                                     ++$context['loop']['index'];
  1017.                                     $context['loop']['first'] = false;
  1018.                                     if (isset($context['loop']['length'])) {
  1019.                                         --$context['loop']['revindex0'];
  1020.                                         --$context['loop']['revindex'];
  1021.                                         $context['loop']['last'] = === $context['loop']['revindex0'];
  1022.                                     }
  1023.                                 }
  1024.                                 $_parent $context['_parent'];
  1025.                                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ps'], $context['_parent'], $context['loop']);
  1026.                                 $context array_intersect_key($context$_parent) + $_parent;
  1027.                                 // line 560
  1028.                                 echo "                                                        </select>
  1029.                                                     ";
  1030.                             }
  1031.                             // line 562
  1032.                             echo "                                                    ";
  1033.                             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)) {
  1034.                                 // line 563
  1035.                                 echo "                                                    ";
  1036.                                 // line 564
  1037.                                 echo "                                                    <select class=\"form-control setproduct_size2\" required>
  1038.                                                         <option value=\"__unselected\">";
  1039.                                 // line 565
  1040.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.select"), "html"nulltrue);
  1041.                                 echo "</option>
  1042.                                                     </select>
  1043.                                                     ";
  1044.                             }
  1045.                             // line 568
  1046.                             echo "                                                    <input type=\"hidden\" name=\"SetProductClass[]\" class=\"set_product_class ";
  1047.                             echo (((twig_length_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["pis"], "getProductClasses", [], "any"falsefalsetrue568), 568$this->source)) == 1)) ? ("no_product_class") : (""));
  1048.                             echo "\" value=\"";
  1049.                             (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["pis"], "getProductClasses", [], "any"falsefalsetrue568)) == 1)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["pis"], "getProductClasses", [], "any"falsefalsetrue568), 0, [], "array"falsefalsetrue568), "id", [], "any"falsefalsetrue568), "html"nulltrue))) : (print ("")));
  1050.                             echo "\">
  1051.                                                 </div>
  1052.                                             ";
  1053.                         }
  1054.                         $_parent $context['_parent'];
  1055.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pis'], $context['_parent'], $context['loop']);
  1056.                         $context array_intersect_key($context$_parent) + $_parent;
  1057.                         // line 571
  1058.                         echo "                                            </li>
  1059.                                         ";
  1060.                     }
  1061.                     // line 573
  1062.                     echo "                                    </ul>
  1063.                                 ";
  1064.                 }
  1065.                 // line 575
  1066.                 echo "
  1067.                                 ";
  1068.                 // line 577
  1069.                 echo "                                <dl id=\"detail_cart_box__cart_quantity\" class=\"quantity\">
  1070.                                     <dt>数量</dt>
  1071.                                     <dd>
  1072.                                         ";
  1073.                 // line 580
  1074.                 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"falsefalsetrue580), 580$this->source), 'widget');
  1075.                 echo "
  1076.                                         ";
  1077.                 // line 581
  1078.                 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"falsefalsetrue581), 581$this->source), 'errors');
  1079.                 echo "
  1080.                                         ";
  1081.                 // line 582
  1082.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue582), "school", [], "any"falsefalsetrue582), "isBrotherEnabled", [], "any"falsefalsetrue582)) {
  1083.                     // line 583
  1084.                     echo "                                            ";
  1085.                     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"falsefalsetrue583), 583$this->source), 'widget');
  1086.                     echo "
  1087.                                             ";
  1088.                     // line 584
  1089.                     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"falsefalsetrue584), 584$this->source), 'errors');
  1090.                     echo "
  1091.                                         ";
  1092.                 }
  1093.                 // line 586
  1094.                 echo "                                    </dd>
  1095.                                 </dl>
  1096.                                 <div class=\"extra-form\">
  1097.                                     ";
  1098.                 // line 589
  1099.                 $context['_parent'] = $context;
  1100.                 $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"falsefalsetrue589));
  1101.                 foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  1102.                     // line 590
  1103.                     echo "                                        ";
  1104.                     if (preg_match("[^plg*]"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue590), "name", [], "any"falsefalsetrue590))) {
  1105.                         // line 591
  1106.                         echo "                                            ";
  1107.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 591$this->source), 'row');
  1108.                         echo "
  1109.                                         ";
  1110.                     }
  1111.                     // line 593
  1112.                     echo "                                    ";
  1113.                 }
  1114.                 $_parent $context['_parent'];
  1115.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  1116.                 $context array_intersect_key($context$_parent) + $_parent;
  1117.                 // line 594
  1118.                 echo "                                </div>
  1119.                                 ";
  1120.                 // line 597
  1121.                 echo "                                <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
  1122.                                     <ul id=\"detail_cart_box__insert_button\" class=\"row\">
  1123.                                         <li class=\"col-xs-12 col-sm-8\">
  1124.                                             <button type=\"submit\" class=\"ec-blockBtn--action def_button4 add-cart";
  1125.                 // line 600
  1126.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue600), "school", [], "any"falsefalsetrue600), "isBrotherEnabled", [], "any"falsefalsetrue600)) {
  1127.                     echo " zero";
  1128.                 }
  1129.                 echo "\"";
  1130.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue600), "school", [], "any"falsefalsetrue600), "isBrotherEnabled", [], "any"falsefalsetrue600)) {
  1131.                     echo " disabled=\"disabled\"";
  1132.                 }
  1133.                 echo ">";
  1134.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart"), "html"nulltrue);
  1135.                 echo "</button>
  1136.                                         </li>
  1137.                                     </ul>
  1138.                                 </div> ";
  1139.                 // line 604
  1140.                 echo "                            ";
  1141.             } else {
  1142.                 // line 605
  1143.                 echo "                                ";
  1144.                 // line 606
  1145.                 echo "                                <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
  1146.                                     <ul class=\"row\">
  1147.                                         <li class=\"col-xs-12 col-sm-8\">
  1148.                                             <button type=\"button\" class=\"ec-blockBtn--action def_button4 zero\" disabled=\"disabled\">";
  1149.                 // line 609
  1150.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.out_of_stock"), "html"nulltrue);
  1151.                 echo "</button>
  1152.                                             ";
  1153.                 // line 610
  1154.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue610), 0, [], "array"falsefalsetrue610), "stock_date", [], "any"falsefalsetrue610)) {
  1155.                     // line 611
  1156.                     echo "                                            <p>";
  1157.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue611), 0, [], "array"falsefalsetrue611), "stock_date", [], "any"falsefalsetrue611), 611$this->source), "Y年m月d日"), "html"nulltrue);
  1158.                     echo "入荷予定</p>
  1159.                                             ";
  1160.                 }
  1161.                 // line 613
  1162.                 echo "                                        </li>
  1163.                                     </ul>
  1164.                                 </div> ";
  1165.                 // line 616
  1166.                 echo "                            ";
  1167.             }
  1168.             echo " ";
  1169.             // line 617
  1170.             echo "                        </div>
  1171.                         <!--▲買い物かご-->
  1172.                         ";
  1173.             // line 619
  1174.             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');
  1175.             echo "
  1176.                     </form>
  1177.                     ";
  1178.             // line 621
  1179.             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"falsefalsetrue621)) {
  1180.                 // line 622
  1181.                 echo "                        <form action=\"";
  1182.                 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"falsefalsetrue622)]), "html"nulltrue);
  1183.                 echo "\" method=\"post\" id=\"add_favorite_form\">
  1184.                             <div class=\"btn_area\">
  1185.                                 <ul id=\"detail_cart_box__favorite_button\" class=\"row\">
  1186.                                     ";
  1187.                 // line 625
  1188.                 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)) {
  1189.                     // line 626
  1190.                     echo "                                        <li class=\"col-xs-12 col-sm-8\">
  1191.                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5\">";
  1192.                     // line 627
  1193.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite"), "html"nulltrue);
  1194.                     echo "</button>
  1195.                                         </li>
  1196.                                     ";
  1197.                 } else {
  1198.                     // line 630
  1199.                     echo "                                        <li class=\"col-xs-12 col-sm-8\">
  1200.                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5 ck\" disabled=\"disabled\">";
  1201.                     // line 631
  1202.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite_alrady"), "html"nulltrue);
  1203.                     echo "</button>
  1204.                                         </li>
  1205.                                     ";
  1206.                 }
  1207.                 // line 634
  1208.                 echo "                                </ul>
  1209.                             </div>
  1210.                         </form>
  1211.                     ";
  1212.             }
  1213.             // line 638
  1214.             echo "                </div>
  1215.                 <!-- /.item_detail -->
  1216.             </section>
  1217.             <!--詳細ここまで-->
  1218.         ";
  1219.         }
  1220.         // line 643
  1221.         echo "        </div>
  1222.         ";
  1223.         // line 646
  1224.         echo "        ";
  1225.         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"falsefalsetrue646)) {
  1226.             // line 647
  1227.             echo "            <div id=\"sub_area\" class=\"row\">
  1228.                 <div class=\"col-sm-10 col-sm-offset-1\">
  1229.                     <div id=\"detail_free_box__freearea\" class=\"freearea\">";
  1230.             // line 649
  1231.             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$contexttwig_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"falsefalsetrue649), 649$this->source)));
  1232.             echo "</div>
  1233.                 </div>
  1234.             </div>
  1235.         ";
  1236.         }
  1237.         // line 653
  1238.         echo "    </div>
  1239.     <!-- ▲item_detail▲ -->
  1240. ";
  1241.         
  1242.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1243.         
  1244.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1245.     }
  1246.     public function getTemplateName()
  1247.     {
  1248.         return "Product/detail.twig";
  1249.     }
  1250.     public function isTraitable()
  1251.     {
  1252.         return false;
  1253.     }
  1254.     public function getDebugInfo()
  1255.     {
  1256.         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,);
  1257.     }
  1258.     public function getSourceContext()
  1259.     {
  1260.         return new Source("{#
  1261. This file is part of EC-CUBE
  1262. Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
  1263. http://www.lockon.co.jp/
  1264. This program is free software; you can redistribute it and/or
  1265. modify it under the terms of the GNU General Public License
  1266. as published by the Free Software Foundation; either version 2
  1267. of the License, or (at your option) any later version.
  1268. This program is distributed in the hope that it will be useful,
  1269. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1270. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1271. GNU General Public License for more details.
  1272. You should have received a copy of the GNU General Public License
  1273. along with this program; if not, write to the Free Software
  1274. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  1275. #}
  1276. {% extends 'default_frame.twig' %}
  1277. {% set body_class = 'product_page' %}
  1278. {% block javascript %}
  1279. <script>
  1280.     \$('#brother').on('change', function(){
  1281.         \$cartbtn = \$('.add-cart');
  1282.         if (\$cartbtn.text() != 'ただいま品切れ中です') {
  1283.             if (!\$(this).val()) {
  1284.                 \$cartbtn.prop('disabled', true);
  1285.                 \$cartbtn.addClass('zero');
  1286.             } else {
  1287.                 \$cartbtn.prop('disabled', false);
  1288.                 \$cartbtn.removeClass('zero');
  1289.             }
  1290.         }
  1291.     });
  1292.     eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  1293.     // 規格2に選択肢を割り当てる。
  1294.     function fnSetClassCategories(form, classcat_id2_selected) {
  1295.         var \$form = \$(form);
  1296.         var product_id = \$form.find('input[name=product_id]').val();
  1297.         var \$sele1 = \$form.find('select[name=classcategory_id1]');
  1298.         var \$sele2 = \$form.find('select[name=classcategory_id2]');
  1299.         eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  1300.     }
  1301.     {% if form.classcategory_id2 is defined %}
  1302.     fnSetClassCategories(
  1303.         \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  1304.     );
  1305.     {% elseif form.classcategory_id1 is defined %}
  1306.     eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  1307.     {% endif %}
  1308.     {% if Product.product_type =='set' %}
  1309.         setSetClassCategories = function(\$form, product_id, \$sele1, \$sele2, selected_id2) {
  1310.             if (\$sele1 && \$sele1.length) {
  1311.                 var classcat_id1 = \$sele1.val() ? \$sele1.val() : '';
  1312.                 if (\$sele2 && \$sele2.length) {
  1313.                     // 規格2の選択肢をクリア
  1314.                     \$sele2.children().remove();
  1315.                     var classcat2;
  1316.                     // 商品一覧時
  1317.                     if (eccube.hasOwnProperty('productsClassCategories')) {
  1318.                         classcat2 = eccube.productsClassCategories[product_id][classcat_id1];
  1319.                     }
  1320.                     // 詳細表示時
  1321.                     else {
  1322.                         classcat2 = setClassCategories[product_id][classcat_id1];
  1323.                     }
  1324.                     // 規格2の要素を設定
  1325.                     for (var key in classcat2) {
  1326.                         if (classcat2.hasOwnProperty(key)) {
  1327.                             var id = classcat2[key].classcategory_id2;
  1328.                             var name = classcat2[key].name;
  1329.                             var option = \$('<option />').val(id ? id : '').text(name);
  1330.                             if (id === selected_id2) {
  1331.                                 option.attr('selected', true);
  1332.                             }
  1333.                             \$sele2.append(option);
  1334.                         }
  1335.                     }
  1336.                     setCheckStock(\$form, product_id, \$sele1.val() ? \$sele1.val() : '__unselected2',
  1337.                     \$sele2.val() ? \$sele2.val() : '');
  1338.                 }
  1339.             }
  1340.         };
  1341.         setCheckStock = function(\$form, product_id, classcat_id1, classcat_id2) {
  1342.             classcat_id2 = classcat_id2 ? classcat_id2 : '';
  1343.             var classcat2;
  1344.             // 商品一覧時
  1345.             if (eccube.hasOwnProperty('productsClassCategories')) {
  1346.                 classcat2 = eccube.productsClassCategories[product_id][classcat_id1]['#' + classcat_id2];
  1347.             }
  1348.             // 詳細表示時
  1349.             else {
  1350.                 classcat2 = setClassCategories[product_id][classcat_id1]['#' + classcat_id2];
  1351.             }
  1352.             // 商品コード
  1353.             var  \$product_code = \$('#item_code_default');
  1354.             if (typeof this.product_code_origin === 'undefined') {
  1355.                 // 初期値を保持しておく
  1356.                 this.product_code_origin =  \$product_code.text();
  1357.             }
  1358.             if (classcat2 && typeof classcat2.product_code !== 'undefined') {
  1359.                 \$product_code.text(classcat2.product_code);
  1360.             } else {
  1361.                 \$product_code.text(this.product_code_origin);
  1362.             }
  1363.             // 在庫(品切れ)
  1364.             var \$cartbtn = \$('#add-cart');
  1365.             if (classcat2 && classcat2.stock_find === false) {
  1366.                 \$cartbtn.prop('disabled', true);
  1367.                 \$cartbtn.text('ただいま品切れ中です');
  1368.             } else {
  1369.                 \$cartbtn.prop('disabled', false);
  1370.                 \$cartbtn.text('カートに入れる');
  1371.             }
  1372.             // 通常価格
  1373.             var \$price01 = \$('#detail_description_box__class_normal_range_price')
  1374.                 .find('.price01_default')
  1375.                 .first();
  1376.             if (typeof this.proce01_origin === 'undefined') {
  1377.                 // 初期値を保持しておく
  1378.                 this.proce01_origin = \$price01.text();
  1379.             }
  1380.             if (classcat2 && typeof classcat2.price01 !== 'undefined' && String(classcat2.price01).length >= 1) {
  1381.                 \$price01.text('\\ ' + classcat2.price01);
  1382.             } else {
  1383.                 \$price01.text(this.proce01_origin);
  1384.             }
  1385.             // 販売価格
  1386.             var \$price02 = \$('#detail_description_box__class_range_sale_price')
  1387.                 .find('.price02_default')
  1388.                 .first();
  1389.             if (typeof this.proce02_origin === 'undefined') {
  1390.                 // 初期値を保持しておく
  1391.                 this.proce02_origin = \$price02.text();
  1392.             }
  1393.             if (classcat2 && typeof classcat2.price02 !== 'undefined' && String(classcat2.price02).length >= 1) {
  1394.                 \$price02.text('\\ ' + classcat2.price02);
  1395.             } else {
  1396.                 \$price02.text(this.proce02_origin);
  1397.             }
  1398.             // ポイント
  1399.             var \$point_default = \$form.find('[id^=point_default]');
  1400.             var \$point_dynamic = \$form.find('[id^=point_dynamic]');
  1401.             if (classcat2 && typeof classcat2.point !== 'undefined' && String(classcat2.point).length >= 1) {
  1402.                 \$point_dynamic.text(classcat2.point).show();
  1403.                 \$point_default.hide();
  1404.             } else {
  1405.                 \$point_dynamic.hide();
  1406.                 \$point_default.show();
  1407.             }
  1408.             // 商品規格
  1409.             var \$product_class_id_dynamic = \$form.find('.setproduct_item[data-product-id='+product_id+']').find('.set_product_class');
  1410.             if (classcat2 && typeof classcat2.product_class_id !== 'undefined' && String(classcat2.product_class_id).length >= 1) {
  1411.                 \$product_class_id_dynamic.val(classcat2.product_class_id);
  1412.             } else {
  1413.                 \$product_class_id_dynamic.val('');
  1414.             }
  1415.         };
  1416.         \$('select.setproduct_size1')
  1417.         .change(function() {
  1418.             var \$form = \$(this).parents('form');
  1419.             var product_id = \$(this).closest('.setproduct_item').data('product-id');
  1420.             var \$sele1 = \$(this);
  1421.             var \$sele2 = \$(this).closest('.setproduct_item').find('select.setproduct_size2');
  1422.             var product_class_label = \$('option:selected', \$sele1).text();
  1423.             if (product_class_label.includes(\"入荷予定\")) {
  1424.                 const str_idx = product_class_label.indexOf(\"入荷予定\");
  1425.                 const result = product_class_label.slice(str_idx);
  1426.                 \$sele1.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
  1427.             } else {
  1428.                 \$('.stock_date_desc', \$sele1.closest('.setproduct_item')).remove();
  1429.             }
  1430.             // 規格1のみの場合
  1431.             if (!\$sele2.length) {
  1432.                 setCheckStock(\$form, product_id, \$sele1.val(), null);
  1433.                 // 規格2ありの場合
  1434.             } else {
  1435.                 setSetClassCategories(\$form, product_id, \$sele1, \$sele2);
  1436.             }
  1437.         });
  1438.         // 規格2選択時
  1439.         \$('select.setproduct_size2')
  1440.         .change(function() {
  1441.             var \$form = \$(this).parents('form');
  1442.             var product_id = \$(this).closest('.setproduct_item').data('product-id');
  1443.             var \$sele1 = \$(this).closest('.setproduct_item').find('select.setproduct_size1');
  1444.             var \$sele2 = \$(this);
  1445.             var product_class_label = \$('option:selected', \$sele2).text();
  1446.             if (product_class_label.includes(\"入荷予定\")) {
  1447.                 const str_idx = product_class_label.indexOf(\"入荷予定\");
  1448.                 const result = product_class_label.slice(str_idx);
  1449.                 \$sele2.closest('.setproduct_item').append('<p class=\"stock_date_desc red\">'+result+'</p>');
  1450.             } else {
  1451.                 \$('.stock_date_desc', \$sele2.closest('.setproduct_item')).remove();
  1452.             }
  1453.             setCheckStock(\$form, product_id, \$sele1.val(), \$sele2.val());
  1454.         });
  1455.         setClassCategories = [];
  1456.         {% for pis in ProductInSet %}
  1457.             setClassCategories[{{pis.id}}] = {{ class_categories_as_json(pis)|raw }};
  1458.         {% endfor %}
  1459.     {% endif %}
  1460. </script>
  1461. <script>
  1462. \$(function(){
  1463.     \$('.carousel').slick({
  1464.         infinite: false,
  1465.         speed: 300,
  1466.         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>',
  1467.         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>',
  1468.         slidesToShow: 4,
  1469.         slidesToScroll: 4,
  1470.         responsive: [
  1471.             {
  1472.                 breakpoint: 768,
  1473.                 settings: {
  1474.                     slidesToShow: 3,
  1475.                     slidesToScroll: 3
  1476.                 }
  1477.             }
  1478.         ]
  1479.     });
  1480.     \$('.slides').slick({
  1481.         dots: true,
  1482.         arrows: false,
  1483.         speed: 300,
  1484.         customPaging: function(slider, i) {
  1485.             return '<button class=\"thumbnail\">' + \$(slider.\$slides[i]).find('img').prop('outerHTML') + '</button>';
  1486.         }
  1487.     });
  1488.     \$('#favorite').click(function() {
  1489.         \$('#mode').val('add_favorite');
  1490.     });
  1491.     // bfcache無効化
  1492.     \$(window).bind('pageshow', function(event) {
  1493.         if (event.originalEvent.persisted) {
  1494.             location.reload(true);
  1495.         }
  1496.     });
  1497. });
  1498. </script>
  1499. <script>
  1500.     \$(function() {
  1501.         \$('.add-cart').on('click', function(event) {
  1502.             {% if form.classcategory_id1 is defined %}
  1503.             // 規格1フォームの必須チェック
  1504.             if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  1505.                     \$('#classcategory_id1')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
  1506.                 return true;
  1507.             } else {
  1508.                 \$('#classcategory_id1')[0].setCustomValidity('');
  1509.             }
  1510.             {% endif %}
  1511.             {% if form.classcategory_id2 is defined %}
  1512.             // 規格2フォームの必須チェック
  1513.             if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  1514.                     \$('#classcategory_id2')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
  1515.                 return true;
  1516.             } else {
  1517.                 \$('#classcategory_id2')[0].setCustomValidity('');
  1518.             }
  1519.             {% endif %}
  1520.             var isAllCategorySelected = true;
  1521.             \$('.setproduct_item select').each(function(idx){
  1522.                 if(\$(this).val() == '__unselected' || \$(this).val() == ''){
  1523.                     this.setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1524.                     isAllCategorySelected = false;
  1525.                     return true;
  1526.                 }
  1527.                 else
  1528.                     this.setCustomValidity('');
  1529.             });
  1530.             if(!isAllCategorySelected)
  1531.                 return true;
  1532.             // 個数フォームのチェック
  1533.             if (\$('#quantity').val() < 1) {
  1534.                     \$('#classcategory_id2')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
  1535.                 return true;
  1536.             } else {
  1537.                 \$('#quantity')[0].setCustomValidity('');
  1538.             }
  1539.             event.preventDefault();
  1540.             \$form = \$('#form1');
  1541.             \$.ajax({
  1542.                 url: \$form.attr('action'),
  1543.                 type: \$form.attr('method'),
  1544.                 data: \$form.serialize(),
  1545.                 dataType: 'json',
  1546.                 beforeSend: function(xhr, settings) {
  1547.                     // Buttonを無効にする
  1548.                     \$('.add-cart').prop('disabled', true);
  1549.                 }
  1550.             }).done(function(data) {
  1551.                 // レスポンス内のメッセージをalertで表示
  1552.                 \$.each(data.messages, function() {
  1553.                         \$('#ec-modal-header').text(this);
  1554.                 });
  1555.                 \$('.ec-modal').show()
  1556.                 // カートブロックを更新する
  1557.                 \$.ajax({
  1558.                     url: \"{{ url('block_cart') }}\",
  1559.                     type: 'GET',
  1560.                     dataType: 'html'
  1561.                 }).done(function(html) {
  1562.                     \$('.ec-headerRole__cart').html(html);
  1563.                 });
  1564.             }).fail(function(data) {
  1565.                     alert('{{ 'front.product.add_cart_error'|trans }}');
  1566.             }).always(function(data) {
  1567.                 // Buttonを有効にする
  1568.                 \$('.add-cart').prop('disabled', false);
  1569.             });
  1570.         });
  1571.     });
  1572.     \$('.ec-modal-wrap').on('click', function(e) {
  1573.         // モーダル内の処理は外側にバブリングさせない
  1574.         e.stopPropagation();
  1575.     });
  1576.     \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1577.         \$('.ec-modal').hide()
  1578.     });
  1579.     \$('#add_favorite').click(function(){
  1580.         \$('#add_favorite_form').submit();
  1581.     });
  1582. </script>
  1583. <script type=\"application/ld+json\">
  1584. {
  1585.     \"@context\": \"https://schema.org/\",
  1586.     \"@type\": \"Product\",
  1587.     \"name\": \"{{ Product.name }}\",
  1588.     \"image\": [
  1589.         {% for img in Product.ProductImage %}
  1590.             \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  1591.         {% else %}
  1592.             \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  1593.         {% endfor %}
  1594.     ],
  1595.     \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  1596.     {% if Product.code_min %}
  1597.     \"sku\": \"{{ Product.code_min }}\",
  1598.     {% endif %}
  1599.     \"offers\": {
  1600.         \"@type\": \"Offer\",
  1601.         \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
  1602.         \"priceCurrency\": \"{{ eccube_config.currency }}\",
  1603.         \"price\": {{ Product.getPrice02IncTaxMin }},
  1604.         \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  1605.     }
  1606. }
  1607. {% endblock %}
  1608. {% block stylesheet %}
  1609.     <style>
  1610.         .setproduct_size select{
  1611.             margin-bottom: 15px;
  1612.         }
  1613.         .discount_price
  1614.         {
  1615.             font-size: 25px;
  1616.             font-weight: bold;
  1617.         }
  1618.         .discount_period {
  1619.             font-size: 18px;
  1620.             margin-top: 10px !important;
  1621.             font-weight: bold;
  1622.         }
  1623.     </style>
  1624. {% endblock %}
  1625. {% block main %}
  1626.     {% include 'rireki_hikaku.twig' %}
  1627.     <!-- ▼item_detail▼ -->
  1628.     <div id=\"item_detail\">
  1629.         <div id=\"detail_wrap\" class=\"row\">
  1630.         {% if is_granted('ROLE_USER') %}
  1631.             <!--★画像★-->
  1632.             <div id=\"item_photo_area\" class=\"col-sm-6\">
  1633.                 <div id=\"detail_image_box__slides\" class=\"slides\">
  1634.                     {% if Product.ProductImage|length > 0 %}
  1635.                         {% for ProductImage in Product.ProductImage %}
  1636.                             <div id=\"detail_image_box__item--{{ loop.index }}\">
  1637.                                 <img src=\"{{ asset(ProductImage|no_image_product , 'save_image') }}\"/>
  1638.                             </div>
  1639.                         {% endfor %}
  1640.                     {% else %}
  1641.                         <div id=\"detail_image_box__item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/></div>
  1642.                     {% endif %}
  1643.                 </div>
  1644.             </div>
  1645.             <section id=\"item_detail_area\" class=\"col-sm-6\">
  1646.                 {% if Product.ProductTag is not empty %}
  1647.                     <!--▼商品タグ-->
  1648.                     <div id=\"product_tag_box\" class=\"product_tag\">
  1649.                         {% include 'Block/product_sex_tag.twig' %}
  1650.                         {% if Product.hasTag('購入必需品') %}
  1651.                             <div class=\"cateicon2\">入学時の必要品</div>
  1652.                         {% elseif Product.hasTag('購入必需品(選択可)') %}
  1653.                             <div class=\"cateicon2\">入学時の必要品(選択可)</div>
  1654.                         {% elseif Product.hasTag('希望購入品') %}
  1655.                             <div class=\"cateicon3\">希望購入品</div>
  1656.                             {% elseif Product.hasTag('購入必需品(女子も購入可)') %}
  1657.                             <div class=\"cateicon2\">入学時の必要品(女子も購入可)</div>
  1658.                         {% endif %}
  1659.                     </div>
  1660.                 {% endif %}
  1661.                 <!--★商品名★-->
  1662.                 <h3 id=\"detail_description_box__name\" class=\"item_name\">{{ Product.name }}</h3>
  1663.                 <div id=\"detail_description_box__body\" class=\"item_detail\">
  1664.                     <!--★通常価格★-->
  1665.                     {% if Product.hasProductClass -%}
  1666.                         {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  1667.                             <p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
  1668.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
  1669.                                 <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1670.                             </p>
  1671.                         {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  1672.                             <p id=\"detail_description_box__class_normal_price\" class=\"normal_price\">
  1673.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
  1674.                                 <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1675.                             </p>
  1676.                         {% endif %}
  1677.                     {% else -%}
  1678.                         {% if Product.getPrice01Max is not null %}
  1679.                             <p id=\"detail_description_box__normal_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">{{ Product.getPrice01IncTaxMin|price }}</span> <span class=\"small\">税込</span></p>
  1680.                         {% endif %}
  1681.                     {% endif -%}
  1682.                     <!--★販売価格★-->
  1683.                     {% if Product.hasProductClass -%}
  1684.                         {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1685.                             <p id=\"detail_description_box__class_sale_price\" class=\"sale_price text-primary\">
  1686.                                 <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1687.                                 <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1688. \t\t\t\t            </p>
  1689.                         {% else %}
  1690.                             <p id=\"detail_description_box__class_range_sale_price\" class=\"sale_price text-primary\">
  1691.                                 <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  1692.                                 <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1693. \t\t\t\t            </p>
  1694.                         {% endif %}
  1695.                     {% else -%}
  1696.                         <p id=\"detail_description_box__sale_price\" class=\"sale_price text-primary\">
  1697.                             <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1698.                             <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1699. \t\t\t\t        </p>
  1700.                     {% endif -%}
  1701.                     <!--★割引価格★-->
  1702.                     {% if app.user.school.sale_start_date<date() and app.user.school.sale_end_date>date() and Product.getPrice03IncTaxMin%}
  1703.                         {% if Product.hasProductClass -%}
  1704.                             {% if Product.getPrice03IncTaxMin == Product.getPrice03IncTaxMax %}
  1705.                                 <p id=\"detail_description_box__class_discount_price\" class=\"discount_price text-primary\">
  1706.                                     <span>割引価格:</span><span class=\"price03_default\">{{ Product.getPrice03IncTaxMin|price }}</span> <span class=\"small\">税込</span>
  1707.                                 </p>
  1708.                             {% else %}
  1709.                                 <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>
  1710.                             {% endif %}
  1711.                         {% else -%}
  1712.                             <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>
  1713.                         {% endif -%}
  1714.                         <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>
  1715.                     {% endif %}
  1716.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  1717.                         <!--▼買い物かご-->
  1718.                         <div id=\"detail_cart_box\" class=\"cart_area\">
  1719.                             {% if Product.stock_find %}
  1720.                                 {# 規格 #}
  1721.                                 {% if form.classcategory_id1 is defined or Product.product_type=='set'%}
  1722.                                     <ul id=\"detail_cart_box__cart_class_category_id\" class=\"classcategory_list\">
  1723.                                         {% if Product.product_type != 'set' %}
  1724.                                             {% if app.user.school.size_recommend_flag %}
  1725.                                                 {% if RecommendSize is defined and RecommendSize %}
  1726.                                                     <li class=\"rec_size\">
  1727.                                  \t\t\t\t\t\t<p>自分のサイズ:{{ Place[RecommendSize.RecommendX.recommend_xplace] }}…{{ x }}/{{ Place[RecommendSize.RecommendY.recommend_yplace] }}…{{ y }}</p>
  1728.                                  \t\t\t\t\t\t<p class=\"result\">貴方へのオススメサイズは<br><span>{{ RecommendSize.recommend_notation }}</span>です</p>
  1729.                                  \t\t\t\t\t\t<p class=\"kome\">こちらはサイズをオススメさせて頂く機能となります。<br>サイズ、数量のご入力はお客様ご自身で行ってください。</p>
  1730.                                                     </li>
  1731.                                                 {% elseif Product.Recommend is not null %}
  1732.                                                     <li>「採寸データが正しく登録されていないため、サイズのオススメができません。<br/>
  1733.                                                         <span><a href=\"{{ url('mypage_change_saisun') }}\" target=\"_blank\">オススメサイズが知りたい</a></span>
  1734.                                                     </li>
  1735.                                                 {% endif %}
  1736.                                             {% endif %}
  1737.                                         {% endif %}
  1738.                                         {# 規格1 #}
  1739.                                         {% if Product.product_type != 'set' %}
  1740.                                             <li>
  1741.                                             {% set break = false %}
  1742.                                             {% if form.classcategory_id1 is defined %}
  1743.                                                 {{ form_widget(form.classcategory_id1) }}
  1744.                                                 {{ form_errors(form.classcategory_id1) }}
  1745.                                             {% endif %}
  1746.                                             </li>
  1747.                                             {# 規格2 #}
  1748.                                             {% if form.classcategory_id2 is defined %}
  1749.                                                 <li>
  1750.                                                     {{ form_widget(form.classcategory_id2) }}
  1751.                                                     {{ form_errors(form.classcategory_id2) }}
  1752.                                                 </li>
  1753.                                             {% endif %}
  1754.                                         {% else %}
  1755.                                             <li class=\"setproduct_size\">
  1756.                                             {% for pis in ProductInSet %}
  1757.                                                 <div class=\"setproduct_item\" data-product-id=\"{{ pis.id }}\">
  1758.                                                     <p>{{ pis.name }}</p>
  1759.                                                     {% set category2_count = 0 %}
  1760.                                                     {% set class_category1 = [] %}
  1761.                                                     {% if pis.getProductClasses|length > 1 %}
  1762.                                                         <select class=\"form-control setproduct_size1\" required>
  1763.                                                             <option value=\"__unselected\">{{'common.select'|trans}}</option>
  1764.                                                             {% for ps in pis.getProductClasses %}
  1765.                                                                 {% if ps.ClassCategory1 is not null and ps.visible and ps.ClassCategory1.id not in class_category1 %}
  1766.                                                                 <option value=\"{{ps.ClassCategory1.id}}\">{{ps.ClassCategory1.name}}</option>
  1767.                                                                 {% set class_category1 = class_category1|merge({ (loop.index0): ps.ClassCategory1.id }) %}
  1768.                                                                 {% endif %}
  1769.                                                                 {% if ps.ClassCategory2 is not null%}
  1770.                                                                 {% set category2_count = category2_count + 1 %}
  1771.                                                                 {% endif %}
  1772.                                                             {% endfor %}
  1773.                                                         </select>
  1774.                                                     {% endif %}
  1775.                                                     {% if category2_count != 0 %}
  1776.                                                     {# 規格2 #}
  1777.                                                     <select class=\"form-control setproduct_size2\" required>
  1778.                                                         <option value=\"__unselected\">{{'common.select'|trans}}</option>
  1779.                                                     </select>
  1780.                                                     {% endif %}
  1781.                                                     <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 : ''}}\">
  1782.                                                 </div>
  1783.                                             {% endfor %}
  1784.                                             </li>
  1785.                                         {% endif %}
  1786.                                     </ul>
  1787.                                 {% endif %}
  1788.                                 {# 数量 #}
  1789.                                 <dl id=\"detail_cart_box__cart_quantity\" class=\"quantity\">
  1790.                                     <dt>数量</dt>
  1791.                                     <dd>
  1792.                                         {{ form_widget(form.quantity) }}
  1793.                                         {{ form_errors(form.quantity) }}
  1794.                                         {% if app.user.school.isBrotherEnabled %}
  1795.                                             {{ form_widget(form.brother) }}
  1796.                                             {{ form_errors(form.brother) }}
  1797.                                         {% endif %}
  1798.                                     </dd>
  1799.                                 </dl>
  1800.                                 <div class=\"extra-form\">
  1801.                                     {% for f in form.getIterator %}
  1802.                                         {% if f.vars.name matches '[^plg*]' %}
  1803.                                             {{ form_row(f) }}
  1804.                                         {% endif %}
  1805.                                     {% endfor %}
  1806.                                 </div>
  1807.                                 {# カートボタン #}
  1808.                                 <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
  1809.                                     <ul id=\"detail_cart_box__insert_button\" class=\"row\">
  1810.                                         <li class=\"col-xs-12 col-sm-8\">
  1811.                                             <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>
  1812.                                         </li>
  1813.                                     </ul>
  1814.                                 </div> {# End div#detail_cart_box__button_area #}
  1815.                             {% else %}
  1816.                                 {# 在庫がない場合は品切れボタンを表示 #}
  1817.                                 <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
  1818.                                     <ul class=\"row\">
  1819.                                         <li class=\"col-xs-12 col-sm-8\">
  1820.                                             <button type=\"button\" class=\"ec-blockBtn--action def_button4 zero\" disabled=\"disabled\">{{ 'front.product.out_of_stock'|trans }}</button>
  1821.                                             {% if Product.product_classes[0].stock_date %}
  1822.                                             <p>{{ Product.product_classes[0].stock_date|date('Y年m月d日') }}入荷予定</p>
  1823.                                             {% endif %}
  1824.                                         </li>
  1825.                                     </ul>
  1826.                                 </div> {# End div#detail_cart_box__button_area #}
  1827.                             {% endif %} {# End stock find #}
  1828.                         </div>
  1829.                         <!--▲買い物かご-->
  1830.                         {{ form_rest(form) }}
  1831.                     </form>
  1832.                     {% if BaseInfo.option_favorite_product %}
  1833.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\" id=\"add_favorite_form\">
  1834.                             <div class=\"btn_area\">
  1835.                                 <ul id=\"detail_cart_box__favorite_button\" class=\"row\">
  1836.                                     {% if is_favorite == false %}
  1837.                                         <li class=\"col-xs-12 col-sm-8\">
  1838.                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5\">{{ 'front.product.add_favorite'|trans }}</button>
  1839.                                         </li>
  1840.                                     {% else %}
  1841.                                         <li class=\"col-xs-12 col-sm-8\">
  1842.                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel def_button5 ck\" disabled=\"disabled\">{{ 'front.product.add_favorite_alrady'|trans }}</button>
  1843.                                         </li>
  1844.                                     {% endif %}
  1845.                                 </ul>
  1846.                             </div>
  1847.                         </form>
  1848.                     {% endif %}
  1849.                 </div>
  1850.                 <!-- /.item_detail -->
  1851.             </section>
  1852.             <!--詳細ここまで-->
  1853.         {% endif %}
  1854.         </div>
  1855.         {# フリーエリア #}
  1856.         {% if Product.freearea %}
  1857.             <div id=\"sub_area\" class=\"row\">
  1858.                 <div class=\"col-sm-10 col-sm-offset-1\">
  1859.                     <div id=\"detail_free_box__freearea\" class=\"freearea\">{{ include(template_from_string(Product.freearea)) }}</div>
  1860.                 </div>
  1861.             </div>
  1862.         {% endif %}
  1863.     </div>
  1864.     <!-- ▲item_detail▲ -->
  1865. {% endblock %}""Product/detail.twig""/home/nmhata01/nmhata01.xsrv.jp/public_html/app/template/unishop/Product/detail.twig");
  1866.     }
  1867.     
  1868.     public function checkSecurity()
  1869.     {
  1870.         static $tags = array("set" => 24"if" => 51"for" => 223"include" => 409);
  1871.         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);
  1872.         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);
  1873.         try {
  1874.             $this->sandbox->checkSecurity(
  1875.                 ['set''if''for''include'],
  1876.                 ['raw''json_encode''escape''trans''no_image_product''slice''replace''default''length''price''date''merge'],
  1877.                 ['class_categories_as_json''url''asset''is_granted''date''form_widget''form_errors''form_row''form_rest''include''template_from_string']
  1878.             );
  1879.         } catch (SecurityError $e) {
  1880.             $e->setSourceContext($this->source);
  1881.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1882.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1883.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1884.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1885.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1886.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1887.             }
  1888.             throw $e;
  1889.         }
  1890.     }
  1891. }