var/cache/dev/twig/26/260555a54ea03cc81c1c2e2a6b6236f8.php line 211

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. /* __string_template__272a5b5f8c8f1e96e3339b9d6d061917 */
  14. class __TwigTemplate_78629633387ab202d274c6f550d2b318 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.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__272a5b5f8c8f1e96e3339b9d6d061917"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__272a5b5f8c8f1e96e3339b9d6d061917"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__272a5b5f8c8f1e96e3339b9d6d061917"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 15
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 18
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  78.             // line 19
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse19), "js"), "html"nulltrue);
  81.             echo "\": ";
  82.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  83.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse19) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 20
  87.             echo "            ";
  88.             ++$context['loop']['index0'];
  89.             ++$context['loop']['index'];
  90.             $context['loop']['first'] = false;
  91.             if (isset($context['loop']['length'])) {
  92.                 --$context['loop']['revindex0'];
  93.                 --$context['loop']['revindex'];
  94.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  95.             }
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 21
  101.         echo "        };
  102.         \$(function() {
  103.             // 表示件数を変更
  104.             \$('.disp-number').change(function() {
  105.                 var dispNumber = \$(this).val();
  106.                 \$('#disp_number').val(dispNumber);
  107.                 \$('#pageno').val(1);
  108.                 \$(\"#form1\").submit();
  109.             });
  110.             // 並び順を変更
  111.             \$('.order-by').change(function() {
  112.                 var orderBy = \$(this).val();
  113.                 \$('#orderby').val(orderBy);
  114.                 \$('#pageno').val(1);
  115.                 \$(\"#form1\").submit();
  116.             });
  117.             \$('.add-cart').on('click', function(e) {
  118.                 var \$form = \$(this).parents('li').find('form');
  119.                 // 個数フォームのチェック
  120.                 var \$quantity = \$form.parent().find('.quantity');
  121.                 if (\$quantity.val() < 1) {
  122.                     \$quantity[0].setCustomValidity('";
  123.         // line 47
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  125.         echo "');
  126.                     setTimeout(function() {
  127.                         loadingOverlay('hide');
  128.                     }, 100);
  129.                     return true;
  130.                 } else {
  131.                     \$quantity[0].setCustomValidity('');
  132.                 }
  133.                 e.preventDefault();
  134.                 \$.ajax({
  135.                     url: \$form.attr('action'),
  136.                     type: \$form.attr('method'),
  137.                     data: \$form.serialize(),
  138.                     dataType: 'json',
  139.                     beforeSend: function(xhr, settings) {
  140.                         // Buttonを無効にする
  141.                         \$('.add-cart').prop('disabled', true);
  142.                     }
  143.                 }).done(function(data) {
  144.                     // レスポンス内のメッセージをalertで表示
  145.                     \$.each(data.messages, function() {
  146.                         \$('#ec-modal-header').text(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 75
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  154.         echo "',
  155.                         type: 'GET',
  156.                         dataType: 'html'
  157.                     }).done(function(html) {
  158.                         \$('.ec-headerRole__cart').html(html);
  159.                     });
  160.                 }).fail(function(data) {
  161.                     alert('";
  162.         // line 82
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165.                 }).always(function(data) {
  166.                     // Buttonを有効にする
  167.                     \$('.add-cart').prop('disabled', false);
  168.                 });
  169.             });
  170.         });
  171.         \$('.ec-modal-wrap').on('click', function(e) {
  172.             // モーダル内の処理は外側にバブリングさせない
  173.             e.stopPropagation();
  174.         });
  175.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  176.             \$('.ec-modal').hide()
  177.         });
  178.     </script>
  179. ";
  180.         
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.     }
  185.     // line 100
  186.     public function block_main($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         // line 101
  194.         echo "    ";
  195.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'101$this->source); })()), "category_id", [], "any"falsefalsefalse101), "vars", [], "any"falsefalsefalse101), "errors", [], "any"falsefalsefalse101)) > 0)) {
  196.             // line 102
  197.             echo "        <div class=\"ec-searchnavRole\">
  198.             <p class=\"errormsg text-danger\">";
  199.             // line 103
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  201.             echo "</p>
  202.         </div>
  203.     ";
  204.         } else {
  205.             // line 106
  206.             echo "        <div class=\"ec-searchnavRole\">
  207.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  208.                 ";
  209.             // line 108
  210.             $context['_parent'] = $context;
  211.             $context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'108$this->source); })()));
  212.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  213.                 // line 109
  214.                 echo "                    <input type=\"hidden\" id=\"";
  215.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse109), "id", [], "any"falsefalsefalse109), "html"nulltrue);
  216.                 echo "\"
  217.                            name=\"";
  218.                 // line 110
  219.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse110), "full_name", [], "any"falsefalsefalse110), "html"nulltrue);
  220.                 echo "\"
  221.                            ";
  222.                 // line 111
  223.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse111), "value", [], "any"falsefalsefalse111))) {
  224.                     echo "value=\"";
  225.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse111), "value", [], "any"falsefalsefalse111), "html"nulltrue);
  226.                     echo "\" ";
  227.                 }
  228.                 echo "/>
  229.                 ";
  230.             }
  231.             $_parent $context['_parent'];
  232.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  233.             $context array_intersect_key($context$_parent) + $_parent;
  234.             // line 113
  235.             echo "            </form>
  236.             <div class=\"ec-searchnavRole__topicpath\">
  237.                 <ol class=\"ec-topicpath\">
  238.                     <li class=\"ec-topicpath__item\"><a href=\"";
  239.             // line 116
  240.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  241.             echo "\">";
  242.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  243.             echo "</a>
  244.                     </li>
  245.                     ";
  246.             // line 118
  247.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'118$this->source); })()))) {
  248.                 // line 119
  249.                 echo "                        ";
  250.                 $context['_parent'] = $context;
  251.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'119$this->source); })()), "path", [], "any"falsefalsefalse119));
  252.                 $context['loop'] = [
  253.                   'parent' => $context['_parent'],
  254.                   'index0' => 0,
  255.                   'index'  => 1,
  256.                   'first'  => true,
  257.                 ];
  258.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  259.                     $length count($context['_seq']);
  260.                     $context['loop']['revindex0'] = $length 1;
  261.                     $context['loop']['revindex'] = $length;
  262.                     $context['loop']['length'] = $length;
  263.                     $context['loop']['last'] = === $length;
  264.                 }
  265.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  266.                     // line 120
  267.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  268.                             <li class=\"ec-topicpath__item";
  269.                     // line 121
  270.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse121)) {
  271.                         echo "--active";
  272.                     }
  273.                     echo "\"><a
  274.                                         href=\"";
  275.                     // line 122
  276.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  277.                     echo "?category_id=";
  278.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse122), "html"nulltrue);
  279.                     echo "\">";
  280.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse122), "html"nulltrue);
  281.                     echo "</a>
  282.                             </li>
  283.                         ";
  284.                     ++$context['loop']['index0'];
  285.                     ++$context['loop']['index'];
  286.                     $context['loop']['first'] = false;
  287.                     if (isset($context['loop']['length'])) {
  288.                         --$context['loop']['revindex0'];
  289.                         --$context['loop']['revindex'];
  290.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  291.                     }
  292.                 }
  293.                 $_parent $context['_parent'];
  294.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  295.                 $context array_intersect_key($context$_parent) + $_parent;
  296.                 // line 125
  297.                 echo "                    ";
  298.             }
  299.             // line 126
  300.             echo "                    ";
  301.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'126$this->source); })()), "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'126$this->source); })()), "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126), "name", [], "any"falsefalsefalse126))) {
  302.                 // line 127
  303.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  304.                         <li class=\"ec-topicpath__item\">";
  305.                 // line 128
  306.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」の検索結果", ["%name%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'128$this->source); })()), "vars", [], "any"falsefalsefalse128), "value", [], "any"falsefalsefalse128), "name", [], "any"falsefalsefalse128)]), "html"nulltrue);
  307.                 echo "</li>
  308.                     ";
  309.             }
  310.             // line 130
  311.             echo "                </ol>
  312.             </div>
  313.             <div class=\"ec-searchnavRole__infos\">
  314.                 <div class=\"ec-searchnavRole__counter\">
  315.                     ";
  316.             // line 134
  317.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'134$this->source); })()), "totalItemCount", [], "any"falsefalsefalse134) > 0)) {
  318.                 // line 135
  319.                 echo "                        ";
  320.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'135$this->source); })()), "totalItemCount", [], "any"falsefalsefalse135)]);
  321.                 echo "
  322.                     ";
  323.             } else {
  324.                 // line 137
  325.                 echo "                        <span>";
  326.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  327.                 echo "</span>
  328.                     ";
  329.             }
  330.             // line 139
  331.             echo "                </div>
  332.                 ";
  333.             // line 140
  334.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'140$this->source); })()), "totalItemCount", [], "any"falsefalsefalse140) > 0)) {
  335.                 // line 141
  336.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  337.                         <div class=\"ec-select\">
  338.                             ";
  339.                 // line 143
  340.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'143$this->source); })()), "disp_number", [], "any"falsefalsefalse143), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  341.                 echo "
  342.                             ";
  343.                 // line 144
  344.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'144$this->source); })()), "orderby", [], "any"falsefalsefalse144), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  345.                 echo "
  346.                         </div>
  347.                     </div>
  348.                 ";
  349.             }
  350.             // line 148
  351.             echo "            </div>
  352.         </div>
  353.         ";
  354.             // line 150
  355.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'150$this->source); })()), "totalItemCount", [], "any"falsefalsefalse150) > 0)) {
  356.                 // line 151
  357.                 echo "            <div class=\"ec-shelfRole\">
  358.                 <ul class=\"ec-shelfGrid\">
  359.                     ";
  360.                 // line 153
  361.                 $context['_parent'] = $context;
  362.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'153$this->source); })()));
  363.                 $context['loop'] = [
  364.                   'parent' => $context['_parent'],
  365.                   'index0' => 0,
  366.                   'index'  => 1,
  367.                   'first'  => true,
  368.                 ];
  369.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  370.                     $length count($context['_seq']);
  371.                     $context['loop']['revindex0'] = $length 1;
  372.                     $context['loop']['revindex'] = $length;
  373.                     $context['loop']['length'] = $length;
  374.                     $context['loop']['last'] = === $length;
  375.                 }
  376.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  377.                     // line 154
  378.                     echo "                        <li class=\"ec-shelfGrid__item\">
  379.                             ";
  380.                     // line 155
  381.                     echo twig_include($this->env$context"@DesignTag42/tag_list.twig", array(), truetrue);
  382.                     echo "
  383.                             <a href=\"";
  384.                     // line 156
  385.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse156)]), "html"nulltrue);
  386.                     echo "\">
  387.                                 <p class=\"ec-shelfGrid__item-image\">
  388.                                     <img src=\"";
  389.                     // line 158
  390.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse158)), "save_image"), "html"nulltrue);
  391.                     echo "\" alt=\"";
  392.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse158), "html"nulltrue);
  393.                     echo "\" ";
  394.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse158) > 5)) {
  395.                         echo " loading=\"lazy\"";
  396.                     }
  397.                     echo ">
  398.                                 </p>
  399.                                 <p>";
  400.                     // line 160
  401.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse160), "html"nulltrue);
  402.                     echo "</p>
  403.                                 ";
  404.                     // line 161
  405.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse161)) {
  406.                         // line 162
  407.                         echo "                                    <p>";
  408.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse162));
  409.                         echo "</p>
  410.                                 ";
  411.                     }
  412.                     // line 164
  413.                     echo "                                <p class=\"price02-default\">
  414.                                     ";
  415.                     // line 165
  416.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse165)) {
  417.                         // line 166
  418.                         echo "                                        ";
  419.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse166) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse166))) {
  420.                             // line 167
  421.                             echo "                                            ";
  422.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse167)), "html"nulltrue);
  423.                             echo "
  424.                                         ";
  425.                         } else {
  426.                             // line 169
  427.                             echo "                                            ";
  428.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse169)), "html"nulltrue);
  429.                             echo " ~ ";
  430.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse169)), "html"nulltrue);
  431.                             echo "
  432.                                         ";
  433.                         }
  434.                         // line 171
  435.                         echo "                                    ";
  436.                     } else {
  437.                         // line 172
  438.                         echo "                                        ";
  439.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse172)), "html"nulltrue);
  440.                         echo "
  441.                                     ";
  442.                     }
  443.                     // line 174
  444.                     echo "                                </p>
  445.                             </a>
  446.                             ";
  447.                     // line 177
  448.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse177)) {
  449.                         // line 178
  450.                         echo "                                ";
  451.                         $context["form"] = twig_get_attribute($this->env$this->source, (isset($context["forms"]) || array_key_exists("forms"$context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.'178$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse178), [], "array"falsefalsefalse178);
  452.                         // line 179
  453.                         echo "                                <form name=\"form";
  454.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse179), "html"nulltrue);
  455.                         echo "\" id=\"productForm";
  456.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse179), "html"nulltrue);
  457.                         echo "\" action=\"";
  458.                         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$context["Product"], "id", [], "any"falsefalsefalse179)]), "html"nulltrue);
  459.                         echo "\" method=\"post\">
  460.                                     <div class=\"ec-productRole__actions\">
  461.                                         ";
  462.                         // line 181
  463.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse181)) {
  464.                             // line 182
  465.                             echo "                                            <div class=\"ec-select\">
  466.                                                 ";
  467.                             // line 183
  468.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'183$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse183), 'widget');
  469.                             echo "
  470.                                                 ";
  471.                             // line 184
  472.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'184$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse184), 'errors');
  473.                             echo "
  474.                                             </div>
  475.                                             ";
  476.                             // line 186
  477.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse186)) {
  478.                                 // line 187
  479.                                 echo "                                                <div class=\"ec-select\">
  480.                                                     ";
  481.                                 // line 188
  482.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'188$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse188), 'widget');
  483.                                 echo "
  484.                                                     ";
  485.                                 // line 189
  486.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'189$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse189), 'errors');
  487.                                 echo "
  488.                                                 </div>
  489.                                             ";
  490.                             }
  491.                             // line 192
  492.                             echo "                                        ";
  493.                         }
  494.                         // line 193
  495.                         echo "                                        ";
  496.                         echo twig_include($this->env$context"Product/option.twig");
  497.                         echo "<div class=\"ec-numberInput\"><span>";
  498.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  499.                         echo "</span>
  500. ";
  501.                         // line 199
  502.                         echo "                                            <div class=\"ec-select\">
  503.                                                 ";
  504.                         // line 200
  505.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'200$this->source); })()), "quantity", [], "any"falsefalsefalse200), 'widget', ["attr" => ["class" => "quantity"]]);
  506.                         echo "
  507.                                                 ";
  508.                         // line 201
  509.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'201$this->source); })()), "quantity", [], "any"falsefalsefalse201), 'errors');
  510.                         echo "
  511.                                             </div>
  512. ";
  513.                         // line 204
  514.                         echo "                                        </div>
  515.                                     </div>
  516.                                     ";
  517.                         // line 206
  518.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'206$this->source); })()), 'rest');
  519.                         echo "
  520.                                 </form>
  521.                                 <div class=\"ec-productRole__btn\">
  522.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  523.                         // line 209
  524.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse209), "html"nulltrue);
  525.                         echo "\" form=\"productForm";
  526.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse209), "html"nulltrue);
  527.                         echo "\">
  528.                                         <i class=\"fas fa-shopping-cart\"></i>
  529.                                         ";
  530.                         // line 211
  531.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  532.                         echo "
  533.                                     </button>
  534.                                 </div>
  535.                             ";
  536.                     } else {
  537.                         // line 215
  538.                         echo "                                <div class=\"ec-productRole__btn\">
  539.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  540.                                         ";
  541.                         // line 217
  542.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  543.                         echo "
  544.                                     </button>
  545.                                 </div>
  546.                             ";
  547.                     }
  548.                     // line 221
  549.                     echo "                        </li>
  550.                     ";
  551.                     ++$context['loop']['index0'];
  552.                     ++$context['loop']['index'];
  553.                     $context['loop']['first'] = false;
  554.                     if (isset($context['loop']['length'])) {
  555.                         --$context['loop']['revindex0'];
  556.                         --$context['loop']['revindex'];
  557.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  558.                     }
  559.                 }
  560.                 $_parent $context['_parent'];
  561.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  562.                 $context array_intersect_key($context$_parent) + $_parent;
  563.                 // line 223
  564.                 echo "                </ul>
  565.             </div>
  566.             ";
  567.                 // line 225
  568.                 echo twig_include($this->env$context"Product/option_description.twig");
  569.                 echo "<div class=\"ec-modal\">
  570.                 <div class=\"ec-modal-overlay\">
  571.                     <div class=\"ec-modal-wrap\">
  572.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  573.                 // line 228
  574.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  575.                 echo "\" alt=\"\"/></span></span>
  576.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  577.                 // line 229
  578.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  579.                 echo "</div>
  580.                         <div class=\"ec-modal-box\">
  581.                             <div class=\"ec-role\">
  582.                                 <span class=\"ec-inlineBtn--cancel\">";
  583.                 // line 232
  584.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  585.                 echo "</span>
  586.                                 <a href=\"";
  587.                 // line 233
  588.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  589.                 echo "\" class=\"ec-inlineBtn--action\">";
  590.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  591.                 echo "</a>
  592.                             </div>
  593.                         </div>
  594.                     </div>
  595.                 </div>
  596.             </div>
  597.             <div class=\"ec-pagerRole\">
  598.                 ";
  599.                 // line 240
  600.                 $this->loadTemplate("pager.twig""__string_template__272a5b5f8c8f1e96e3339b9d6d061917"240)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'240$this->source); })()), "paginationData", [], "any"falsefalsefalse240)]));
  601.                 // line 241
  602.                 echo "            </div>
  603.         ";
  604.             }
  605.             // line 243
  606.             echo "    ";
  607.         }
  608.         
  609.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  610.         
  611.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  612.     }
  613.     public function getTemplateName()
  614.     {
  615.         return "__string_template__272a5b5f8c8f1e96e3339b9d6d061917";
  616.     }
  617.     public function isTraitable()
  618.     {
  619.         return false;
  620.     }
  621.     public function getDebugInfo()
  622.     {
  623.         return array (  634 => 243,  630 => 241,  628 => 240,  616 => 233,  612 => 232,  606 => 229,  602 => 228,  596 => 225,  592 => 223,  577 => 221,  570 => 217,  566 => 215,  559 => 211,  552 => 209,  546 => 206,  542 => 204,  537 => 201,  533 => 200,  530 => 199,  523 => 193,  520 => 192,  514 => 189,  510 => 188,  507 => 187,  505 => 186,  500 => 184,  496 => 183,  493 => 182,  491 => 181,  481 => 179,  478 => 178,  476 => 177,  471 => 174,  465 => 172,  462 => 171,  454 => 169,  448 => 167,  445 => 166,  443 => 165,  440 => 164,  434 => 162,  432 => 161,  428 => 160,  417 => 158,  412 => 156,  408 => 155,  405 => 154,  388 => 153,  384 => 151,  382 => 150,  378 => 148,  371 => 144,  367 => 143,  363 => 141,  361 => 140,  358 => 139,  352 => 137,  346 => 135,  344 => 134,  338 => 130,  333 => 128,  330 => 127,  327 => 126,  324 => 125,  303 => 122,  297 => 121,  294 => 120,  276 => 119,  274 => 118,  267 => 116,  262 => 113,  250 => 111,  246 => 110,  241 => 109,  237 => 108,  233 => 106,  227 => 103,  224 => 102,  221 => 101,  211 => 100,  184 => 82,  174 => 75,  143 => 47,  115 => 21,  101 => 20,  93 => 19,  76 => 18,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  624.     }
  625.     public function getSourceContext()
  626.     {
  627.         return new Source("{#
  628. This file is part of EC-CUBE
  629. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  630. http://www.ec-cube.co.jp/
  631. For the full copyright and license information, please view the LICENSE
  632. file that was distributed with this source code.
  633. #}
  634. {% extends 'default_frame.twig' %}
  635. {% set body_class = 'product_page' %}
  636. {% block javascript %}
  637.     <script>
  638.         eccube.productsClassCategories = {
  639.             {% for Product in pagination %}
  640.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  641.             {% endfor %}
  642.         };
  643.         \$(function() {
  644.             // 表示件数を変更
  645.             \$('.disp-number').change(function() {
  646.                 var dispNumber = \$(this).val();
  647.                 \$('#disp_number').val(dispNumber);
  648.                 \$('#pageno').val(1);
  649.                 \$(\"#form1\").submit();
  650.             });
  651.             // 並び順を変更
  652.             \$('.order-by').change(function() {
  653.                 var orderBy = \$(this).val();
  654.                 \$('#orderby').val(orderBy);
  655.                 \$('#pageno').val(1);
  656.                 \$(\"#form1\").submit();
  657.             });
  658.             \$('.add-cart').on('click', function(e) {
  659.                 var \$form = \$(this).parents('li').find('form');
  660.                 // 個数フォームのチェック
  661.                 var \$quantity = \$form.parent().find('.quantity');
  662.                 if (\$quantity.val() < 1) {
  663.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  664.                     setTimeout(function() {
  665.                         loadingOverlay('hide');
  666.                     }, 100);
  667.                     return true;
  668.                 } else {
  669.                     \$quantity[0].setCustomValidity('');
  670.                 }
  671.                 e.preventDefault();
  672.                 \$.ajax({
  673.                     url: \$form.attr('action'),
  674.                     type: \$form.attr('method'),
  675.                     data: \$form.serialize(),
  676.                     dataType: 'json',
  677.                     beforeSend: function(xhr, settings) {
  678.                         // Buttonを無効にする
  679.                         \$('.add-cart').prop('disabled', true);
  680.                     }
  681.                 }).done(function(data) {
  682.                     // レスポンス内のメッセージをalertで表示
  683.                     \$.each(data.messages, function() {
  684.                         \$('#ec-modal-header').text(this);
  685.                     });
  686.                     \$('.ec-modal').show()
  687.                     // カートブロックを更新する
  688.                     \$.ajax({
  689.                         url: '{{ url('block_cart') }}',
  690.                         type: 'GET',
  691.                         dataType: 'html'
  692.                     }).done(function(html) {
  693.                         \$('.ec-headerRole__cart').html(html);
  694.                     });
  695.                 }).fail(function(data) {
  696.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  697.                 }).always(function(data) {
  698.                     // Buttonを有効にする
  699.                     \$('.add-cart').prop('disabled', false);
  700.                 });
  701.             });
  702.         });
  703.         \$('.ec-modal-wrap').on('click', function(e) {
  704.             // モーダル内の処理は外側にバブリングさせない
  705.             e.stopPropagation();
  706.         });
  707.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  708.             \$('.ec-modal').hide()
  709.         });
  710.     </script>
  711. {% endblock %}
  712. {% block main %}
  713.     {% if search_form.category_id.vars.errors|length > 0 %}
  714.         <div class=\"ec-searchnavRole\">
  715.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  716.         </div>
  717.     {% else %}
  718.         <div class=\"ec-searchnavRole\">
  719.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  720.                 {% for item in search_form %}
  721.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  722.                            name=\"{{ item.vars.full_name }}\"
  723.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  724.                 {% endfor %}
  725.             </form>
  726.             <div class=\"ec-searchnavRole__topicpath\">
  727.                 <ol class=\"ec-topicpath\">
  728.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  729.                     </li>
  730.                     {% if Category is not null %}
  731.                         {% for Path in Category.path %}
  732.                             <li class=\"ec-topicpath__divider\">|</li>
  733.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  734.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  735.                             </li>
  736.                         {% endfor %}
  737.                     {% endif %}
  738.                     {% if search_form.vars.value and search_form.vars.value.name %}
  739.                         <li class=\"ec-topicpath__divider\">|</li>
  740.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  741.                     {% endif %}
  742.                 </ol>
  743.             </div>
  744.             <div class=\"ec-searchnavRole__infos\">
  745.                 <div class=\"ec-searchnavRole__counter\">
  746.                     {% if pagination.totalItemCount > 0 %}
  747.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  748.                     {% else %}
  749.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  750.                     {% endif %}
  751.                 </div>
  752.                 {% if pagination.totalItemCount > 0 %}
  753.                     <div class=\"ec-searchnavRole__actions\">
  754.                         <div class=\"ec-select\">
  755.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  756.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  757.                         </div>
  758.                     </div>
  759.                 {% endif %}
  760.             </div>
  761.         </div>
  762.         {% if pagination.totalItemCount > 0 %}
  763.             <div class=\"ec-shelfRole\">
  764.                 <ul class=\"ec-shelfGrid\">
  765.                     {% for Product in pagination %}
  766.                         <li class=\"ec-shelfGrid__item\">
  767.                             {{ include('@DesignTag42/tag_list.twig', ignore_missing = true) }}
  768.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  769.                                 <p class=\"ec-shelfGrid__item-image\">
  770.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  771.                                 </p>
  772.                                 <p>{{ Product.name }}</p>
  773.                                 {% if Product.description_list %}
  774.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  775.                                 {% endif %}
  776.                                 <p class=\"price02-default\">
  777.                                     {% if Product.hasProductClass %}
  778.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  779.                                             {{ Product.getPrice02IncTaxMin|price }}
  780.                                         {% else %}
  781.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  782.                                         {% endif %}
  783.                                     {% else %}
  784.                                         {{ Product.getPrice02IncTaxMin|price }}
  785.                                     {% endif %}
  786.                                 </p>
  787.                             </a>
  788.                             {% if Product.stock_find %}
  789.                                 {% set form = forms[Product.id] %}
  790.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  791.                                     <div class=\"ec-productRole__actions\">
  792.                                         {% if form.classcategory_id1 is defined %}
  793.                                             <div class=\"ec-select\">
  794.                                                 {{ form_widget(form.classcategory_id1) }}
  795.                                                 {{ form_errors(form.classcategory_id1) }}
  796.                                             </div>
  797.                                             {% if form.classcategory_id2 is defined %}
  798.                                                 <div class=\"ec-select\">
  799.                                                     {{ form_widget(form.classcategory_id2) }}
  800.                                                     {{ form_errors(form.classcategory_id2) }}
  801.                                                 </div>
  802.                                             {% endif %}
  803.                                         {% endif %}
  804.                                         {{ include('Product/option.twig') }}<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  805. {#▼RZ 2023.07.10 ADD 数量プルダウンプラグイン用▼#}
  806. {#
  807.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  808.                                             {{ form_errors(form.quantity) }}
  809. #}
  810.                                             <div class=\"ec-select\">
  811.                                                 {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  812.                                                 {{ form_errors(form.quantity) }}
  813.                                             </div>
  814. {#▲RZ 2023.07.10 ADD 数量プルダウンプラグイン用▲#}
  815.                                         </div>
  816.                                     </div>
  817.                                     {{ form_rest(form) }}
  818.                                 </form>
  819.                                 <div class=\"ec-productRole__btn\">
  820.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  821.                                         <i class=\"fas fa-shopping-cart\"></i>
  822.                                         {{ 'カートに入れる'|trans }}
  823.                                     </button>
  824.                                 </div>
  825.                             {% else %}
  826.                                 <div class=\"ec-productRole__btn\">
  827.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  828.                                         {{ 'ただいま品切れ中です。'|trans }}
  829.                                     </button>
  830.                                 </div>
  831.                             {% endif %}
  832.                         </li>
  833.                     {% endfor %}
  834.                 </ul>
  835.             </div>
  836.             {{ include('Product/option_description.twig') }}<div class=\"ec-modal\">
  837.                 <div class=\"ec-modal-overlay\">
  838.                     <div class=\"ec-modal-wrap\">
  839.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  840.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  841.                         <div class=\"ec-modal-box\">
  842.                             <div class=\"ec-role\">
  843.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  844.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  845.                             </div>
  846.                         </div>
  847.                     </div>
  848.                 </div>
  849.             </div>
  850.             <div class=\"ec-pagerRole\">
  851.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  852.             </div>
  853.         {% endif %}
  854.     {% endif %}
  855. {% endblock %}""__string_template__272a5b5f8c8f1e96e3339b9d6d061917""");
  856.     }
  857. }