var/cache/dev/twig/19/197e39228ff21e9b6899393c6b8f4ee1.php line 52

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. /* @SDream/Product/list.twig */
  14. class __TwigTemplate_4eaa23340cc35470523cf0741a003365 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""@SDream/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""@SDream/Product/list.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""@SDream/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. ";
  196.         // line 102
  197.         $context["current_category"] = null;
  198.         // line 103
  199.         echo "
  200. ";
  201.         // line 152
  202.         echo "
  203.     ";
  204.         // line 153
  205.         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.'153$this->source); })()), "category_id", [], "any"falsefalsefalse153), "vars", [], "any"falsefalsefalse153), "errors", [], "any"falsefalsefalse153)) > 0)) {
  206.             // line 154
  207.             echo "        <div class=\"ec-searchnavRole\">
  208.             <p class=\"errormsg text-danger\">";
  209.             // line 155
  210.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  211.             echo "</p>
  212.         </div>
  213.     ";
  214.         } else {
  215.             // line 158
  216.             echo "        <div class=\"ec-searchnavRole\">
  217.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  218.                 ";
  219.             // line 160
  220.             $context['_parent'] = $context;
  221.             $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.'160$this->source); })()));
  222.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  223.                 // line 161
  224.                 echo "                    <input type=\"hidden\" id=\"";
  225.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse161), "id", [], "any"falsefalsefalse161), "html"nulltrue);
  226.                 echo "\"
  227.                            name=\"";
  228.                 // line 162
  229.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse162), "full_name", [], "any"falsefalsefalse162), "html"nulltrue);
  230.                 echo "\"
  231.                            ";
  232.                 // line 163
  233.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse163), "value", [], "any"falsefalsefalse163))) {
  234.                     echo "value=\"";
  235.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse163), "value", [], "any"falsefalsefalse163), "html"nulltrue);
  236.                     echo "\" ";
  237.                 }
  238.                 echo "/>
  239.                 ";
  240.             }
  241.             $_parent $context['_parent'];
  242.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  243.             $context array_intersect_key($context$_parent) + $_parent;
  244.             // line 165
  245.             echo "            </form>
  246. <div class=\"catimgself\">
  247.     ";
  248.             // line 168
  249.             if (( !twig_test_empty((isset($context["CategorySelf"]) || array_key_exists("CategorySelf"$context) ? $context["CategorySelf"] : (function () { throw new RuntimeError('Variable "CategorySelf" does not exist.'168$this->source); })())) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["CategorySelf"]) || array_key_exists("CategorySelf"$context) ? $context["CategorySelf"] : (function () { throw new RuntimeError('Variable "CategorySelf" does not exist.'168$this->source); })()), "category_picfilename", [], "any"falsefalsefalse168)))) {
  250.                 // line 169
  251.                 echo "        <img src=\"";
  252.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source, (isset($context["CategorySelf"]) || array_key_exists("CategorySelf"$context) ? $context["CategorySelf"] : (function () { throw new RuntimeError('Variable "CategorySelf" does not exist.'169$this->source); })()), "category_picfilename", [], "any"falsefalsefalse169)), "html"nulltrue);
  253.                 echo "\" alt=\"";
  254.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["CategorySelf"]) || array_key_exists("CategorySelf"$context) ? $context["CategorySelf"] : (function () { throw new RuntimeError('Variable "CategorySelf" does not exist.'169$this->source); })()), "category_picalt", [], "any"falsefalsefalse169), "html"nulltrue);
  255.                 echo "\" />
  256.     ";
  257.             }
  258.             // line 171
  259.             echo "    <div class=\"catimgchild-container\">
  260.         ";
  261.             // line 172
  262.             if ( !twig_test_empty((isset($context["CategoryList"]) || array_key_exists("CategoryList"$context) ? $context["CategoryList"] : (function () { throw new RuntimeError('Variable "CategoryList" does not exist.'172$this->source); })()))) {
  263.                 // line 173
  264.                 echo "            ";
  265.                 $context['_parent'] = $context;
  266.                 $context['_seq'] = twig_ensure_traversable((isset($context["CategoryList"]) || array_key_exists("CategoryList"$context) ? $context["CategoryList"] : (function () { throw new RuntimeError('Variable "CategoryList" does not exist.'173$this->source); })()));
  267.                 foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
  268.                     // line 174
  269.                     echo "                ";
  270.                     if ((( !twig_test_empty($context["cat"]) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["cat"], "category_minipicfilename", [], "any"falsefalsefalse174))) && (twig_test_empty(twig_get_attribute($this->env$this->source$context["cat"], "category_enable", [], "any"falsefalsefalse174)) || (twig_get_attribute($this->env$this->source$context["cat"], "category_enable", [], "any"falsefalsefalse174) != "1")))) {
  271.                         // line 175
  272.                         echo "                    <div class=\"catimgchild\">
  273.                         <a href=\"";
  274.                         // line 176
  275.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  276.                         echo "?category_id=";
  277.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "id", [], "any"falsefalsefalse176), "html"nulltrue);
  278.                         echo "\">
  279.                             <img src=\"";
  280.                         // line 177
  281.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["cat"], "category_minipicfilename", [], "any"falsefalsefalse177)), "html"nulltrue);
  282.                         echo "\" alt=\"";
  283.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "category_picalt", [], "any"falsefalsefalse177), "html"nulltrue);
  284.                         echo "\"  />
  285.                         </a>
  286.                     </div>
  287.                 ";
  288.                     }
  289.                     // line 181
  290.                     echo "            ";
  291.                 }
  292.                 $_parent $context['_parent'];
  293.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
  294.                 $context array_intersect_key($context$_parent) + $_parent;
  295.                 // line 182
  296.                 echo "        ";
  297.             }
  298.             // line 183
  299.             echo "    </div>
  300. </div>
  301. <style>
  302. .catimgself {
  303.     display: flex;
  304.     flex-direction: column;
  305.     align-items: center;
  306. }
  307. .catimgself img {
  308.     max-width: 100%;
  309.     height: auto;
  310. }
  311. .catimgchild-container {
  312.     display: flex;
  313.     flex-wrap: wrap;
  314.     justify-content: space-between;
  315.     margin: 0; /* 親コンテナのマージンをリセット */
  316. }
  317. .catimgchild {
  318.     flex: 1 0 33.33%; /* 子要素を3列に分けるために幅を調整 */
  319.     max-width: 33.33%; /* 子要素の最大幅を設定 */
  320.     text-align: center;
  321.     margin: 0; /* 子要素間の間隔をなくす */
  322.     box-sizing: border-box; /* パディングとボーダーを含めて要素のサイズを計算 */
  323. }
  324. .catimgchild img {
  325.     width: 100%;
  326.     height: auto;
  327. }
  328. </style>
  329.             ";
  330.             // line 275
  331.             echo "
  332.             <div class=\"ec-searchnavRole__topicpath\">
  333.                 <ol class=\"ec-topicpath\">
  334.                     <li class=\"ec-topicpath__item\"><a href=\"";
  335.             // line 278
  336.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  337.             echo "\">";
  338.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  339.             echo "</a>
  340.                     </li>
  341.                     ";
  342.             // line 280
  343.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'280$this->source); })()))) {
  344.                 // line 281
  345.                 echo "
  346.                         ";
  347.                 // line 282
  348.                 $context['_parent'] = $context;
  349.                 $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.'282$this->source); })()), "path", [], "any"falsefalsefalse282));
  350.                 $context['loop'] = [
  351.                   'parent' => $context['_parent'],
  352.                   'index0' => 0,
  353.                   'index'  => 1,
  354.                   'first'  => true,
  355.                 ];
  356.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  357.                     $length count($context['_seq']);
  358.                     $context['loop']['revindex0'] = $length 1;
  359.                     $context['loop']['revindex'] = $length;
  360.                     $context['loop']['length'] = $length;
  361.                     $context['loop']['last'] = === $length;
  362.                 }
  363.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  364.                     // line 283
  365.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  366.                             
  367.                             
  368.                                 <li class=\"ec-topicpath__item";
  369.                     // line 286
  370.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse286)) {
  371.                         echo "--active";
  372.                     }
  373.                     echo "\">
  374.                                     <a href=\"";
  375.                     // line 287
  376.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  377.                     echo "?category_id=";
  378.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse287), "html"nulltrue);
  379.                     echo "\">";
  380.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse287), "html"nulltrue);
  381.                     echo "</a>
  382.                                     ";
  383.                     // line 289
  384.                     if ((twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse289) == "産地で選ぶ")) {
  385.                         // line 290
  386.                         echo "                                        |<a href=\"/products/list?category_id=76\">北海道</a>
  387.                                         |<a href=\"/products/list?category_id=77\">東北</a>
  388.                                         |<a href=\"/products/list?category_id=78\">関東</a>
  389.                                         |<a href=\"/products/list?category_id=79\">信越</a>
  390.                                         |<a href=\"/products/list?category_id=81\">北陸</a>
  391.                                         |<a href=\"/products/list?category_id=80\">中部</a>
  392.                                         |<a href=\"/products/list?category_id=83\">西日本</a>
  393.                                         |<a href=\"/products/list?category_id=86\">国内</a>
  394.                                     ";
  395.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 298
  396. $context["Path"], "name", [], "any"falsefalsefalse298) == "銘柄で選ぶ")) {
  397.                         // line 299
  398.                         echo "                                        |<a href=\"/products/list?category_id=66\">コシヒカリ</a>
  399.                                         |<a href=\"/products/list?category_id=67\">ひとめぼれ</a>
  400.                                         |<a href=\"/products/list?category_id=68\">あきたこまち</a>
  401.                                         |<a href=\"/products/list?category_id=69\">各他の銘柄</a>
  402.                                         |<a href=\"/products/list?category_id=70\">逸品米</a>
  403.                                         |<a href=\"/products/list?category_id=71\">無洗米</a>
  404.                                     ";
  405.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 305
  406. $context["Path"], "name", [], "any"falsefalsefalse305) == "価格帯で選ぶ")) {
  407.                         // line 306
  408.                         echo "                                        |<a href=\"/products/list?category_id=41\">299円以下</a>
  409.                                         |<a href=\"/products/list?category_id=42\">239円以下</a>
  410.                                         |<a href=\"/products/list?category_id=43\">329円以上</a>
  411.                                     ";
  412.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 309
  413. $context["Path"], "name", [], "any"falsefalsefalse309) == "粒サイズで選ぶ")) {
  414.                         // line 310
  415.                         echo "                                        |<a href=\"/products/list?category_id=58\">通常</a>
  416.                                         |<a href=\"/products/list?category_id=59\">やや小粒</a>
  417.                                         |<a href=\"/products/list?category_id=60\">ブレンド</a>
  418.                                     ";
  419.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 313
  420. $context["Path"], "name", [], "any"falsefalsefalse313) == "ロットサイズで選ぶ")) {
  421.                         // line 314
  422.                         echo "                                        |<a href=\"/products/list?category_id=49\">小ロット</a>
  423.                                         <a href=\"/products/list?category_id=50\">業務用</a>
  424.                                         |<a href=\"/products/list?category_id=51\">大口割引</a>
  425.                                         |<a href=\"/products/list?category_id=52\">激安</a>
  426.                                     ";
  427.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 318
  428. $context["Path"], "name", [], "any"falsefalsefalse318) == "精米方法で選ぶ")) {
  429.                         // line 319
  430.                         echo "                                        |<a href=\"/products/list?category_id=116\">上白精米</a>
  431.                                         |<a href=\"/products/list?category_id=117\">精白米</a>
  432.                                         |<a href=\"/products/list?category_id=118\">玄米</a>
  433.                                     ";
  434.                     }
  435.                     // line 323
  436.                     echo "
  437.                                 </li>
  438.                         ";
  439.                     ++$context['loop']['index0'];
  440.                     ++$context['loop']['index'];
  441.                     $context['loop']['first'] = false;
  442.                     if (isset($context['loop']['length'])) {
  443.                         --$context['loop']['revindex0'];
  444.                         --$context['loop']['revindex'];
  445.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  446.                     }
  447.                 }
  448.                 $_parent $context['_parent'];
  449.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  450.                 $context array_intersect_key($context$_parent) + $_parent;
  451.                 // line 326
  452.                 echo "                    ";
  453.             }
  454.             // line 327
  455.             echo "                    ";
  456.             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.'327$this->source); })()), "vars", [], "any"falsefalsefalse327), "value", [], "any"falsefalsefalse327) && 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.'327$this->source); })()), "vars", [], "any"falsefalsefalse327), "value", [], "any"falsefalsefalse327), "name", [], "any"falsefalsefalse327))) {
  457.                 // line 328
  458.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  459.                         <li class=\"ec-topicpath__item\">";
  460.                 // line 329
  461.                 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.'329$this->source); })()), "vars", [], "any"falsefalsefalse329), "value", [], "any"falsefalsefalse329), "name", [], "any"falsefalsefalse329)]), "html"nulltrue);
  462.                 echo "</li>
  463.                     ";
  464.             }
  465.             // line 331
  466.             echo "                </ol>
  467.             </div>
  468.             <div class=\"ec-searchnavRole__infos\">
  469.                 <div class=\"ec-searchnavRole__counter\">
  470.                     ";
  471.             // line 335
  472.             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.'335$this->source); })()), "totalItemCount", [], "any"falsefalsefalse335) > 0)) {
  473.                 // line 336
  474.                 echo "                        ";
  475.                 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.'336$this->source); })()), "totalItemCount", [], "any"falsefalsefalse336)]);
  476.                 echo "
  477.                     ";
  478.             } else {
  479.                 // line 338
  480.                 echo "                        <span>";
  481.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  482.                 echo "</span>
  483.                     ";
  484.             }
  485.             // line 340
  486.             echo "                </div>
  487.                 ";
  488.             // line 341
  489.             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.'341$this->source); })()), "totalItemCount", [], "any"falsefalsefalse341) > 0)) {
  490.                 // line 342
  491.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  492.                         <div class=\"ec-select\">
  493.                             ";
  494.                 // line 344
  495.                 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.'344$this->source); })()), "disp_number", [], "any"falsefalsefalse344), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  496.                 echo "
  497.                             ";
  498.                 // line 345
  499.                 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.'345$this->source); })()), "orderby", [], "any"falsefalsefalse345), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  500.                 echo "
  501.                         </div>
  502.                     </div>
  503.                 ";
  504.             }
  505.             // line 349
  506.             echo "            </div>
  507.         </div>
  508.         <div id=\"flash-area\"></div>
  509.         ";
  510.             // line 352
  511.             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.'352$this->source); })()), "totalItemCount", [], "any"falsefalsefalse352) > 0)) {
  512.                 // line 353
  513.                 echo "            <div class=\"ec-shelfRole\">
  514.                 <ul class=\"ec-shelfGrid\">
  515.                     ";
  516.                 // line 355
  517.                 $context['_parent'] = $context;
  518.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'355$this->source); })()));
  519.                 $context['loop'] = [
  520.                   'parent' => $context['_parent'],
  521.                   'index0' => 0,
  522.                   'index'  => 1,
  523.                   'first'  => true,
  524.                 ];
  525.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  526.                     $length count($context['_seq']);
  527.                     $context['loop']['revindex0'] = $length 1;
  528.                     $context['loop']['revindex'] = $length;
  529.                     $context['loop']['length'] = $length;
  530.                     $context['loop']['last'] = === $length;
  531.                 }
  532.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  533.                     echo "                        
  534.                         ";
  535.                     // line 356
  536.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "limited_ids", [], "any"falsefalsefalse356) == "")) {
  537.                         // line 357
  538.                         echo "                            <li class=\"ec-shelfGrid__item\">
  539.                             <a href=\"";
  540.                         // line 358
  541.                         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"falsefalsefalse358)]), "html"nulltrue);
  542.                         echo "\">
  543.                                 <p class=\"ec-shelfGrid__item-image\">
  544. ";
  545.                         // line 361
  546.                         if ((twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'361$this->source); })()), "app_mode", [], "any"falsefalsefalse361) != "display")) {
  547.                             // line 362
  548.                             echo "    ";
  549.                             $context["image_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse362), "save_image");
  550.                         } elseif (twig_get_attribute($this->env$this->source,                         // line 363
  551. $context["Product"], "mainDisplayImage", [], "any"falsefalsefalse363)) {
  552.                             // line 364
  553.                             echo "    ";
  554.                             $context["image_url"] = (twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'364$this->source); })()), "img_folder", [], "any"falsefalsefalse364) . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "mainDisplayImage", [], "any"falsefalsefalse364), "fileName", [], "any"falsefalsefalse364));
  555.                         }
  556.                         // line 366
  557.                         echo "
  558. ";
  559.                         // line 367
  560.                         if (array_key_exists("image_url"$context)) {
  561.                             // line 368
  562.                             echo "    <img src=\"";
  563.                             echo twig_escape_filter($this->env, (isset($context["image_url"]) || array_key_exists("image_url"$context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.'368$this->source); })()), "html"nulltrue);
  564.                             echo "\" alt=\"";
  565.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse368), "html"nulltrue);
  566.                             echo "\" ";
  567.                             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse368) > 5)) {
  568.                                 echo "loading=\"lazy\"";
  569.                             }
  570.                             echo ">
  571. ";
  572.                         } else {
  573.                             // line 370
  574.                             echo "    <div class=\"ec-shelfGrid__item-noimage\">
  575.         ★画像準備中
  576.     </div>
  577. ";
  578.                         }
  579.                         // line 375
  580.                         echo "                                </p>
  581.                                 <p>";
  582.                         // line 376
  583.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse376), "html"nulltrue);
  584.                         echo "</p>
  585.                                 ";
  586.                         // line 377
  587.                         if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse377)) {
  588.                             // line 378
  589.                             echo "                                    <p>";
  590.                             echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse378));
  591.                             echo "</p>
  592.                                 ";
  593.                         }
  594.                         // line 380
  595.                         echo "                                <p class=\"price02-default\">
  596. ";
  597.                         // line 382
  598.                         if ((twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'382$this->source); })()), "app_mode", [], "any"falsefalsefalse382) != "display")) {
  599.                             // line 383
  600.                             echo "                                    ";
  601.                             if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse383)) {
  602.                                 // line 384
  603.                                 echo "                                        ";
  604.                                 if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse384) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse384))) {
  605.                                     // line 385
  606.                                     echo "                                            ";
  607.                                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse385)), "html"nulltrue);
  608.                                     echo "
  609.                                         ";
  610.                                 } else {
  611.                                     // line 387
  612.                                     echo "                                            ";
  613.                                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse387)), "html"nulltrue);
  614.                                     echo " ~ ";
  615.                                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse387)), "html"nulltrue);
  616.                                     echo "
  617.                                         ";
  618.                                 }
  619.                                 // line 389
  620.                                 echo "                                    ";
  621.                             } else {
  622.                                 // line 390
  623.                                 echo "                                        ";
  624.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse390)), "html"nulltrue);
  625.                                 echo "
  626.                                     ";
  627.                             }
  628.                         } else {
  629.                             // line 394
  630.                             echo "                                    ";
  631.                             if ((twig_get_attribute($this->env$this->source$context["Product"], "getPriceSellerInTaxMin", [], "any"falsefalsefalse394) == twig_get_attribute($this->env$this->source$context["Product"], "getPriceSellerInTaxMax", [], "any"falsefalsefalse394))) {
  632.                                 // line 395
  633.                                 echo "                                        ";
  634.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPriceSellerInTaxMin", [], "any"falsefalsefalse395)), "html"nulltrue);
  635.                                 echo "
  636.                                     ";
  637.                             } else {
  638.                                 // line 397
  639.                                 echo "                                        ";
  640.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPriceSellerInTaxMin", [], "any"falsefalsefalse397)), "html"nulltrue);
  641.                                 echo " ~ ";
  642.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPriceSellerInTaxMax", [], "any"falsefalsefalse397)), "html"nulltrue);
  643.                                 echo "
  644.                                     ";
  645.                             }
  646.                             // line 399
  647.                             echo "
  648. ";
  649.                         }
  650.                         // line 401
  651.                         echo "                                </p>
  652.                             </a>
  653. ";
  654.                         // line 404
  655.                         if ((twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'404$this->source); })()), "app_mode", [], "any"falsefalsefalse404) != "display")) {
  656.                             // line 405
  657.                             echo "                            ";
  658.                             if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse405)) {
  659.                                 // line 406
  660.                                 echo "
  661.                                 ";
  662.                                 // line 407
  663.                                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "locked_ids", [], "any"falsefalsefalse407))) {
  664.                                     echo "  
  665.                                     <br>                              
  666.                                     <button type=\"button\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  667.                                     // line 409
  668.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse409), "html"nulltrue);
  669.                                     echo "\" onclick=\"submitFormAndRedirect('";
  670.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse409), "html"nulltrue);
  671.                                     echo "', '";
  672.                                     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"falsefalsefalse409)]), "html"nulltrue);
  673.                                     echo "')\">
  674.                                         ";
  675.                                     // line 410
  676.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("詳細表示"), "html"nulltrue);
  677.                                     echo "
  678.                                     </button>
  679.                                     
  680.                                 ";
  681.                                 } else {
  682.                                     // line 414
  683.                                     echo "                                    ";
  684.                                     $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.'414$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse414), [], "array"falsefalsefalse414);
  685.                                     // line 415
  686.                                     echo "                                    <form name=\"form";
  687.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse415), "html"nulltrue);
  688.                                     echo "\" id=\"productForm";
  689.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse415), "html"nulltrue);
  690.                                     echo "\" action=\"";
  691.                                     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"falsefalsefalse415)]), "html"nulltrue);
  692.                                     echo "\" method=\"post\">
  693.                                         <div class=\"ec-productRole__actions\">
  694.                                             ";
  695.                                     // line 417
  696.                                     if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse417)) {
  697.                                         // line 418
  698.                                         echo "                                                <div class=\"ec-select\">
  699.                                                     ";
  700.                                         // line 419
  701.                                         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.'419$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse419), 'widget');
  702.                                         echo "
  703.                                                     ";
  704.                                         // line 420
  705.                                         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.'420$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse420), 'errors');
  706.                                         echo "
  707.                                                 </div>
  708.                                                 ";
  709.                                         // line 422
  710.                                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse422)) {
  711.                                             // line 423
  712.                                             echo "                                                    <div class=\"ec-select\">
  713.                                                         ";
  714.                                             // line 424
  715.                                             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.'424$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse424), 'widget');
  716.                                             echo "
  717.                                                         ";
  718.                                             // line 425
  719.                                             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.'425$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse425), 'errors');
  720.                                             echo "
  721.                                                     </div>
  722.                                                 ";
  723.                                         }
  724.                                         // line 428
  725.                                         echo "                                            ";
  726.                                     }
  727.                                     // line 429
  728.                                     echo "                                            <div class=\"ec-numberInput\"><span>";
  729.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  730.                                     echo "</span>
  731.                                                 ";
  732.                                     // line 430
  733.                                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'430$this->source); })()), "quantity", [], "any"falsefalsefalse430), 'widget', ["attr" => ["class" => "quantity"]]);
  734.                                     echo "
  735.                                                 ";
  736.                                     // line 431
  737.                                     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.'431$this->source); })()), "quantity", [], "any"falsefalsefalse431), 'errors');
  738.                                     echo "
  739.                                             </div>
  740.                                         </div>
  741.                                         ";
  742.                                     // line 434
  743.                                     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.'434$this->source); })()), 'rest');
  744.                                     echo "
  745.                                     </form>
  746.                                     <div class=\"ec-productRole__btn\">
  747.                                         
  748.                                         <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  749.                                     // line 438
  750.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse438), "html"nulltrue);
  751.                                     echo "\" form=\"productForm";
  752.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse438), "html"nulltrue);
  753.                                     echo "\">
  754.                                             ";
  755.                                     // line 439
  756.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  757.                                     echo "
  758.                                         </button>
  759.                                     </div>
  760.                                 ";
  761.                                 }
  762.                                 // line 445
  763.                                 echo "                            ";
  764.                             } else {
  765.                                 // line 446
  766.                                 echo "                                <div class=\"ec-productRole__btn\">
  767.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  768.                                         ";
  769.                                 // line 448
  770.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  771.                                 echo "
  772.                                     </button>
  773.                                 </div>
  774.                             ";
  775.                             }
  776.                         }
  777.                         // line 454
  778.                         echo "                            </li>
  779.                         ";
  780.                     }
  781.                     // line 456
  782.                     echo "                    ";
  783.                     ++$context['loop']['index0'];
  784.                     ++$context['loop']['index'];
  785.                     $context['loop']['first'] = false;
  786.                     if (isset($context['loop']['length'])) {
  787.                         --$context['loop']['revindex0'];
  788.                         --$context['loop']['revindex'];
  789.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  790.                     }
  791.                 }
  792.                 $_parent $context['_parent'];
  793.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  794.                 $context array_intersect_key($context$_parent) + $_parent;
  795.                 // line 457
  796.                 echo "                </ul>
  797.             </div>
  798.             <div class=\"ec-modal\">
  799.                 <div class=\"ec-modal-overlay\">
  800.                     <div class=\"ec-modal-wrap\">
  801.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  802.                 // line 462
  803.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  804.                 echo "\" alt=\"\"/></span></span>
  805.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  806.                 // line 463
  807.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  808.                 echo "</div>
  809.                         <div class=\"ec-modal-box\">
  810.                             <div class=\"ec-role\">
  811.                                 <span class=\"ec-inlineBtn--cancel\">";
  812.                 // line 466
  813.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  814.                 echo "</span>
  815.                                 <a href=\"";
  816.                 // line 467
  817.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  818.                 echo "\" class=\"ec-inlineBtn--action\">";
  819.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  820.                 echo "</a>
  821.                             </div>
  822.                         </div>
  823.                     </div>
  824.                 </div>
  825.             </div>
  826.             <div class=\"ec-pagerRole\">
  827.                 ";
  828.                 // line 474
  829.                 $this->loadTemplate("pager.twig""@SDream/Product/list.twig"474)->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.'474$this->source); })()), "paginationData", [], "any"falsefalsefalse474)]));
  830.                 // line 475
  831.                 echo "            </div>
  832.         ";
  833.             }
  834.             // line 477
  835.             echo "    ";
  836.         }
  837.         // line 478
  838.         echo "
  839. <style>
  840.     .selectedmenu {
  841.         height: 35px;
  842.         margin: 20px;
  843.         border: 0px solid;
  844.         background-color: #F0FFF0;
  845.         display: flex;
  846.         align-items: center;
  847.         justify-content: center; /* 水平方向にも中央揃えする場合 */
  848.         
  849.     }
  850.     .selectedmenu img {
  851.         /*height: 50%;*/
  852.     }
  853. </style>
  854. <script>
  855.     function submitFormAndRedirect(productId, url) {
  856.         window.location.href = url;
  857.     }
  858. </script>
  859. <style>
  860.     .custom-flash {
  861.         border: 2px solid #e60000;   /* 赤い枠 */
  862.         background-color: #ffe6e6;   /* 薄いピンク背景 */
  863.         color: #900;                 /* 赤系文字色 */
  864.         padding: 12px 16px;
  865.         border-radius: 4px;
  866.         margin-bottom: 10px;
  867.         font-weight: bold;
  868.     }
  869. </style>
  870. ";
  871.         
  872.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  873.         
  874.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  875.     }
  876.     public function getTemplateName()
  877.     {
  878.         return "@SDream/Product/list.twig";
  879.     }
  880.     public function isTraitable()
  881.     {
  882.         return false;
  883.     }
  884.     public function getDebugInfo()
  885.     {
  886.         return array (  880 => 478,  877 => 477,  873 => 475,  871 => 474,  859 => 467,  855 => 466,  849 => 463,  845 => 462,  838 => 457,  824 => 456,  820 => 454,  812 => 448,  808 => 446,  805 => 445,  796 => 439,  790 => 438,  783 => 434,  777 => 431,  773 => 430,  768 => 429,  765 => 428,  759 => 425,  755 => 424,  752 => 423,  750 => 422,  745 => 420,  741 => 419,  738 => 418,  736 => 417,  726 => 415,  723 => 414,  716 => 410,  708 => 409,  703 => 407,  700 => 406,  697 => 405,  695 => 404,  691 => 401,  687 => 399,  679 => 397,  673 => 395,  670 => 394,  663 => 390,  660 => 389,  652 => 387,  646 => 385,  643 => 384,  640 => 383,  638 => 382,  635 => 380,  629 => 378,  627 => 377,  623 => 376,  620 => 375,  614 => 370,  602 => 368,  600 => 367,  597 => 366,  593 => 364,  591 => 363,  588 => 362,  586 => 361,  581 => 358,  578 => 357,  576 => 356,  557 => 355,  553 => 353,  551 => 352,  546 => 349,  539 => 345,  535 => 344,  531 => 342,  529 => 341,  526 => 340,  520 => 338,  514 => 336,  512 => 335,  506 => 331,  501 => 329,  498 => 328,  495 => 327,  492 => 326,  476 => 323,  470 => 319,  468 => 318,  462 => 314,  460 => 313,  455 => 310,  453 => 309,  448 => 306,  446 => 305,  438 => 299,  436 => 298,  426 => 290,  424 => 289,  415 => 287,  409 => 286,  404 => 283,  387 => 282,  384 => 281,  382 => 280,  375 => 278,  370 => 275,  327 => 183,  324 => 182,  318 => 181,  309 => 177,  303 => 176,  300 => 175,  297 => 174,  292 => 173,  290 => 172,  287 => 171,  279 => 169,  277 => 168,  272 => 165,  260 => 163,  256 => 162,  251 => 161,  247 => 160,  243 => 158,  237 => 155,  234 => 154,  232 => 153,  229 => 152,  226 => 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,);
  887.     }
  888.     public function getSourceContext()
  889.     {
  890.         return new Source("{#
  891. This file is part of EC-CUBE
  892. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  893. http://www.ec-cube.co.jp/
  894. For the full copyright and license information, please view the LICENSE
  895. file that was distributed with this source code.
  896. #}
  897. {% extends 'default_frame.twig' %}
  898. {% set body_class = 'product_page' %}
  899. {% block javascript %}
  900.     <script>
  901.         eccube.productsClassCategories = {
  902.             {% for Product in pagination %}
  903.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  904.             {% endfor %}
  905.         };
  906.         \$(function() {
  907.             // 表示件数を変更
  908.             \$('.disp-number').change(function() {
  909.                 var dispNumber = \$(this).val();
  910.                 \$('#disp_number').val(dispNumber);
  911.                 \$('#pageno').val(1);
  912.                 \$(\"#form1\").submit();
  913.             });
  914.             // 並び順を変更
  915.             \$('.order-by').change(function() {
  916.                 var orderBy = \$(this).val();
  917.                 \$('#orderby').val(orderBy);
  918.                 \$('#pageno').val(1);
  919.                 \$(\"#form1\").submit();
  920.             });
  921.             \$('.add-cart').on('click', function(e) {
  922.                 var \$form = \$(this).parents('li').find('form');
  923.                 // 個数フォームのチェック
  924.                 var \$quantity = \$form.parent().find('.quantity');
  925.                 if (\$quantity.val() < 1) {
  926.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  927.                     setTimeout(function() {
  928.                         loadingOverlay('hide');
  929.                     }, 100);
  930.                     return true;
  931.                 } else {
  932.                     \$quantity[0].setCustomValidity('');
  933.                 }
  934.                 e.preventDefault();
  935.                 \$.ajax({
  936.                     url: \$form.attr('action'),
  937.                     type: \$form.attr('method'),
  938.                     data: \$form.serialize(),
  939.                     dataType: 'json',
  940.                     beforeSend: function(xhr, settings) {
  941.                         // Buttonを無効にする
  942.                         \$('.add-cart').prop('disabled', true);
  943.                     }
  944.                 }).done(function(data) {
  945.                     // レスポンス内のメッセージをalertで表示
  946.                     \$.each(data.messages, function() {
  947.                         \$('#ec-modal-header').text(this);
  948.                     });
  949.                     \$('.ec-modal').show()
  950.                     // カートブロックを更新する
  951.                     \$.ajax({
  952.                         url: '{{ url('block_cart') }}',
  953.                         type: 'GET',
  954.                         dataType: 'html'
  955.                     }).done(function(html) {
  956.                         \$('.ec-headerRole__cart').html(html);
  957.                     });
  958.                 }).fail(function(data) {
  959.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  960.                 }).always(function(data) {
  961.                     // Buttonを有効にする
  962.                     \$('.add-cart').prop('disabled', false);
  963.                 });
  964.             });
  965.         });
  966.         \$('.ec-modal-wrap').on('click', function(e) {
  967.             // モーダル内の処理は外側にバブリングさせない
  968.             e.stopPropagation();
  969.         });
  970.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  971.             \$('.ec-modal').hide()
  972.         });
  973.     </script>
  974. {% endblock %}
  975. {% block main %}
  976. {% set current_category = null %}
  977. {#
  978. <div>
  979. {{CategorySelf.id}} {{CategorySelf.name}} {{CategorySelf.category_picfilename}}
  980. {% for cat in CategoryList %}
  981.     <div class=\"catinfo\">
  982.         {{cat.id}} {{cat.name}} {{cat.category_picfilename}}
  983.     </div>
  984. {% endfor %}
  985. </div>
  986. #}
  987. {#
  988. カテゴリを一覧で一気に表示する
  989. {% if Category !=null and Category.id != null and Category.id == '21' %}
  990. <div>
  991.     {% for product in Category21Products %}
  992.         {% if current_category != product.category_name %}
  993.             {% set current_category = product.category_name %}
  994.             <div class=\"category-header\">
  995.                 <a href=\"{{ url('product_list') }}?category_id={{ product.category_id }}\">{{ current_category }}</a>
  996.             </div>
  997.         {% endif %}
  998.         <div class=\"product-item\">
  999.             ・<a href=\"{{ url('product_detail', {'id': product.product_id}) }}\">
  1000.                 {{ product.product_name }}
  1001.             </a>
  1002.         </div>
  1003.     {% endfor %}
  1004. </div>
  1005. {% endif %}
  1006. <style>
  1007.     .category-header {
  1008.         width: 100%;
  1009.         border: 1px solid #000; /* 線の色とスタイルを指定 */
  1010.         padding: 10px;          /* 内側の余白を指定 */
  1011.         box-sizing: border-box; /* ボックスのサイズを含む */
  1012.         background-color: #f8f8f8; /* 背景色を指定(任意) */
  1013.         font-weight: bold;      /* フォントを太字にする(任意) */
  1014.         margin-bottom: 10px;    /* 下部の余白を指定(任意) */
  1015.     }
  1016.     .product-item {
  1017.         margin-left: 20px;      /* 商品名を少しインデントする(任意) */
  1018.     }
  1019. </style>
  1020. #}
  1021.     {% if search_form.category_id.vars.errors|length > 0 %}
  1022.         <div class=\"ec-searchnavRole\">
  1023.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  1024.         </div>
  1025.     {% else %}
  1026.         <div class=\"ec-searchnavRole\">
  1027.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  1028.                 {% for item in search_form %}
  1029.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  1030.                            name=\"{{ item.vars.full_name }}\"
  1031.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  1032.                 {% endfor %}
  1033.             </form>
  1034. <div class=\"catimgself\">
  1035.     {% if CategorySelf is not empty and CategorySelf.category_picfilename is not empty %}
  1036.         <img src=\"{{ asset(CategorySelf.category_picfilename) }}\" alt=\"{{ CategorySelf.category_picalt }}\" />
  1037.     {% endif %}
  1038.     <div class=\"catimgchild-container\">
  1039.         {% if CategoryList is not empty %}
  1040.             {% for cat in CategoryList %}
  1041.                 {% if cat is not empty and cat.category_minipicfilename is not empty and (cat.category_enable is empty or cat.category_enable != '1') %}
  1042.                     <div class=\"catimgchild\">
  1043.                         <a href=\"{{ url('product_list') }}?category_id={{ cat.id }}\">
  1044.                             <img src=\"{{ asset(cat.category_minipicfilename) }}\" alt=\"{{ cat.category_picalt }}\"  />
  1045.                         </a>
  1046.                     </div>
  1047.                 {% endif %}
  1048.             {% endfor %}
  1049.         {% endif %}
  1050.     </div>
  1051. </div>
  1052. <style>
  1053. .catimgself {
  1054.     display: flex;
  1055.     flex-direction: column;
  1056.     align-items: center;
  1057. }
  1058. .catimgself img {
  1059.     max-width: 100%;
  1060.     height: auto;
  1061. }
  1062. .catimgchild-container {
  1063.     display: flex;
  1064.     flex-wrap: wrap;
  1065.     justify-content: space-between;
  1066.     margin: 0; /* 親コンテナのマージンをリセット */
  1067. }
  1068. .catimgchild {
  1069.     flex: 1 0 33.33%; /* 子要素を3列に分けるために幅を調整 */
  1070.     max-width: 33.33%; /* 子要素の最大幅を設定 */
  1071.     text-align: center;
  1072.     margin: 0; /* 子要素間の間隔をなくす */
  1073.     box-sizing: border-box; /* パディングとボーダーを含めて要素のサイズを計算 */
  1074. }
  1075. .catimgchild img {
  1076.     width: 100%;
  1077.     height: auto;
  1078. }
  1079. </style>
  1080.             {#
  1081.             {% if Category is not null %}
  1082.                 {% for Path in Category.path %}
  1083.                     {% if loop.last %}
  1084.                         {% if Path.id=='21' %}
  1085.                             <div class=\"selectedmenu\"><img src=\"{{ asset('/img/category/cornerbanner/21.jpg') }}\" /></div>
  1086.                         {% elseif Path.id=='22' %}
  1087.                             <div class=\"selectedmenu\"><img src=\"{{ asset('/img/category/cornerbanner/22.jpg') }}\" /></div>
  1088.                         {% elseif Path.id=='24' %}
  1089.                             <div class=\"selectedmenu\"><img src=\"{{ asset('/img/category/cornerbanner/24.jpg') }}\" /></div>   
  1090.                         {% elseif Path.id=='25' %}
  1091.                             <div class=\"selectedmenu\"><img src=\"{{ asset('/img/category/cornerbanner/25.jpg') }}\" /></div>      
  1092.                         {% elseif Path.id=='26' %}
  1093.                             <div class=\"selectedmenu\"><img src=\"{{ asset('/img/category/cornerbanner/26.jpg') }}\" /></div>       
  1094.                         {% elseif Path.id=='27' %}
  1095.                             <div class=\"selectedmenu\"><img src=\"{{ asset('/img/category/cornerbanner/27.jpg') }}\" /></div>                  
  1096.                         {% elseif Path.id=='28' %}
  1097.                             <div class=\"selectedmenu\"><img src=\"{{ asset('/img/category/cornerbanner/28.jpg') }}\" /></div>   
  1098.                         {% elseif Path.id=='76' or Path.id=='77' or Path.id=='78' or Path.id=='79' or Path.id=='81' or Path.id=='80' or Path.id=='83' or Path.id=='86' %}
  1099.                             <div class=\"selectedmenu\">「 お米の産地別 」を選択中</div>
  1100.                         {% elseif Path.id=='66' or Path.id=='67' or Path.id=='68' or Path.id=='69' or Path.id=='70' or Path.id=='71' %}
  1101.                             <div class=\"selectedmenu\">「 お米の銘柄別 」を選択中</div>
  1102.                         {% elseif Path.id=='41' or Path.id=='42' or Path.id=='43' %}
  1103.                             <div class=\"selectedmenu\">「 価格帯ごと 」を選択中</div>
  1104.                         {% elseif Path.id=='58' or Path.id=='59' or Path.id=='60' %}
  1105.                             <div class=\"selectedmenu\">「 粒サイズ 」を選択中</div>
  1106.                         {% elseif Path.id=='49' or Path.id=='50' or Path.id=='51' or Path.id=='52' %}
  1107.                             <div class=\"selectedmenu\">「 ロットサイズ 」を選択中</div>
  1108.                         {% elseif Path.id=='116' or Path.id=='117' or Path.id=='117' %}
  1109.                             <div class=\"selectedmenu\">「 精米レベル 」を選択中</div>
  1110.                         {% elseif Path.id=='10' %}
  1111.                             <div class=\"selectedmenu\">「 産直品コーナー 」を選択中</div>
  1112.                         {% elseif Path.id=='12' %}
  1113.                             <div class=\"selectedmenu\">「 産直 畜産品市場 」を選択中</div>
  1114.                         {% elseif Path.id=='13' %}
  1115.                             <div class=\"selectedmenu\">「 産直 水産市場 」を選択中</div>
  1116.                         {% elseif Path.id=='14' %}
  1117.                             <div class=\"selectedmenu\">「 産直 農産品市場 」を選択中</div>
  1118.                         {% elseif Path.id=='15' %}
  1119.                             <div class=\"selectedmenu\">「 産直 加工食品市場 」を選択中</div>
  1120.                         {% elseif Path.id=='19' %}
  1121.                             <div class=\"selectedmenu\">「 産直 訳アリB級品 」を選択中</div>
  1122.                         {% else %}
  1123.                             <div class=\"selectedmenu\">「 {{ Path.name }} 」を選択中</div>
  1124.                         {% endif %}
  1125.                     {% endif %}
  1126.                 {% endfor %}
  1127.             {% endif %}
  1128.             #}
  1129.             <div class=\"ec-searchnavRole__topicpath\">
  1130.                 <ol class=\"ec-topicpath\">
  1131.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  1132.                     </li>
  1133.                     {% if Category is not null %}
  1134.                         {% for Path in Category.path %}
  1135.                             <li class=\"ec-topicpath__divider\">|</li>
  1136.                             
  1137.                             
  1138.                                 <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\">
  1139.                                     <a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  1140.                                     {% if Path.name == '産地で選ぶ' %}
  1141.                                         |<a href=\"/products/list?category_id=76\">北海道</a>
  1142.                                         |<a href=\"/products/list?category_id=77\">東北</a>
  1143.                                         |<a href=\"/products/list?category_id=78\">関東</a>
  1144.                                         |<a href=\"/products/list?category_id=79\">信越</a>
  1145.                                         |<a href=\"/products/list?category_id=81\">北陸</a>
  1146.                                         |<a href=\"/products/list?category_id=80\">中部</a>
  1147.                                         |<a href=\"/products/list?category_id=83\">西日本</a>
  1148.                                         |<a href=\"/products/list?category_id=86\">国内</a>
  1149.                                     {% elseif Path.name == '銘柄で選ぶ' %}
  1150.                                         |<a href=\"/products/list?category_id=66\">コシヒカリ</a>
  1151.                                         |<a href=\"/products/list?category_id=67\">ひとめぼれ</a>
  1152.                                         |<a href=\"/products/list?category_id=68\">あきたこまち</a>
  1153.                                         |<a href=\"/products/list?category_id=69\">各他の銘柄</a>
  1154.                                         |<a href=\"/products/list?category_id=70\">逸品米</a>
  1155.                                         |<a href=\"/products/list?category_id=71\">無洗米</a>
  1156.                                     {% elseif Path.name == '価格帯で選ぶ' %}
  1157.                                         |<a href=\"/products/list?category_id=41\">299円以下</a>
  1158.                                         |<a href=\"/products/list?category_id=42\">239円以下</a>
  1159.                                         |<a href=\"/products/list?category_id=43\">329円以上</a>
  1160.                                     {% elseif Path.name == '粒サイズで選ぶ' %}
  1161.                                         |<a href=\"/products/list?category_id=58\">通常</a>
  1162.                                         |<a href=\"/products/list?category_id=59\">やや小粒</a>
  1163.                                         |<a href=\"/products/list?category_id=60\">ブレンド</a>
  1164.                                     {% elseif Path.name == 'ロットサイズで選ぶ' %}
  1165.                                         |<a href=\"/products/list?category_id=49\">小ロット</a>
  1166.                                         <a href=\"/products/list?category_id=50\">業務用</a>
  1167.                                         |<a href=\"/products/list?category_id=51\">大口割引</a>
  1168.                                         |<a href=\"/products/list?category_id=52\">激安</a>
  1169.                                     {% elseif Path.name == '精米方法で選ぶ' %}
  1170.                                         |<a href=\"/products/list?category_id=116\">上白精米</a>
  1171.                                         |<a href=\"/products/list?category_id=117\">精白米</a>
  1172.                                         |<a href=\"/products/list?category_id=118\">玄米</a>
  1173.                                     {% endif %}
  1174.                                 </li>
  1175.                         {% endfor %}
  1176.                     {% endif %}
  1177.                     {% if search_form.vars.value and search_form.vars.value.name %}
  1178.                         <li class=\"ec-topicpath__divider\">|</li>
  1179.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  1180.                     {% endif %}
  1181.                 </ol>
  1182.             </div>
  1183.             <div class=\"ec-searchnavRole__infos\">
  1184.                 <div class=\"ec-searchnavRole__counter\">
  1185.                     {% if pagination.totalItemCount > 0 %}
  1186.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  1187.                     {% else %}
  1188.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  1189.                     {% endif %}
  1190.                 </div>
  1191.                 {% if pagination.totalItemCount > 0 %}
  1192.                     <div class=\"ec-searchnavRole__actions\">
  1193.                         <div class=\"ec-select\">
  1194.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  1195.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  1196.                         </div>
  1197.                     </div>
  1198.                 {% endif %}
  1199.             </div>
  1200.         </div>
  1201.         <div id=\"flash-area\"></div>
  1202.         {% if pagination.totalItemCount > 0 %}
  1203.             <div class=\"ec-shelfRole\">
  1204.                 <ul class=\"ec-shelfGrid\">
  1205.                     {% for Product in pagination %}                        
  1206.                         {% if Product.limited_ids == '' %}
  1207.                             <li class=\"ec-shelfGrid__item\">
  1208.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1209.                                 <p class=\"ec-shelfGrid__item-image\">
  1210. {# === SDR === #}
  1211. {% if eccube_config.app_mode != 'display' %}
  1212.     {% set image_url = asset(Product.main_list_image, 'save_image') %}
  1213. {% elseif Product.mainDisplayImage %}
  1214.     {% set image_url = eccube_config.img_folder ~ Product.mainDisplayImage.fileName %}
  1215. {% endif %}
  1216. {% if image_url is defined %}
  1217.     <img src=\"{{ image_url }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %}loading=\"lazy\"{% endif %}>
  1218. {% else %}
  1219.     <div class=\"ec-shelfGrid__item-noimage\">
  1220.         ★画像準備中
  1221.     </div>
  1222. {% endif %}
  1223. {# === SDR === #}
  1224.                                 </p>
  1225.                                 <p>{{ Product.name }}</p>
  1226.                                 {% if Product.description_list %}
  1227.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  1228.                                 {% endif %}
  1229.                                 <p class=\"price02-default\">
  1230. {# === SDR === #}
  1231. {% if eccube_config.app_mode != 'display' %}
  1232.                                     {% if Product.hasProductClass %}
  1233.                                         {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1234.                                             {{ Product.getPrice02IncTaxMin|price }}
  1235.                                         {% else %}
  1236.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  1237.                                         {% endif %}
  1238.                                     {% else %}
  1239.                                         {{ Product.getPrice02IncTaxMin|price }}
  1240.                                     {% endif %}
  1241. {% else %}
  1242. {#規格あり・規格なしに関係なく、表示対象の ProductClass から価格を取得#}
  1243.                                     {% if Product.getPriceSellerInTaxMin == Product.getPriceSellerInTaxMax %}
  1244.                                         {{ Product.getPriceSellerInTaxMin|price }}
  1245.                                     {% else %}
  1246.                                         {{ Product.getPriceSellerInTaxMin|price }} ~ {{ Product.getPriceSellerInTaxMax|price }}
  1247.                                     {% endif %}
  1248. {% endif %}
  1249.                                 </p>
  1250.                             </a>
  1251. {# === SDR === #}
  1252. {% if eccube_config.app_mode != 'display' %}
  1253.                             {% if Product.stock_find %}
  1254.                                 {% if Product.locked_ids is not empty %}  
  1255.                                     <br>                              
  1256.                                     <button type=\"button\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" onclick=\"submitFormAndRedirect('{{ Product.id }}', '{{ url('product_detail', {'id': Product.id}) }}')\">
  1257.                                         {{ '詳細表示'|trans }}
  1258.                                     </button>
  1259.                                     
  1260.                                 {% else %}
  1261.                                     {% set form = forms[Product.id] %}
  1262.                                     <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1263.                                         <div class=\"ec-productRole__actions\">
  1264.                                             {% if form.classcategory_id1 is defined %}
  1265.                                                 <div class=\"ec-select\">
  1266.                                                     {{ form_widget(form.classcategory_id1) }}
  1267.                                                     {{ form_errors(form.classcategory_id1) }}
  1268.                                                 </div>
  1269.                                                 {% if form.classcategory_id2 is defined %}
  1270.                                                     <div class=\"ec-select\">
  1271.                                                         {{ form_widget(form.classcategory_id2) }}
  1272.                                                         {{ form_errors(form.classcategory_id2) }}
  1273.                                                     </div>
  1274.                                                 {% endif %}
  1275.                                             {% endif %}
  1276.                                             <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  1277.                                                 {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  1278.                                                 {{ form_errors(form.quantity) }}
  1279.                                             </div>
  1280.                                         </div>
  1281.                                         {{ form_rest(form) }}
  1282.                                     </form>
  1283.                                     <div class=\"ec-productRole__btn\">
  1284.                                         
  1285.                                         <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  1286.                                             {{ 'カートに入れる'|trans }}
  1287.                                         </button>
  1288.                                     </div>
  1289.                                 {% endif %}
  1290.                             {% else %}
  1291.                                 <div class=\"ec-productRole__btn\">
  1292.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1293.                                         {{ 'ただいま品切れ中です。'|trans }}
  1294.                                     </button>
  1295.                                 </div>
  1296.                             {% endif %}
  1297. {% endif %}
  1298. {# === SDR === #}
  1299.                             </li>
  1300.                         {% endif %}
  1301.                     {% endfor %}
  1302.                 </ul>
  1303.             </div>
  1304.             <div class=\"ec-modal\">
  1305.                 <div class=\"ec-modal-overlay\">
  1306.                     <div class=\"ec-modal-wrap\">
  1307.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1308.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1309.                         <div class=\"ec-modal-box\">
  1310.                             <div class=\"ec-role\">
  1311.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1312.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1313.                             </div>
  1314.                         </div>
  1315.                     </div>
  1316.                 </div>
  1317.             </div>
  1318.             <div class=\"ec-pagerRole\">
  1319.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1320.             </div>
  1321.         {% endif %}
  1322.     {% endif %}
  1323. <style>
  1324.     .selectedmenu {
  1325.         height: 35px;
  1326.         margin: 20px;
  1327.         border: 0px solid;
  1328.         background-color: #F0FFF0;
  1329.         display: flex;
  1330.         align-items: center;
  1331.         justify-content: center; /* 水平方向にも中央揃えする場合 */
  1332.         
  1333.     }
  1334.     .selectedmenu img {
  1335.         /*height: 50%;*/
  1336.     }
  1337. </style>
  1338. <script>
  1339.     function submitFormAndRedirect(productId, url) {
  1340.         window.location.href = url;
  1341.     }
  1342. </script>
  1343. <style>
  1344.     .custom-flash {
  1345.         border: 2px solid #e60000;   /* 赤い枠 */
  1346.         background-color: #ffe6e6;   /* 薄いピンク背景 */
  1347.         color: #900;                 /* 赤系文字色 */
  1348.         padding: 12px 16px;
  1349.         border-radius: 4px;
  1350.         margin-bottom: 10px;
  1351.         font-weight: bold;
  1352.     }
  1353. </style>
  1354. {% endblock %}""@SDream/Product/list.twig""/home/xs262729/sandrea.net/public_html/display.sandrea.net/app/Plugin/SDream/Resource/template/Product/list.twig");
  1355.     }
  1356. }