var/cache/dev/twig/54/5429e5f7965dc5bba07a4e02a8ca599e.php line 39

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/list.twig */
  14. class __TwigTemplate_febfa4bd95697502fb00789f6e9da17f 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""Product/list.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"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 "                    
  379.                         <li class=\"ec-shelfGrid__item\">
  380.                             <a href=\"";
  381.                     // line 156
  382.                     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);
  383.                     echo "\">
  384.                                 <p class=\"ec-shelfGrid__item-image\">
  385.                                     <img src=\"";
  386.                     // line 158
  387.                     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);
  388.                     echo "\" alt=\"";
  389.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse158), "html"nulltrue);
  390.                     echo "\" ";
  391.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse158) > 5)) {
  392.                         echo " loading=\"lazy\"";
  393.                     }
  394.                     echo ">
  395.                                 </p>
  396.                                 <p>";
  397.                     // line 160
  398.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse160), "html"nulltrue);
  399.                     echo "</p>
  400.                                 ";
  401.                     // line 161
  402.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse161)) {
  403.                         // line 162
  404.                         echo "                                    <p>";
  405.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse162));
  406.                         echo "</p>
  407.                                 ";
  408.                     }
  409.                     // line 164
  410.                     echo "                                <p class=\"price02-default\">
  411.                                     ";
  412.                     // line 165
  413.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse165)) {
  414.                         // line 166
  415.                         echo "                                        ";
  416.                         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))) {
  417.                             // line 167
  418.                             echo "                                            ";
  419.                             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);
  420.                             echo "
  421.                                         ";
  422.                         } else {
  423.                             // line 169
  424.                             echo "                                            ";
  425.                             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);
  426.                             echo " ~ ";
  427.                             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);
  428.                             echo "
  429.                                         ";
  430.                         }
  431.                         // line 171
  432.                         echo "                                    ";
  433.                     } else {
  434.                         // line 172
  435.                         echo "                                        ";
  436.                         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);
  437.                         echo "
  438.                                     ";
  439.                     }
  440.                     // line 174
  441.                     echo "                                </p>
  442.                             </a>
  443.                             ";
  444.                     // line 177
  445.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse177)) {
  446.                         // line 178
  447.                         echo "                                ";
  448.                         $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);
  449.                         // line 179
  450.                         echo "                                <form name=\"form";
  451.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse179), "html"nulltrue);
  452.                         echo "\" id=\"productForm";
  453.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse179), "html"nulltrue);
  454.                         echo "\" action=\"";
  455.                         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);
  456.                         echo "\" method=\"post\">
  457.                                     <div class=\"ec-productRole__actions\">
  458.                                         ";
  459.                         // line 181
  460.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse181)) {
  461.                             // line 182
  462.                             echo "                                            <div class=\"ec-select\">
  463.                                                 ";
  464.                             // line 183
  465.                             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');
  466.                             echo "
  467.                                                 ";
  468.                             // line 184
  469.                             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');
  470.                             echo "
  471.                                             </div>
  472.                                             ";
  473.                             // line 186
  474.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse186)) {
  475.                                 // line 187
  476.                                 echo "                                                <div class=\"ec-select\">
  477.                                                     ";
  478.                                 // line 188
  479.                                 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');
  480.                                 echo "
  481.                                                     ";
  482.                                 // line 189
  483.                                 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');
  484.                                 echo "
  485.                                                 </div>
  486.                                             ";
  487.                             }
  488.                             // line 192
  489.                             echo "                                        ";
  490.                         }
  491.                         // line 193
  492.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  493.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  494.                         echo "</span>
  495.                                             ";
  496.                         // line 194
  497.                         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.'194$this->source); })()), "quantity", [], "any"falsefalsefalse194), 'widget', ["attr" => ["class" => "quantity"]]);
  498.                         echo "
  499.                                             ";
  500.                         // line 195
  501.                         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.'195$this->source); })()), "quantity", [], "any"falsefalsefalse195), 'errors');
  502.                         echo "
  503.                                         </div>
  504.                                     </div>
  505.                                     ";
  506.                         // line 198
  507.                         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.'198$this->source); })()), 'rest');
  508.                         echo "
  509.                                 </form>
  510.                                 <div class=\"ec-productRole__btn\">
  511.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  512.                         // line 201
  513.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse201), "html"nulltrue);
  514.                         echo "\" form=\"productForm";
  515.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse201), "html"nulltrue);
  516.                         echo "\">
  517.                                         ";
  518.                         // line 202
  519.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  520.                         echo "
  521.                                     </button>
  522.                                 </div>
  523.                             ";
  524.                     } else {
  525.                         // line 206
  526.                         echo "                                <div class=\"ec-productRole__btn\">
  527.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  528.                                         ";
  529.                         // line 208
  530.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  531.                         echo "
  532.                                     </button>
  533.                                 </div>
  534.                             ";
  535.                     }
  536.                     // line 212
  537.                     echo "                        </li>
  538.                     ";
  539.                     ++$context['loop']['index0'];
  540.                     ++$context['loop']['index'];
  541.                     $context['loop']['first'] = false;
  542.                     if (isset($context['loop']['length'])) {
  543.                         --$context['loop']['revindex0'];
  544.                         --$context['loop']['revindex'];
  545.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  546.                     }
  547.                 }
  548.                 $_parent $context['_parent'];
  549.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  550.                 $context array_intersect_key($context$_parent) + $_parent;
  551.                 // line 214
  552.                 echo "                </ul>
  553.             </div>
  554.             <div class=\"ec-modal\">
  555.                 <div class=\"ec-modal-overlay\">
  556.                     <div class=\"ec-modal-wrap\">
  557.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  558.                 // line 219
  559.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  560.                 echo "\" alt=\"\"/></span></span>
  561.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  562.                 // line 220
  563.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  564.                 echo "</div>
  565.                         <div class=\"ec-modal-box\">
  566.                             <div class=\"ec-role\">
  567.                                 <span class=\"ec-inlineBtn--cancel\">";
  568.                 // line 223
  569.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  570.                 echo "</span>
  571.                                 <a href=\"";
  572.                 // line 224
  573.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  574.                 echo "\" class=\"ec-inlineBtn--action\">";
  575.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  576.                 echo "</a>
  577.                             </div>
  578.                         </div>
  579.                     </div>
  580.                 </div>
  581.             </div>
  582.             <div class=\"ec-pagerRole\">
  583.                 ";
  584.                 // line 231
  585.                 $this->loadTemplate("pager.twig""Product/list.twig"231)->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.'231$this->source); })()), "paginationData", [], "any"falsefalsefalse231)]));
  586.                 // line 232
  587.                 echo "            </div>
  588.         ";
  589.             }
  590.             // line 234
  591.             echo "    ";
  592.         }
  593.         
  594.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  595.         
  596.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  597.     }
  598.     public function getTemplateName()
  599.     {
  600.         return "Product/list.twig";
  601.     }
  602.     public function isTraitable()
  603.     {
  604.         return false;
  605.     }
  606.     public function getDebugInfo()
  607.     {
  608.         return array (  619 => 234,  615 => 232,  613 => 231,  601 => 224,  597 => 223,  591 => 220,  587 => 219,  580 => 214,  565 => 212,  558 => 208,  554 => 206,  547 => 202,  541 => 201,  535 => 198,  529 => 195,  525 => 194,  520 => 193,  517 => 192,  511 => 189,  507 => 188,  504 => 187,  502 => 186,  497 => 184,  493 => 183,  490 => 182,  488 => 181,  478 => 179,  475 => 178,  473 => 177,  468 => 174,  462 => 172,  459 => 171,  451 => 169,  445 => 167,  442 => 166,  440 => 165,  437 => 164,  431 => 162,  429 => 161,  425 => 160,  414 => 158,  409 => 156,  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,);
  609.     }
  610.     public function getSourceContext()
  611.     {
  612.         return new Source("{#
  613. This file is part of EC-CUBE
  614. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  615. http://www.ec-cube.co.jp/
  616. For the full copyright and license information, please view the LICENSE
  617. file that was distributed with this source code.
  618. #}
  619. {% extends 'default_frame.twig' %}
  620. {% set body_class = 'product_page' %}
  621. {% block javascript %}
  622.     <script>
  623.         eccube.productsClassCategories = {
  624.             {% for Product in pagination %}
  625.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  626.             {% endfor %}
  627.         };
  628.         \$(function() {
  629.             // 表示件数を変更
  630.             \$('.disp-number').change(function() {
  631.                 var dispNumber = \$(this).val();
  632.                 \$('#disp_number').val(dispNumber);
  633.                 \$('#pageno').val(1);
  634.                 \$(\"#form1\").submit();
  635.             });
  636.             // 並び順を変更
  637.             \$('.order-by').change(function() {
  638.                 var orderBy = \$(this).val();
  639.                 \$('#orderby').val(orderBy);
  640.                 \$('#pageno').val(1);
  641.                 \$(\"#form1\").submit();
  642.             });
  643.             \$('.add-cart').on('click', function(e) {
  644.                 var \$form = \$(this).parents('li').find('form');
  645.                 // 個数フォームのチェック
  646.                 var \$quantity = \$form.parent().find('.quantity');
  647.                 if (\$quantity.val() < 1) {
  648.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  649.                     setTimeout(function() {
  650.                         loadingOverlay('hide');
  651.                     }, 100);
  652.                     return true;
  653.                 } else {
  654.                     \$quantity[0].setCustomValidity('');
  655.                 }
  656.                 e.preventDefault();
  657.                 \$.ajax({
  658.                     url: \$form.attr('action'),
  659.                     type: \$form.attr('method'),
  660.                     data: \$form.serialize(),
  661.                     dataType: 'json',
  662.                     beforeSend: function(xhr, settings) {
  663.                         // Buttonを無効にする
  664.                         \$('.add-cart').prop('disabled', true);
  665.                     }
  666.                 }).done(function(data) {
  667.                     // レスポンス内のメッセージをalertで表示
  668.                     \$.each(data.messages, function() {
  669.                         \$('#ec-modal-header').text(this);
  670.                     });
  671.                     \$('.ec-modal').show()
  672.                     // カートブロックを更新する
  673.                     \$.ajax({
  674.                         url: '{{ url('block_cart') }}',
  675.                         type: 'GET',
  676.                         dataType: 'html'
  677.                     }).done(function(html) {
  678.                         \$('.ec-headerRole__cart').html(html);
  679.                     });
  680.                 }).fail(function(data) {
  681.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  682.                 }).always(function(data) {
  683.                     // Buttonを有効にする
  684.                     \$('.add-cart').prop('disabled', false);
  685.                 });
  686.             });
  687.         });
  688.         \$('.ec-modal-wrap').on('click', function(e) {
  689.             // モーダル内の処理は外側にバブリングさせない
  690.             e.stopPropagation();
  691.         });
  692.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  693.             \$('.ec-modal').hide()
  694.         });
  695.     </script>
  696. {% endblock %}
  697. {% block main %}
  698.     {% if search_form.category_id.vars.errors|length > 0 %}
  699.         <div class=\"ec-searchnavRole\">
  700.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  701.         </div>
  702.     {% else %}
  703.         <div class=\"ec-searchnavRole\">
  704.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  705.                 {% for item in search_form %}
  706.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  707.                            name=\"{{ item.vars.full_name }}\"
  708.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  709.                 {% endfor %}
  710.             </form>
  711.             <div class=\"ec-searchnavRole__topicpath\">
  712.                 <ol class=\"ec-topicpath\">
  713.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  714.                     </li>
  715.                     {% if Category is not null %}
  716.                         {% for Path in Category.path %}
  717.                             <li class=\"ec-topicpath__divider\">|</li>
  718.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  719.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  720.                             </li>
  721.                         {% endfor %}
  722.                     {% endif %}
  723.                     {% if search_form.vars.value and search_form.vars.value.name %}
  724.                         <li class=\"ec-topicpath__divider\">|</li>
  725.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  726.                     {% endif %}
  727.                 </ol>
  728.             </div>
  729.             <div class=\"ec-searchnavRole__infos\">
  730.                 <div class=\"ec-searchnavRole__counter\">
  731.                     {% if pagination.totalItemCount > 0 %}
  732.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  733.                     {% else %}
  734.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  735.                     {% endif %}
  736.                 </div>
  737.                 {% if pagination.totalItemCount > 0 %}
  738.                     <div class=\"ec-searchnavRole__actions\">
  739.                         <div class=\"ec-select\">
  740.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  741.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  742.                         </div>
  743.                     </div>
  744.                 {% endif %}
  745.             </div>
  746.         </div>
  747.         {% if pagination.totalItemCount > 0 %}
  748.             <div class=\"ec-shelfRole\">
  749.                 <ul class=\"ec-shelfGrid\">
  750.                     {% for Product in pagination %}
  751.                     
  752.                         <li class=\"ec-shelfGrid__item\">
  753.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  754.                                 <p class=\"ec-shelfGrid__item-image\">
  755.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  756.                                 </p>
  757.                                 <p>{{ Product.name }}</p>
  758.                                 {% if Product.description_list %}
  759.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  760.                                 {% endif %}
  761.                                 <p class=\"price02-default\">
  762.                                     {% if Product.hasProductClass %}
  763.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  764.                                             {{ Product.getPrice02IncTaxMin|price }}
  765.                                         {% else %}
  766.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  767.                                         {% endif %}
  768.                                     {% else %}
  769.                                         {{ Product.getPrice02IncTaxMin|price }}
  770.                                     {% endif %}
  771.                                 </p>
  772.                             </a>
  773.                             {% if Product.stock_find %}
  774.                                 {% set form = forms[Product.id] %}
  775.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  776.                                     <div class=\"ec-productRole__actions\">
  777.                                         {% if form.classcategory_id1 is defined %}
  778.                                             <div class=\"ec-select\">
  779.                                                 {{ form_widget(form.classcategory_id1) }}
  780.                                                 {{ form_errors(form.classcategory_id1) }}
  781.                                             </div>
  782.                                             {% if form.classcategory_id2 is defined %}
  783.                                                 <div class=\"ec-select\">
  784.                                                     {{ form_widget(form.classcategory_id2) }}
  785.                                                     {{ form_errors(form.classcategory_id2) }}
  786.                                                 </div>
  787.                                             {% endif %}
  788.                                         {% endif %}
  789.                                         <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  790.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  791.                                             {{ form_errors(form.quantity) }}
  792.                                         </div>
  793.                                     </div>
  794.                                     {{ form_rest(form) }}
  795.                                 </form>
  796.                                 <div class=\"ec-productRole__btn\">
  797.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  798.                                         {{ 'カートに入れる'|trans }}
  799.                                     </button>
  800.                                 </div>
  801.                             {% else %}
  802.                                 <div class=\"ec-productRole__btn\">
  803.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  804.                                         {{ 'ただいま品切れ中です。'|trans }}
  805.                                     </button>
  806.                                 </div>
  807.                             {% endif %}
  808.                         </li>
  809.                     {% endfor %}
  810.                 </ul>
  811.             </div>
  812.             <div class=\"ec-modal\">
  813.                 <div class=\"ec-modal-overlay\">
  814.                     <div class=\"ec-modal-wrap\">
  815.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  816.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  817.                         <div class=\"ec-modal-box\">
  818.                             <div class=\"ec-role\">
  819.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  820.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  821.                             </div>
  822.                         </div>
  823.                     </div>
  824.                 </div>
  825.             </div>
  826.             <div class=\"ec-pagerRole\">
  827.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  828.             </div>
  829.         {% endif %}
  830.     {% endif %}
  831. {% endblock %}
  832. ""Product/list.twig""/home/fujitaka2024/fujitakatsusho.com/public_html/testshop.fujitakatsusho.com/app/template/default/Product/list.twig");
  833.     }
  834. }