var/cache/dev/twig/d8/d85d1e07c054a9f799167aaebce672dca3071c7838676909c7a08730601b771a.php line 16

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Product/list.twig */
  14. class __TwigTemplate_d8aede2df4be720b0fa225dc241d6d72df5bcabbcc4be1fbbd460ef4c623f5ed 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 15
  42.         $context["hasCategory"] = false;
  43.         // line 16
  44.         $context["request_uri"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "server", [], "any"falsefalsefalse16), "get", [=> "REQUEST_URI"], "method"falsefalsefalse16);
  45.         // line 18
  46.         if ((twig_in_filter("name=", (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'18$this->source); })())) && ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'18$this->source); })()) != ""))) {
  47.             // line 19
  48.             $context["RootCategory"] = 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.'19$this->source); })()), "RootCategory", [], "any"falsefalsefalse19);
  49.             // line 20
  50.             $context["hasCategory"] = true;
  51.             // line 21
  52.             $context["msg"] = "elseif 'name=' in request_uri and Category != ))";
  53.         } elseif ((        // line 23
  54. (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'23$this->source); })()) != "")) {
  55.             // line 24
  56.             $context["RootCategory"] = 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.'24$this->source); })()), "RootCategory", [], "any"falsefalsefalse24);
  57.             // line 25
  58.             $context["hasCategory"] = true;
  59.             // line 26
  60.             $context["msg"] = "elseif  Category != ))";
  61.         } elseif (twig_in_filter("name=",         // line 27
  62. (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'27$this->source); })()))) {
  63.             // line 28
  64.             $context["hasCategory"] = false;
  65.             // line 29
  66.             $context["msg"] = "if 'name=' in request_uri";
  67.         } else {
  68.             // line 32
  69.             $context["msg"] = "else";
  70.         }
  71.         // line 35
  72.         if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'35$this->source); })())) {
  73.             // line 36
  74.             $context["RootCategory"] = 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.'36$this->source); })()), "RootCategory", [], "any"falsefalsefalse36);
  75.         }
  76.         // line 39
  77.         $context["prm2"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'39$this->source); })()), "request", [], "any"falsefalsefalse39), "query", [], "any"falsefalsefalse39), "get", [=> "type"], "method"falsefalsefalse39);
  78.         // line 40
  79.         $context["prm3"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'40$this->source); })()), "request", [], "any"falsefalsefalse40), "query", [], "any"falsefalsefalse40), "get", [=> "category_id2"], "method"falsefalsefalse40);
  80.         // line 41
  81.         $context["prm4"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "request", [], "any"falsefalsefalse41), "query", [], "any"falsefalsefalse41), "get", [=> "category_id3"], "method"falsefalsefalse41);
  82.         // line 42
  83.         $context["prm5"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'42$this->source); })()), "request", [], "any"falsefalsefalse42), "query", [], "any"falsefalsefalse42), "get", [=> "category_id4"], "method"falsefalsefalse42);
  84.         // line 43
  85.         $context["prm6"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'43$this->source); })()), "request", [], "any"falsefalsefalse43), "query", [], "any"falsefalsefalse43), "get", [=> "category_id5"], "method"falsefalsefalse43);
  86.         // line 44
  87.         $context["prm7"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'44$this->source); })()), "request", [], "any"falsefalsefalse44), "query", [], "any"falsefalsefalse44), "get", [=> "tag_id"], "method"falsefalsefalse44);
  88.         // line 46
  89.         $context["pm2"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'46$this->source); })()));
  90.         // line 47
  91.         $context["pm3"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm3"]) || array_key_exists("prm3"$context) ? $context["prm3"] : (function () { throw new RuntimeError('Variable "prm3" does not exist.'47$this->source); })()));
  92.         // line 48
  93.         $context["pm4"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm4"]) || array_key_exists("prm4"$context) ? $context["prm4"] : (function () { throw new RuntimeError('Variable "prm4" does not exist.'48$this->source); })()));
  94.         // line 49
  95.         $context["pm5"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm5"]) || array_key_exists("prm5"$context) ? $context["prm5"] : (function () { throw new RuntimeError('Variable "prm5" does not exist.'49$this->source); })()));
  96.         // line 50
  97.         $context["pm6"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm6"]) || array_key_exists("prm6"$context) ? $context["prm6"] : (function () { throw new RuntimeError('Variable "prm6" does not exist.'50$this->source); })()));
  98.         // line 53
  99.         $context["cn1"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'53$this->source); })()), "request", [], "any"falsefalsefalse53), "query", [], "any"falsefalsefalse53), "get", [=> "name"], "method"falsefalsefalse53);
  100.         // line 55
  101.         if ((((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'55$this->source); })()) == 0) && ((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'55$this->source); })()) != ""))) {
  102.             // line 56
  103.             $context["cn2"] = "ヴァイスシュヴァルツ,";
  104.         } elseif (((        // line 57
  105. (isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'57$this->source); })()) == 1) && ((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'57$this->source); })()) != ""))) {
  106.             // line 58
  107.             $context["cn2"] = "ポケモン,";
  108.         } else {
  109.             // line 60
  110.             $context["cn2"] = "";
  111.         }
  112.         // line 63
  113.         $context["cn3"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm3"]) || array_key_exists("pm3"$context) ? $context["pm3"] : (function () { throw new RuntimeError('Variable "pm3" does not exist.'63$this->source); })()));
  114.         // line 64
  115.         $context["cn4"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm4"]) || array_key_exists("pm4"$context) ? $context["pm4"] : (function () { throw new RuntimeError('Variable "pm4" does not exist.'64$this->source); })()));
  116.         // line 65
  117.         $context["cn5"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm5"]) || array_key_exists("pm5"$context) ? $context["pm5"] : (function () { throw new RuntimeError('Variable "pm5" does not exist.'65$this->source); })()));
  118.         // line 66
  119.         $context["cn6"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm6"]) || array_key_exists("pm6"$context) ? $context["pm6"] : (function () { throw new RuntimeError('Variable "pm6" does not exist.'66$this->source); })()));
  120.         // line 68
  121.         if ((((isset($context["prm7"]) || array_key_exists("prm7"$context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.'68$this->source); })()) == 4) && ((isset($context["prm7"]) || array_key_exists("prm7"$context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.'68$this->source); })()) != ""))) {
  122.             // line 69
  123.             $context["cn7"] = "傷あり商品,";
  124.         } else {
  125.             // line 71
  126.             $context["cn7"] = "";
  127.         }
  128.         // line 11
  129.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  130.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  131.         
  132.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  133.         
  134.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  135.     }
  136.     // line 74
  137.     public function block_javascript($context, array $blocks = [])
  138.     {
  139.         $macros $this->macros;
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  144.         // line 75
  145.         echo "    <script>
  146.         eccube.productsClassCategories = {
  147.             ";
  148.         // line 77
  149.         $context['_parent'] = $context;
  150.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'77$this->source); })()));
  151.         $context['loop'] = [
  152.           'parent' => $context['_parent'],
  153.           'index0' => 0,
  154.           'index'  => 1,
  155.           'first'  => true,
  156.         ];
  157.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  158.             $length count($context['_seq']);
  159.             $context['loop']['revindex0'] = $length 1;
  160.             $context['loop']['revindex'] = $length;
  161.             $context['loop']['length'] = $length;
  162.             $context['loop']['last'] = === $length;
  163.         }
  164.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  165.             // line 78
  166.             echo "            \"";
  167.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse78), "js"), "html"nulltrue);
  168.             echo "\": ";
  169.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  170.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse78) == false)) {
  171.                 echo ", ";
  172.             }
  173.             // line 79
  174.             echo "            ";
  175.             ++$context['loop']['index0'];
  176.             ++$context['loop']['index'];
  177.             $context['loop']['first'] = false;
  178.             if (isset($context['loop']['length'])) {
  179.                 --$context['loop']['revindex0'];
  180.                 --$context['loop']['revindex'];
  181.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  182.             }
  183.         }
  184.         $_parent $context['_parent'];
  185.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  186.         $context array_intersect_key($context$_parent) + $_parent;
  187.         // line 80
  188.         echo "        };
  189.         \$(function() {
  190.             // 表示件数を変更
  191.             \$('.disp-number').change(function() {
  192.                 var dispNumber = \$(this).val();
  193.                 \$('#disp_number').val(dispNumber);
  194.                 \$('#pageno').val(1);
  195.                 \$(\"#form1\").submit();
  196.             });
  197.             // 並び順を変更
  198.             \$('.order-by').change(function() {
  199.                 var orderBy = \$(this).val();
  200.                 \$('#orderby').val(orderBy);
  201.                 \$('#pageno').val(1);
  202.                 \$(\"#form1\").submit();
  203.             });
  204.             \$('.add-cart').on('click', function(e) {
  205.                 var \$form = \$(this).parents('li').find('form');
  206.                 // 個数フォームのチェック
  207.                 var \$quantity = \$form.parent().find('.quantity');
  208.                 if (\$quantity.val() < 1) {
  209.                     \$quantity[0].setCustomValidity('";
  210.         // line 106
  211.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.invalid_quantity"), "html"nulltrue);
  212.         echo "');
  213.                     setTimeout(function() {
  214.                         loadingOverlay('hide');
  215.                     }, 100);
  216.                     return true;
  217.                 } else {
  218.                     \$quantity[0].setCustomValidity('');
  219.                 }
  220.                 e.preventDefault();
  221.                 \$.ajax({
  222.                     url: \$form.attr('action'),
  223.                     type: \$form.attr('method'),
  224.                     data: \$form.serialize(),
  225.                     dataType: 'json',
  226.                     beforeSend: function(xhr, settings) {
  227.                         // Buttonを無効にする
  228.                         \$('.add-cart').prop('disabled', true);
  229.                     }
  230.                 }).done(function(data) {
  231.                     // レスポンス内のメッセージをalertで表示
  232.                     \$.each(data.messages, function() {
  233.                         \$('#ec-modal-header').text(this);
  234.                     });
  235.                     \$('.ec-modal').show()
  236.                     // カートブロックを更新する
  237.                     \$.ajax({
  238.                         url: '";
  239.         // line 134
  240.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  241.         echo "',
  242.                         type: 'GET',
  243.                         dataType: 'html'
  244.                     }).done(function(html) {
  245.                         \$('.ec-headerRole__cart').html(html);
  246.                     });
  247.                 }).fail(function(data) {
  248.                     alert('";
  249.         // line 141
  250.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "html"nulltrue);
  251.         echo "');
  252.                 }).always(function(data) {
  253.                     // Buttonを有効にする
  254.                     \$('.add-cart').prop('disabled', false);
  255.                 });
  256.             });
  257.         });
  258.         \$('.ec-modal-wrap').on('click', function(e) {
  259.             // モーダル内の処理は外側にバブリングさせない
  260.             e.stopPropagation();
  261.         });
  262.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  263.             \$('.ec-modal').hide()
  264.         });
  265.         ";
  266.         // line 156
  267.         if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'156$this->source); })())) {
  268.             // line 157
  269.             echo "            ";
  270.             if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'157$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'157$this->source); })()) == "買い取り"))) {
  271.                 // line 158
  272.                 echo "                \$('.bigbox').css('background-color','#22b573');
  273.                 \$('.header-middle').css('background-color','#22b573');
  274.                 \$('.side-searchbox').css('background-color','#22b573');
  275.                 \$('.side-cat-more').css('background-color','#22b573');
  276.                 \$('.side-cat-more2').css('background-color','#22b573');
  277.                 \$('.side-cat-more3').css('background-color','#22b573');
  278.             ";
  279.             }
  280.             // line 166
  281.             echo "        ";
  282.         }
  283.         // line 167
  284.         echo "        \$(document).ready(function() {
  285.           // プラスボタンがクリックされたとき
  286.           \$('.spinner-up').click(function() {
  287.             // 対応する数量フィールドのIDを取得
  288.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  289.             
  290.             // 対応する数量フィールドの値を取得
  291.             var quantity = parseInt(\$('#' + productId).val());
  292.         
  293.             // 値を増加させて数量フィールドに設定
  294.             \$('#' + productId).val(quantity + 1);
  295.           });
  296.         
  297.           // マイナスボタンがクリックされたとき
  298.           \$('.spinner-down').click(function() {
  299.             // 対応する数量フィールドのIDを取得
  300.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  301.             
  302.             // 対応する数量フィールドの値を取得
  303.             var quantity = parseInt(\$('#' + productId).val());
  304.         
  305.             // 値を減少させて数量フィールドに設定 (1未満にはしない)
  306.             if (quantity > 1) {
  307.               \$('#' + productId).val(quantity - 1);
  308.             }
  309.           });
  310.         });
  311.     </script>
  312. ";
  313.         
  314.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  315.         
  316.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  317.     }
  318.     // line 199
  319.     public function block_main($context, array $blocks = [])
  320.     {
  321.         $macros $this->macros;
  322.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  323.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  324.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  325.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  326.         // line 200
  327.         echo "
  328.     <div class=\"ec-layoutRole__mainTop\">
  329.        
  330.         <div class=\"top-content-box cat_mob_top-content-box\">
  331.         ";
  332.         // line 205
  333.         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.'205$this->source); })()), "category_id", [], "any"falsefalsefalse205), "vars", [], "any"falsefalsefalse205), "errors", [], "any"falsefalsefalse205)) > 0)) {
  334.             // line 206
  335.             echo "            <div class=\"test\">
  336.                 <p class=\"errormsg text-danger\">";
  337.             // line 207
  338.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.search__category_not_found"), "html"nulltrue);
  339.             echo "</p>
  340.             </div>
  341.         ";
  342.         } else {
  343.             // line 210
  344.             echo "            <div class=\"sort-big-box\">
  345.                 <h2>商品一覧</h2>
  346.                     <div class=\"sort-box\">
  347. \t\t\t\t\t<!--<a href=\"";
  348.             // line 213
  349.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'213$this->source); })()), "request", [], "any"falsefalsefalse213), "getUri", [], "any"falsefalsefalse213), "html"nulltrue);
  350.             echo "&orderby=4\">おすすめ順</a>-->
  351.                         <a href=\"";
  352.             // line 214
  353.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'214$this->source); })()), "request", [], "any"falsefalsefalse214), "getUri", [], "any"falsefalsefalse214), "html"nulltrue);
  354.             echo "&orderby=2\">新着順</a>
  355.                         <a href=\"";
  356.             // line 215
  357.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'215$this->source); })()), "request", [], "any"falsefalsefalse215), "getUri", [], "any"falsefalsefalse215), "html"nulltrue);
  358.             echo "&orderby=1\">価格の安い順</a>
  359.                         <a href=\"";
  360.             // line 216
  361.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'216$this->source); })()), "request", [], "any"falsefalsefalse216), "getUri", [], "any"falsefalsefalse216), "html"nulltrue);
  362.             echo "&orderby=3\">価格の高い順</a>
  363.                     </div>
  364.                 ";
  365.             // line 218
  366.             if ((((((twig_test_empty((isset($context["cn1"]) || array_key_exists("cn1"$context) ? $context["cn1"] : (function () { throw new RuntimeError('Variable "cn1" does not exist.'218$this->source); })())) && twig_test_empty((isset($context["cn2"]) || array_key_exists("cn2"$context) ? $context["cn2"] : (function () { throw new RuntimeError('Variable "cn2" does not exist.'218$this->source); })()))) && twig_test_empty((isset($context["cn3"]) || array_key_exists("cn3"$context) ? $context["cn3"] : (function () { throw new RuntimeError('Variable "cn3" does not exist.'218$this->source); })()))) && twig_test_empty((isset($context["cn4"]) || array_key_exists("cn4"$context) ? $context["cn4"] : (function () { throw new RuntimeError('Variable "cn4" does not exist.'218$this->source); })()))) && twig_test_empty((isset($context["cn5"]) || array_key_exists("cn5"$context) ? $context["cn5"] : (function () { throw new RuntimeError('Variable "cn5" does not exist.'218$this->source); })()))) && twig_test_empty((isset($context["cn6"]) || array_key_exists("cn6"$context) ? $context["cn6"] : (function () { throw new RuntimeError('Variable "cn6" does not exist.'218$this->source); })())))) {
  367.                 // line 219
  368.                 echo "
  369.                 ";
  370.             } else {
  371.                 // line 221
  372.                 echo "                    <p class=\"search_res_text\">検索ワード:";
  373.                 echo twig_escape_filter($this->env, (isset($context["cn2"]) || array_key_exists("cn2"$context) ? $context["cn2"] : (function () { throw new RuntimeError('Variable "cn2" does not exist.'221$this->source); })()), "html"nulltrue);
  374.                 echo twig_escape_filter($this->env, (isset($context["cn3"]) || array_key_exists("cn3"$context) ? $context["cn3"] : (function () { throw new RuntimeError('Variable "cn3" does not exist.'221$this->source); })()), "html"nulltrue);
  375.                 echo twig_escape_filter($this->env, (isset($context["cn4"]) || array_key_exists("cn4"$context) ? $context["cn4"] : (function () { throw new RuntimeError('Variable "cn4" does not exist.'221$this->source); })()), "html"nulltrue);
  376.                 echo twig_escape_filter($this->env, (isset($context["cn5"]) || array_key_exists("cn5"$context) ? $context["cn5"] : (function () { throw new RuntimeError('Variable "cn5" does not exist.'221$this->source); })()), "html"nulltrue);
  377.                 echo twig_escape_filter($this->env, (isset($context["cn6"]) || array_key_exists("cn6"$context) ? $context["cn6"] : (function () { throw new RuntimeError('Variable "cn6" does not exist.'221$this->source); })()), "html"nulltrue);
  378.                 echo twig_escape_filter($this->env, (isset($context["cn7"]) || array_key_exists("cn7"$context) ? $context["cn7"] : (function () { throw new RuntimeError('Variable "cn7" does not exist.'221$this->source); })()), "html"nulltrue);
  379.                 echo twig_escape_filter($this->env, (isset($context["cn1"]) || array_key_exists("cn1"$context) ? $context["cn1"] : (function () { throw new RuntimeError('Variable "cn1" does not exist.'221$this->source); })()), "html"nulltrue);
  380.                 echo "</p>
  381.                 ";
  382.             }
  383.             // line 223
  384.             echo "            </div>
  385.             <div class=\"product-big-list\">
  386.                 
  387.             ";
  388.             // line 227
  389.             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.'227$this->source); })()), "totalItemCount", [], "any"falsefalsefalse227) > 0)) {
  390.                 // line 228
  391.                 echo "
  392.                     ";
  393.                 // line 229
  394.                 $context['_parent'] = $context;
  395.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'229$this->source); })()));
  396.                 $context['loop'] = [
  397.                   'parent' => $context['_parent'],
  398.                   'index0' => 0,
  399.                   'index'  => 1,
  400.                   'first'  => true,
  401.                 ];
  402.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  403.                     $length count($context['_seq']);
  404.                     $context['loop']['revindex0'] = $length 1;
  405.                     $context['loop']['revindex'] = $length;
  406.                     $context['loop']['length'] = $length;
  407.                     $context['loop']['last'] = === $length;
  408.                 }
  409.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  410.                     // line 230
  411.                     echo "
  412.                     <div class=\"product-list-box\">
  413.                             ";
  414.                     // line 232
  415.                     if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'232$this->source); })()), "request", [], "any"falsefalsefalse232), "query", [], "any"falsefalsefalse232), "get", [=> "category_id"], "method"falsefalsefalse232) == 219) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'232$this->source); })()), "request", [], "any"falsefalsefalse232), "query", [], "any"falsefalsefalse232), "get", [=> "category_id"], "method"falsefalsefalse232) == 218))) {
  416.                         // line 233
  417.                         echo "
  418.                                     <img src=\"";
  419.                         // line 234
  420.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse234)), "save_image"), "html"nulltrue);
  421.                         echo "\">
  422.                             ";
  423.                     } else {
  424.                         // line 237
  425.                         echo "                                <a href=\"";
  426.                         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"falsefalsefalse237)]), "html"nulltrue);
  427.                         echo "\">
  428.                                     <img src=\"";
  429.                         // line 238
  430.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse238)), "save_image"), "html"nulltrue);
  431.                         echo "\">
  432.                                 </a>
  433.                             ";
  434.                     }
  435.                     // line 241
  436.                     echo "
  437.                             <p>";
  438.                     // line 243
  439.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse243), "html"nulltrue);
  440.                     echo "</p>
  441.                             <p class=\"price\">
  442.                                 ";
  443.                     // line 246
  444.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse246)) {
  445.                         // line 247
  446.                         echo "                                    ";
  447.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse247) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse247))) {
  448.                             // line 248
  449.                             echo "                                        ";
  450.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse248)), "html"nulltrue);
  451.                             echo "
  452.                                     ";
  453.                         } else {
  454.                             // line 250
  455.                             echo "                                        ";
  456.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse250)), "html"nulltrue);
  457.                             echo " ~ ";
  458.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse250)), "html"nulltrue);
  459.                             echo "
  460.                                     ";
  461.                         }
  462.                         // line 252
  463.                         echo "                                ";
  464.                     } else {
  465.                         // line 253
  466.                         echo "                                    ";
  467.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse253)), "html"nulltrue);
  468.                         echo "
  469.                                 ";
  470.                     }
  471.                     // line 255
  472.                     echo "                                <span>円</span>
  473.                             </p>
  474.                             ";
  475.                     // line 257
  476.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse257)) {
  477.                         // line 258
  478.                         echo "
  479.                                 <form name=\"form";
  480.                         // line 259
  481.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse259), "html"nulltrue);
  482.                         echo "\" id=\"productForm";
  483.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse259), "html"nulltrue);
  484.                         echo "\" action=\"";
  485.                         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"falsefalsefalse259)]), "html"nulltrue);
  486.                         echo "\" method=\"post\">
  487.                                         ";
  488.                         // line 260
  489.                         if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'260$this->source); })())) {
  490.                             // line 261
  491.                             echo "                                            ";
  492.                             if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'261$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'261$this->source); })()) == "買い取り"))) {
  493.                                 // line 262
  494.                                 echo "                                                <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  495.                                             ";
  496.                             } else {
  497.                                 // line 264
  498.                                 echo "                                            ";
  499.                             }
  500.                             // line 265
  501.                             echo "                                        ";
  502.                         }
  503.                         // line 266
  504.                         echo "                                    <label class=\"number-spinner-wrap\">
  505.                                         <input type=\"number\" id=\"quantity";
  506.                         // line 267
  507.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse267), "html"nulltrue);
  508.                         echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  509.                                         <span class=\"spinner spinner-down\"> <img src=\"";
  510.                         // line 268
  511.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/minus.png"), "html"nulltrue);
  512.                         echo "\" class=\"numcursul\" alt=\"\"> </span>
  513.                                         <span class=\"spinner spinner-up\"> <img src=\"";
  514.                         // line 269
  515.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/plus.png"), "html"nulltrue);
  516.                         echo "\" class=\"numcursul\" alt=\"\"> </span>
  517.                                     </label>
  518.                                     <input type=\"hidden\" id=\"product_id";
  519.                         // line 271
  520.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse271), "html"nulltrue);
  521.                         echo "\" name=\"product_id\" value=\"";
  522.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse271), "html"nulltrue);
  523.                         echo "\">
  524.                                     <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
  525.                         // line 272
  526.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "ProductClasses", [], "any"falsefalsefalse272), 0, [], "array"falsefalsefalse272), "id", [], "any"falsefalsefalse272), "html"nulltrue);
  527.                         echo "\">
  528.                                     <input type=\"hidden\" id=\"_token";
  529.                         // line 273
  530.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse273), "html"nulltrue);
  531.                         echo "\" name=\"_token\" value=\"";
  532.                         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("Eccube\\Form\\Type\\AddCartType"), "html"nulltrue);
  533.                         echo "\" />
  534.                                 </form>
  535.                                     ";
  536.                         // line 275
  537.                         if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'275$this->source); })())) {
  538.                             // line 276
  539.                             echo "                                        ";
  540.                             if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'276$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'276$this->source); })()) == "買い取り"))) {
  541.                                 // line 277
  542.                                 echo "                                            <div class=\"cart-in-btn\">
  543.                                                 <button class=\"add-cart-custom\" data-cartid=\"";
  544.                                 // line 278
  545.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse278), "html"nulltrue);
  546.                                 echo "\" form=\"productForm";
  547.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse278), "html"nulltrue);
  548.                                 echo "\" type=\"submit\"> 売却する </button>
  549.                                             </div>
  550.                                         ";
  551.                             } else {
  552.                                 // line 281
  553.                                 echo "                                            <div class=\"cart-in-btn\">
  554.                                                 <button class=\"add-cart-custom\" data-cartid=\"";
  555.                                 // line 282
  556.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse282), "html"nulltrue);
  557.                                 echo "\" form=\"productForm";
  558.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse282), "html"nulltrue);
  559.                                 echo "\" type=\"submit\"> カートに入れる </button>
  560.                                             </div>
  561.                                         ";
  562.                             }
  563.                             // line 285
  564.                             echo "                                    ";
  565.                         }
  566.                         // line 286
  567.                         echo "                                    
  568.                                     
  569.                                 
  570.                             ";
  571.                     } else {
  572.                         // line 291
  573.                         echo "                                <div class=\"cart-in-btn\">
  574.                                     <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> ";
  575.                         // line 292
  576.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html"nulltrue);
  577.                         echo " </button>
  578.                                 </div>
  579.                             ";
  580.                     }
  581.                     // line 295
  582.                     echo "                        </div>
  583.                         <!--<li class=\"ec-shelfGrid__item\">
  584.                             <a href=\"";
  585.                     // line 299
  586.                     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"falsefalsefalse299)]), "html"nulltrue);
  587.                     echo "\">
  588.                                 <p class=\"ec-shelfGrid__item-image\">
  589.                                     <img src=\"";
  590.                     // line 301
  591.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse301)), "save_image"), "html"nulltrue);
  592.                     echo "\" alt=\"";
  593.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse301), "html"nulltrue);
  594.                     echo "\" ";
  595.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse301) > 5)) {
  596.                         echo " loading=\"lazy\"";
  597.                     }
  598.                     echo ">
  599.                                 </p>
  600.                                 <p>";
  601.                     // line 303
  602.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse303), "html"nulltrue);
  603.                     echo "</p>
  604.                                 ";
  605.                     // line 304
  606.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse304)) {
  607.                         // line 305
  608.                         echo "                                    <p>";
  609.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse305));
  610.                         echo "</p>
  611.                                 ";
  612.                     }
  613.                     // line 307
  614.                     echo "                                <p class=\"price02-default\">
  615.                                     ";
  616.                     // line 308
  617.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse308)) {
  618.                         // line 309
  619.                         echo "                                        ";
  620.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse309) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse309))) {
  621.                             // line 310
  622.                             echo "                                            ";
  623.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse310)), "html"nulltrue);
  624.                             echo "
  625.                                         ";
  626.                         } else {
  627.                             // line 312
  628.                             echo "                                            ";
  629.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse312)), "html"nulltrue);
  630.                             echo " ~ ";
  631.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse312)), "html"nulltrue);
  632.                             echo "
  633.                                         ";
  634.                         }
  635.                         // line 314
  636.                         echo "                                    ";
  637.                     } else {
  638.                         // line 315
  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"], "getPrice02IncTaxMin", [], "any"falsefalsefalse315)), "html"nulltrue);
  641.                         echo "
  642.                                     ";
  643.                     }
  644.                     // line 317
  645.                     echo "                                </p>
  646.                             </a>
  647.                             ";
  648.                     // line 320
  649.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse320)) {
  650.                         // line 321
  651.                         echo "                                ";
  652.                         $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.'321$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse321), [], "array"falsefalsefalse321);
  653.                         // line 322
  654.                         echo "                                <form name=\"form";
  655.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse322), "html"nulltrue);
  656.                         echo "\" id=\"productForm";
  657.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse322), "html"nulltrue);
  658.                         echo "\" action=\"";
  659.                         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"falsefalsefalse322)]), "html"nulltrue);
  660.                         echo "\" method=\"post\">
  661.                                     <div class=\"ec-productRole__actions\">
  662.                                         ";
  663.                         // line 324
  664.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse324)) {
  665.                             // line 325
  666.                             echo "                                            <div class=\"ec-select\">
  667.                                                 ";
  668.                             // line 326
  669.                             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.'326$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse326), 'widget');
  670.                             echo "
  671.                                                 ";
  672.                             // line 327
  673.                             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.'327$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse327), 'errors');
  674.                             echo "
  675.                                             </div>
  676.                                             ";
  677.                             // line 329
  678.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse329)) {
  679.                                 // line 330
  680.                                 echo "                                                <div class=\"ec-select\">
  681.                                                     ";
  682.                                 // line 331
  683.                                 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.'331$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse331), 'widget');
  684.                                 echo "
  685.                                                     ";
  686.                                 // line 332
  687.                                 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.'332$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse332), 'errors');
  688.                                 echo "
  689.                                                 </div>
  690.                                             ";
  691.                             }
  692.                             // line 335
  693.                             echo "                                        ";
  694.                         }
  695.                         // line 336
  696.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  697.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.quantity"), "html"nulltrue);
  698.                         echo "</span>
  699.                                             ";
  700.                         // line 337
  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.'337$this->source); })()), "quantity", [], "any"falsefalsefalse337), 'widget', ["attr" => ["class" => "quantity"]]);
  702.                         echo "
  703.                                             ";
  704.                         // line 338
  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.'338$this->source); })()), "quantity", [], "any"falsefalsefalse338), 'errors');
  706.                         echo "
  707.                                         </div>
  708.                                     </div>
  709.                                     ";
  710.                         // line 341
  711.                         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.'341$this->source); })()), 'rest');
  712.                         echo "
  713.                                 </form>
  714.                                 <div class=\"ec-productRole__btn\">
  715.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  716.                         // line 344
  717.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse344), "html"nulltrue);
  718.                         echo "\" form=\"productForm";
  719.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse344), "html"nulltrue);
  720.                         echo "\">
  721.                                         ";
  722.                         // line 345
  723.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart"), "html"nulltrue);
  724.                         echo "
  725.                                     </button>
  726.                                 </div>
  727.                             ";
  728.                     } else {
  729.                         // line 349
  730.                         echo "                                <div class=\"ec-productRole__btn\">
  731.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  732.                                         ";
  733.                         // line 351
  734.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.out_of_stock"), "html"nulltrue);
  735.                         echo "
  736.                                     </button>
  737.                                 </div>
  738.                             ";
  739.                     }
  740.                     // line 355
  741.                     echo "                        </li>-->
  742.                     ";
  743.                     ++$context['loop']['index0'];
  744.                     ++$context['loop']['index'];
  745.                     $context['loop']['first'] = false;
  746.                     if (isset($context['loop']['length'])) {
  747.                         --$context['loop']['revindex0'];
  748.                         --$context['loop']['revindex'];
  749.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  750.                     }
  751.                 }
  752.                 $_parent $context['_parent'];
  753.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  754.                 $context array_intersect_key($context$_parent) + $_parent;
  755.                 // line 361
  756.                 echo "                </div>
  757.                 <div class=\"ec-modal\">
  758.                     <div class=\"ec-modal-overlay\">
  759.                         <div class=\"ec-modal-wrap\">
  760.                             <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  761.                 // line 366
  762.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  763.                 echo "\" alt=\"\"/></span></span>
  764.                             <div id=\"ec-modal-header\" class=\"text-center\">";
  765.                 // line 367
  766.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_complete"), "html"nulltrue);
  767.                 echo "</div>
  768.                             <div class=\"ec-modal-box\">
  769.                                 <div class=\"ec-role\">
  770.                                     <span class=\"ec-inlineBtn--cancel\">";
  771.                 // line 370
  772.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.continue"), "html"nulltrue);
  773.                 echo "</span>
  774.                                     <a href=\"";
  775.                 // line 371
  776.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  777.                 echo "\" class=\"ec-inlineBtn--action\">";
  778.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.go_to_cart"), "html"nulltrue);
  779.                 echo "</a>
  780.                                 </div>
  781.                             </div>
  782.                         </div>
  783.                     </div>
  784.                 </div>
  785.                 <div class=\"ec-pagerRole\">
  786.                     ";
  787.                 // line 378
  788.                 $this->loadTemplate("pager.twig""Product/list.twig"378)->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.'378$this->source); })()), "paginationData", [], "any"falsefalsefalse378)]));
  789.                 // line 379
  790.                 echo "                </div>
  791.             ";
  792.             }
  793.             // line 381
  794.             echo "        ";
  795.         }
  796.         // line 382
  797.         echo "        </div>
  798.     </div>
  799. ";
  800.         
  801.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  802.         
  803.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  804.     }
  805.     public function getTemplateName()
  806.     {
  807.         return "Product/list.twig";
  808.     }
  809.     public function isTraitable()
  810.     {
  811.         return false;
  812.     }
  813.     public function getDebugInfo()
  814.     {
  815.         return array (  841 => 382,  838 => 381,  834 => 379,  832 => 378,  820 => 371,  816 => 370,  810 => 367,  806 => 366,  799 => 361,  780 => 355,  773 => 351,  769 => 349,  762 => 345,  756 => 344,  750 => 341,  744 => 338,  740 => 337,  735 => 336,  732 => 335,  726 => 332,  722 => 331,  719 => 330,  717 => 329,  712 => 327,  708 => 326,  705 => 325,  703 => 324,  693 => 322,  690 => 321,  688 => 320,  683 => 317,  677 => 315,  674 => 314,  666 => 312,  660 => 310,  657 => 309,  655 => 308,  652 => 307,  646 => 305,  644 => 304,  640 => 303,  629 => 301,  624 => 299,  618 => 295,  612 => 292,  609 => 291,  602 => 286,  599 => 285,  591 => 282,  588 => 281,  580 => 278,  577 => 277,  574 => 276,  572 => 275,  565 => 273,  561 => 272,  555 => 271,  550 => 269,  546 => 268,  542 => 267,  539 => 266,  536 => 265,  533 => 264,  529 => 262,  526 => 261,  524 => 260,  516 => 259,  513 => 258,  511 => 257,  507 => 255,  501 => 253,  498 => 252,  490 => 250,  484 => 248,  481 => 247,  479 => 246,  473 => 243,  469 => 241,  463 => 238,  458 => 237,  452 => 234,  449 => 233,  447 => 232,  443 => 230,  426 => 229,  423 => 228,  421 => 227,  415 => 223,  403 => 221,  399 => 219,  397 => 218,  392 => 216,  388 => 215,  384 => 214,  380 => 213,  375 => 210,  369 => 207,  366 => 206,  364 => 205,  357 => 200,  347 => 199,  307 => 167,  304 => 166,  294 => 158,  291 => 157,  289 => 156,  271 => 141,  261 => 134,  230 => 106,  202 => 80,  188 => 79,  180 => 78,  163 => 77,  159 => 75,  149 => 74,  138 => 11,  135 => 71,  132 => 69,  130 => 68,  128 => 66,  126 => 65,  124 => 64,  122 => 63,  119 => 60,  116 => 58,  114 => 57,  112 => 56,  110 => 55,  108 => 53,  106 => 50,  104 => 49,  102 => 48,  100 => 47,  98 => 46,  96 => 44,  94 => 43,  92 => 42,  90 => 41,  88 => 40,  86 => 39,  83 => 36,  81 => 35,  78 => 32,  75 => 29,  73 => 28,  71 => 27,  69 => 26,  67 => 25,  65 => 24,  63 => 23,  61 => 21,  59 => 20,  57 => 19,  55 => 18,  53 => 16,  51 => 15,  49 => 13,  36 => 11,);
  816.     }
  817.     public function getSourceContext()
  818.     {
  819.         return new Source("{#
  820. This file is part of EC-CUBE
  821. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  822. http://www.ec-cube.co.jp/
  823. For the full copyright and license information, please view the LICENSE
  824. file that was distributed with this source code.
  825. #}
  826. {% extends 'default_frame.twig' %}
  827. {% set body_class = 'product_page' %}
  828. {% set hasCategory = false %}
  829. {% set request_uri = app.request.server.get('REQUEST_URI') %}
  830. {% if 'name=' in request_uri and Category != \"\" %}
  831.     {% set RootCategory = Category.RootCategory %}
  832.     {% set hasCategory = true %}
  833.     {% set msg = \"elseif 'name=' in request_uri and Category != ))\" %}
  834. {% elseif  Category != \"\" %}
  835.     {% set RootCategory = Category.RootCategory %}
  836.     {% set hasCategory = true %}
  837.     {% set msg = \"elseif  Category != ))\" %}
  838. {% elseif 'name=' in request_uri %}
  839.     {% set hasCategory = false %}
  840.     {% set msg = \"if 'name=' in request_uri\" %}
  841. {% else %}
  842.     {% set msg = \"else\" %}
  843. {% endif %}
  844. {% if hasCategory %}
  845.     {% set RootCategory = Category.RootCategory %}
  846. {% endif %}
  847. {% set prm2 = app.request.query.get('type') %}
  848. {% set prm3 = app.request.query.get('category_id2') %}
  849. {% set prm4 = app.request.query.get('category_id3') %}
  850. {% set prm5 = app.request.query.get('category_id4') %}
  851. {% set prm6 = app.request.query.get('category_id5') %}
  852. {% set prm7 = app.request.query.get('tag_id') %}
  853. {% set pm2 = cast_to_int(prm2) %}
  854. {% set pm3 = cast_to_int(prm3) %}
  855. {% set pm4 = cast_to_int(prm4) %}
  856. {% set pm5 = cast_to_int(prm5) %}
  857. {% set pm6 = cast_to_int(prm6) %}
  858. {% set cn1 = app.request.query.get('name') %}
  859. {% if prm2 == 0 and prm2 != \"\" %}
  860.     {% set cn2 = \"ヴァイスシュヴァルツ,\" %}
  861. {% elseif prm2 == 1 and prm2 != \"\" %}
  862.     {% set cn2 = \"ポケモン,\" %}
  863. {% else %}
  864.     {% set cn2 = \"\" %}
  865. {% endif %}
  866. {% set cn3 = get_category_name(pm3) %}
  867. {% set cn4 = get_category_name(pm4) %}
  868. {% set cn5 = get_category_name(pm5) %}
  869. {% set cn6 = get_category_name(pm6) %}
  870. {% if prm7 == 4 and prm7 != \"\" %}
  871.     {% set cn7 = \"傷あり商品,\" %}
  872. {% else %}
  873.     {% set cn7 = \"\" %}
  874. {% endif %}
  875. {% block javascript %}
  876.     <script>
  877.         eccube.productsClassCategories = {
  878.             {% for Product in pagination %}
  879.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  880.             {% endfor %}
  881.         };
  882.         \$(function() {
  883.             // 表示件数を変更
  884.             \$('.disp-number').change(function() {
  885.                 var dispNumber = \$(this).val();
  886.                 \$('#disp_number').val(dispNumber);
  887.                 \$('#pageno').val(1);
  888.                 \$(\"#form1\").submit();
  889.             });
  890.             // 並び順を変更
  891.             \$('.order-by').change(function() {
  892.                 var orderBy = \$(this).val();
  893.                 \$('#orderby').val(orderBy);
  894.                 \$('#pageno').val(1);
  895.                 \$(\"#form1\").submit();
  896.             });
  897.             \$('.add-cart').on('click', function(e) {
  898.                 var \$form = \$(this).parents('li').find('form');
  899.                 // 個数フォームのチェック
  900.                 var \$quantity = \$form.parent().find('.quantity');
  901.                 if (\$quantity.val() < 1) {
  902.                     \$quantity[0].setCustomValidity('{{ 'front.product.invalid_quantity'|trans }}');
  903.                     setTimeout(function() {
  904.                         loadingOverlay('hide');
  905.                     }, 100);
  906.                     return true;
  907.                 } else {
  908.                     \$quantity[0].setCustomValidity('');
  909.                 }
  910.                 e.preventDefault();
  911.                 \$.ajax({
  912.                     url: \$form.attr('action'),
  913.                     type: \$form.attr('method'),
  914.                     data: \$form.serialize(),
  915.                     dataType: 'json',
  916.                     beforeSend: function(xhr, settings) {
  917.                         // Buttonを無効にする
  918.                         \$('.add-cart').prop('disabled', true);
  919.                     }
  920.                 }).done(function(data) {
  921.                     // レスポンス内のメッセージをalertで表示
  922.                     \$.each(data.messages, function() {
  923.                         \$('#ec-modal-header').text(this);
  924.                     });
  925.                     \$('.ec-modal').show()
  926.                     // カートブロックを更新する
  927.                     \$.ajax({
  928.                         url: '{{ url('block_cart') }}',
  929.                         type: 'GET',
  930.                         dataType: 'html'
  931.                     }).done(function(html) {
  932.                         \$('.ec-headerRole__cart').html(html);
  933.                     });
  934.                 }).fail(function(data) {
  935.                     alert('{{ 'front.product.add_cart_error'|trans }}');
  936.                 }).always(function(data) {
  937.                     // Buttonを有効にする
  938.                     \$('.add-cart').prop('disabled', false);
  939.                 });
  940.             });
  941.         });
  942.         \$('.ec-modal-wrap').on('click', function(e) {
  943.             // モーダル内の処理は外側にバブリングさせない
  944.             e.stopPropagation();
  945.         });
  946.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  947.             \$('.ec-modal').hide()
  948.         });
  949.         {% if hasCategory %}
  950.             {% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
  951.                 \$('.bigbox').css('background-color','#22b573');
  952.                 \$('.header-middle').css('background-color','#22b573');
  953.                 \$('.side-searchbox').css('background-color','#22b573');
  954.                 \$('.side-cat-more').css('background-color','#22b573');
  955.                 \$('.side-cat-more2').css('background-color','#22b573');
  956.                 \$('.side-cat-more3').css('background-color','#22b573');
  957.             {% endif %}
  958.         {% endif %}
  959.         \$(document).ready(function() {
  960.           // プラスボタンがクリックされたとき
  961.           \$('.spinner-up').click(function() {
  962.             // 対応する数量フィールドのIDを取得
  963.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  964.             
  965.             // 対応する数量フィールドの値を取得
  966.             var quantity = parseInt(\$('#' + productId).val());
  967.         
  968.             // 値を増加させて数量フィールドに設定
  969.             \$('#' + productId).val(quantity + 1);
  970.           });
  971.         
  972.           // マイナスボタンがクリックされたとき
  973.           \$('.spinner-down').click(function() {
  974.             // 対応する数量フィールドのIDを取得
  975.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  976.             
  977.             // 対応する数量フィールドの値を取得
  978.             var quantity = parseInt(\$('#' + productId).val());
  979.         
  980.             // 値を減少させて数量フィールドに設定 (1未満にはしない)
  981.             if (quantity > 1) {
  982.               \$('#' + productId).val(quantity - 1);
  983.             }
  984.           });
  985.         });
  986.     </script>
  987. {% endblock %}
  988. {% block main %}
  989.     <div class=\"ec-layoutRole__mainTop\">
  990.        
  991.         <div class=\"top-content-box cat_mob_top-content-box\">
  992.         {% if search_form.category_id.vars.errors|length > 0 %}
  993.             <div class=\"test\">
  994.                 <p class=\"errormsg text-danger\">{{ 'front.product.search__category_not_found'|trans }}</p>
  995.             </div>
  996.         {% else %}
  997.             <div class=\"sort-big-box\">
  998.                 <h2>商品一覧</h2>
  999.                     <div class=\"sort-box\">
  1000. \t\t\t\t\t<!--<a href=\"{{ app.request.getUri }}&orderby=4\">おすすめ順</a>-->
  1001.                         <a href=\"{{ app.request.getUri }}&orderby=2\">新着順</a>
  1002.                         <a href=\"{{ app.request.getUri }}&orderby=1\">価格の安い順</a>
  1003.                         <a href=\"{{ app.request.getUri }}&orderby=3\">価格の高い順</a>
  1004.                     </div>
  1005.                 {% if cn1 is empty and  cn2 is empty and  cn3 is empty and  cn4 is empty and  cn5 is empty and  cn6 is empty %}
  1006.                 {% else %}
  1007.                     <p class=\"search_res_text\">検索ワード:{{ cn2 }}{{ cn3 }}{{ cn4 }}{{ cn5 }}{{ cn6 }}{{ cn7 }}{{ cn1 }}</p>
  1008.                 {% endif %}
  1009.             </div>
  1010.             <div class=\"product-big-list\">
  1011.                 
  1012.             {% if pagination.totalItemCount > 0 %}
  1013.                     {% for Product in pagination %}
  1014.                     <div class=\"product-list-box\">
  1015.                             {% if app.request.query.get('category_id') == 219 or app.request.query.get('category_id') == 218 %}
  1016.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1017.                             {% else %}
  1018.                                 <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1019.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1020.                                 </a>
  1021.                             {% endif %}
  1022.                             <p>{{ Product.name }}</p>
  1023.                             <p class=\"price\">
  1024.                                 {% if Product.hasProductClass %}
  1025.                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  1026.                                         {{ Product.getPrice02IncTaxMin|number_format }}
  1027.                                     {% else %}
  1028.                                         {{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}
  1029.                                     {% endif %}
  1030.                                 {% else %}
  1031.                                     {{ Product.getPrice02IncTaxMin|number_format }}
  1032.                                 {% endif %}
  1033.                                 <span>円</span>
  1034.                             </p>
  1035.                             {% if Product.stock_find %}
  1036.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1037.                                         {% if hasCategory %}
  1038.                                             {% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
  1039.                                                 <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  1040.                                             {% else %}
  1041.                                             {% endif %}
  1042.                                         {% endif %}
  1043.                                     <label class=\"number-spinner-wrap\">
  1044.                                         <input type=\"number\" id=\"quantity{{ Product.id }}\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  1045.                                         <span class=\"spinner spinner-down\"> <img src=\"{{ asset('/html/user_data/assets/img/minus.png') }}\" class=\"numcursul\" alt=\"\"> </span>
  1046.                                         <span class=\"spinner spinner-up\"> <img src=\"{{ asset('/html/user_data/assets/img/plus.png') }}\" class=\"numcursul\" alt=\"\"> </span>
  1047.                                     </label>
  1048.                                     <input type=\"hidden\" id=\"product_id{{ Product.id }}\" name=\"product_id\" value=\"{{ Product.id }}\">
  1049.                                     <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"{{ Product.ProductClasses[0].id }}\">
  1050.                                     <input type=\"hidden\" id=\"_token{{ Product.id }}\" name=\"_token\" value=\"{{ csrf_token('Eccube\\\\Form\\\\Type\\\\AddCartType') }}\" />
  1051.                                 </form>
  1052.                                     {% if hasCategory %}
  1053.                                         {% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
  1054.                                             <div class=\"cart-in-btn\">
  1055.                                                 <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> 売却する </button>
  1056.                                             </div>
  1057.                                         {% else %}
  1058.                                             <div class=\"cart-in-btn\">
  1059.                                                 <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> カートに入れる </button>
  1060.                                             </div>
  1061.                                         {% endif %}
  1062.                                     {% endif %}
  1063.                                     
  1064.                                     
  1065.                                 
  1066.                             {% else %}
  1067.                                 <div class=\"cart-in-btn\">
  1068.                                     <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> {{ '品切れ中'|trans }} </button>
  1069.                                 </div>
  1070.                             {% endif %}
  1071.                         </div>
  1072.                         <!--<li class=\"ec-shelfGrid__item\">
  1073.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1074.                                 <p class=\"ec-shelfGrid__item-image\">
  1075.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1076.                                 </p>
  1077.                                 <p>{{ Product.name }}</p>
  1078.                                 {% if Product.description_list %}
  1079.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  1080.                                 {% endif %}
  1081.                                 <p class=\"price02-default\">
  1082.                                     {% if Product.hasProductClass %}
  1083.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  1084.                                             {{ Product.getPrice02IncTaxMin|price }}
  1085.                                         {% else %}
  1086.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  1087.                                         {% endif %}
  1088.                                     {% else %}
  1089.                                         {{ Product.getPrice02IncTaxMin|price }}
  1090.                                     {% endif %}
  1091.                                 </p>
  1092.                             </a>
  1093.                             {% if Product.stock_find %}
  1094.                                 {% set form = forms[Product.id] %}
  1095.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1096.                                     <div class=\"ec-productRole__actions\">
  1097.                                         {% if form.classcategory_id1 is defined %}
  1098.                                             <div class=\"ec-select\">
  1099.                                                 {{ form_widget(form.classcategory_id1) }}
  1100.                                                 {{ form_errors(form.classcategory_id1) }}
  1101.                                             </div>
  1102.                                             {% if form.classcategory_id2 is defined %}
  1103.                                                 <div class=\"ec-select\">
  1104.                                                     {{ form_widget(form.classcategory_id2) }}
  1105.                                                     {{ form_errors(form.classcategory_id2) }}
  1106.                                                 </div>
  1107.                                             {% endif %}
  1108.                                         {% endif %}
  1109.                                         <div class=\"ec-numberInput\"><span>{{ 'common.quantity'|trans }}</span>
  1110.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  1111.                                             {{ form_errors(form.quantity) }}
  1112.                                         </div>
  1113.                                     </div>
  1114.                                     {{ form_rest(form) }}
  1115.                                 </form>
  1116.                                 <div class=\"ec-productRole__btn\">
  1117.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  1118.                                         {{ 'front.product.add_cart'|trans }}
  1119.                                     </button>
  1120.                                 </div>
  1121.                             {% else %}
  1122.                                 <div class=\"ec-productRole__btn\">
  1123.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1124.                                         {{ 'front.product.out_of_stock'|trans }}
  1125.                                     </button>
  1126.                                 </div>
  1127.                             {% endif %}
  1128.                         </li>-->
  1129.                     {% endfor %}
  1130.                 </div>
  1131.                 <div class=\"ec-modal\">
  1132.                     <div class=\"ec-modal-overlay\">
  1133.                         <div class=\"ec-modal-wrap\">
  1134.                             <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1135.                             <div id=\"ec-modal-header\" class=\"text-center\">{{ 'front.product.add_cart_complete'|trans }}</div>
  1136.                             <div class=\"ec-modal-box\">
  1137.                                 <div class=\"ec-role\">
  1138.                                     <span class=\"ec-inlineBtn--cancel\">{{ 'front.product.continue'|trans }}</span>
  1139.                                     <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'common.go_to_cart'|trans }}</a>
  1140.                                 </div>
  1141.                             </div>
  1142.                         </div>
  1143.                     </div>
  1144.                 </div>
  1145.                 <div class=\"ec-pagerRole\">
  1146.                     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1147.                 </div>
  1148.             {% endif %}
  1149.         {% endif %}
  1150.         </div>
  1151.     </div>
  1152. {% endblock %}""Product/list.twig""/home/northserver/tcg-mana.com/public_html/app/template/default/Product/list.twig");
  1153.     }
  1154. }