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

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.         } elseif ((        // line 21
  52. (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'21$this->source); })()) != "")) {
  53.             // line 22
  54.             $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.'22$this->source); })()), "RootCategory", [], "any"falsefalsefalse22);
  55.             // line 23
  56.             $context["hasCategory"] = true;
  57.         } elseif (twig_in_filter("name=",         // line 24
  58. (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'24$this->source); })()))) {
  59.             // line 25
  60.             $context["hasCategory"] = false;
  61.         }
  62.         // line 28
  63.         if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'28$this->source); })())) {
  64.             // line 29
  65.             $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.'29$this->source); })()), "RootCategory", [], "any"falsefalsefalse29);
  66.         }
  67.         // line 32
  68.         $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.'32$this->source); })()), "request", [], "any"falsefalsefalse32), "query", [], "any"falsefalsefalse32), "get", [=> "type"], "method"falsefalsefalse32);
  69.         // line 33
  70.         $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.'33$this->source); })()), "request", [], "any"falsefalsefalse33), "query", [], "any"falsefalsefalse33), "get", [=> "category_id2"], "method"falsefalsefalse33);
  71.         // line 34
  72.         $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.'34$this->source); })()), "request", [], "any"falsefalsefalse34), "query", [], "any"falsefalsefalse34), "get", [=> "category_id3"], "method"falsefalsefalse34);
  73.         // line 35
  74.         $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.'35$this->source); })()), "request", [], "any"falsefalsefalse35), "query", [], "any"falsefalsefalse35), "get", [=> "category_id4"], "method"falsefalsefalse35);
  75.         // line 36
  76.         $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.'36$this->source); })()), "request", [], "any"falsefalsefalse36), "query", [], "any"falsefalsefalse36), "get", [=> "category_id5"], "method"falsefalsefalse36);
  77.         // line 37
  78.         $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.'37$this->source); })()), "request", [], "any"falsefalsefalse37), "query", [], "any"falsefalsefalse37), "get", [=> "tag_id"], "method"falsefalsefalse37);
  79.         // line 39
  80.         $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.'39$this->source); })()));
  81.         // line 40
  82.         $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.'40$this->source); })()));
  83.         // line 41
  84.         $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.'41$this->source); })()));
  85.         // line 42
  86.         $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.'42$this->source); })()));
  87.         // line 43
  88.         $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.'43$this->source); })()));
  89.         // line 45
  90.         $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.'45$this->source); })()), "request", [], "any"falsefalsefalse45), "query", [], "any"falsefalsefalse45), "get", [=> "name"], "method"falsefalsefalse45);
  91.         // line 47
  92.         if ((((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'47$this->source); })()) == 0) && ((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'47$this->source); })()) != ""))) {
  93.             // line 48
  94.             $context["cn2"] = "";
  95.         } elseif (((        // line 49
  96. (isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'49$this->source); })()) == 1) && ((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'49$this->source); })()) != ""))) {
  97.             // line 50
  98.             $context["cn2"] = "ヴァイスシュヴァルツ,";
  99.         } elseif (((        // line 51
  100. (isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'51$this->source); })()) == 2) && ((isset($context["prm2"]) || array_key_exists("prm2"$context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.'51$this->source); })()) != ""))) {
  101.             // line 52
  102.             $context["cn2"] = "ポケモン,";
  103.         } else {
  104.             // line 54
  105.             $context["cn2"] = "";
  106.         }
  107.         // line 57
  108.         $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.'57$this->source); })()));
  109.         // line 58
  110.         $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.'58$this->source); })()));
  111.         // line 59
  112.         $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.'59$this->source); })()));
  113.         // line 60
  114.         $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.'60$this->source); })()));
  115.         // line 62
  116.         if ((((isset($context["prm7"]) || array_key_exists("prm7"$context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.'62$this->source); })()) == 4) && ((isset($context["prm7"]) || array_key_exists("prm7"$context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.'62$this->source); })()) != ""))) {
  117.             // line 63
  118.             $context["cn7"] = "傷あり商品,";
  119.         } else {
  120.             // line 65
  121.             $context["cn7"] = "";
  122.         }
  123.         // line 11
  124.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  125.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  126.         
  127.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  128.         
  129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  130.     }
  131.     // line 68
  132.     public function block_javascript($context, array $blocks = [])
  133.     {
  134.         $macros $this->macros;
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  139.         // line 69
  140.         echo "    <script>
  141.         eccube.productsClassCategories = {
  142.             ";
  143.         // line 71
  144.         $context['_parent'] = $context;
  145.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'71$this->source); })()));
  146.         $context['loop'] = [
  147.           'parent' => $context['_parent'],
  148.           'index0' => 0,
  149.           'index'  => 1,
  150.           'first'  => true,
  151.         ];
  152.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  153.             $length count($context['_seq']);
  154.             $context['loop']['revindex0'] = $length 1;
  155.             $context['loop']['revindex'] = $length;
  156.             $context['loop']['length'] = $length;
  157.             $context['loop']['last'] = === $length;
  158.         }
  159.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  160.             // line 72
  161.             echo "            \"";
  162.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse72), "js"), "html"nulltrue);
  163.             echo "\": ";
  164.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  165.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse72)) {
  166.                 echo ", ";
  167.             }
  168.             // line 73
  169.             echo "            ";
  170.             ++$context['loop']['index0'];
  171.             ++$context['loop']['index'];
  172.             $context['loop']['first'] = false;
  173.             if (isset($context['loop']['length'])) {
  174.                 --$context['loop']['revindex0'];
  175.                 --$context['loop']['revindex'];
  176.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  177.             }
  178.         }
  179.         $_parent $context['_parent'];
  180.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  181.         $context array_intersect_key($context$_parent) + $_parent;
  182.         // line 74
  183.         echo "        };
  184.         \$(function() {
  185.             // 表示件数を変更
  186.             \$('.disp-number').change(function() {
  187.                 var dispNumber = \$(this).val();
  188.                 \$('#disp_number').val(dispNumber);
  189.                 \$('#pageno').val(1);
  190.                 \$(\"#form1\").submit();
  191.             });
  192.             // 並び順を変更
  193.             \$('.order-by').change(function() {
  194.                 var orderBy = \$(this).val();
  195.                 \$('#orderby').val(orderBy);
  196.                 \$('#pageno').val(1);
  197.                 \$(\"#form1\").submit();
  198.             });
  199.             \$('.add-cart').on('click', function(e) {
  200.                 var \$form = \$(this).parents('li').find('form');
  201.                 // 個数フォームのチェック
  202.                 var \$quantity = \$form.parent().find('.quantity');
  203.                 if (\$quantity.val() < 1) {
  204.                     \$quantity[0].setCustomValidity('";
  205.         // line 99
  206.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.invalid_quantity"), "html"nulltrue);
  207.         echo "');
  208.                     setTimeout(function() {
  209.                         loadingOverlay('hide');
  210.                     }, 100);
  211.                     return true;
  212.                 } else {
  213.                     \$quantity[0].setCustomValidity('');
  214.                 }
  215.                 e.preventDefault();
  216.                 \$.ajax({
  217.                     url: \$form.attr('action'),
  218.                     type: \$form.attr('method'),
  219.                     data: \$form.serialize(),
  220.                     dataType: 'json',
  221.                     beforeSend: function(xhr, settings) {
  222.                         // Buttonを無効にする
  223.                         \$('.add-cart').prop('disabled', true);
  224.                     }
  225.                 }).done(function(data) {
  226.                     // レスポンス内のメッセージをalertで表示
  227.                     \$.each(data.messages, function() {
  228.                         \$('#ec-modal-header').text(this);
  229.                     });
  230.                     \$('.ec-modal').show()
  231.                     // カートブロックを更新する
  232.                     \$.ajax({
  233.                         url: '";
  234.         // line 127
  235.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  236.         echo "',
  237.                         type: 'GET',
  238.                         dataType: 'html'
  239.                     }).done(function(html) {
  240.                         \$('.ec-headerRole__cart').html(html);
  241.                     });
  242.                 }).fail(function(data) {
  243.                     alert('";
  244.         // line 134
  245.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "html"nulltrue);
  246.         echo "');
  247.                 }).always(function(data) {
  248.                     // Buttonを有効にする
  249.                     \$('.add-cart').prop('disabled', false);
  250.                 });
  251.             });
  252.         });
  253.         \$('.ec-modal-wrap').on('click', function(e) {
  254.             // モーダル内の処理は外側にバブリングさせない
  255.             e.stopPropagation();
  256.         });
  257.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  258.             \$('.ec-modal').hide()
  259.         });
  260.         ";
  261.         // line 149
  262.         if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'149$this->source); })())) {
  263.             // line 150
  264.             echo "            ";
  265.             if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'150$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'150$this->source); })()) == "買い取り"))) {
  266.                 // line 151
  267.                 echo "                \$('.bigbox').css('background-color','#22b573');
  268.                 \$('.header-middle').css('background-color','#22b573');
  269.                 \$('.side-searchbox').css('background-color','#22b573');
  270.                 \$('.side-cat-more').css('background-color','#22b573');
  271.                 \$('.side-cat-more2').css('background-color','#22b573');
  272.                 \$('.side-cat-more3').css('background-color','#22b573');
  273.             ";
  274.             }
  275.             // line 158
  276.             echo "        ";
  277.         }
  278.         // line 159
  279.         echo "        \$(document).ready(function() {
  280.           // プラスボタンがクリックされたとき
  281.           \$('.spinner-up').click(function() {
  282.             // 対応する数量フィールドのIDを取得
  283.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  284.             
  285.             // 対応する数量フィールドの値を取得
  286.             var quantity = parseInt(\$('#' + productId).val());
  287.         
  288.             // 値を増加させて数量フィールドに設定
  289.             \$('#' + productId).val(quantity + 1);
  290.           });
  291.         
  292.           // マイナスボタンがクリックされたとき
  293.           \$('.spinner-down').click(function() {
  294.             // 対応する数量フィールドのIDを取得
  295.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  296.             
  297.             // 対応する数量フィールドの値を取得
  298.             var quantity = parseInt(\$('#' + productId).val());
  299.         
  300.             // 値を減少させて数量フィールドに設定 (1未満にはしない)
  301.             if (quantity > 1) {
  302.               \$('#' + productId).val(quantity - 1);
  303.             }
  304.           });
  305.         });
  306.     </script>
  307. ";
  308.         
  309.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  310.         
  311.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  312.     }
  313.     // line 189
  314.     public function block_main($context, array $blocks = [])
  315.     {
  316.         $macros $this->macros;
  317.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  318.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  319.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  320.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  321.         // line 190
  322.         echo "    <div class=\"ec-layoutRole__mainTop\">
  323.         <div class=\"top-content-box cat_mob_top-content-box\">
  324.             ";
  325.         // line 192
  326.         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.'192$this->source); })()), "category_id", [], "any"falsefalsefalse192), "vars", [], "any"falsefalsefalse192), "errors", [], "any"falsefalsefalse192)) > 0)) {
  327.             // line 193
  328.             echo "                <div class=\"test\">
  329.                     <p class=\"errormsg text-danger\">";
  330.             // line 194
  331.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.search__category_not_found"), "html"nulltrue);
  332.             echo "</p>
  333.                 </div>
  334.             ";
  335.         } else {
  336.             // line 197
  337.             echo "                <div class=\"sort-big-box\">
  338.                     <h2>商品一覧</h2>
  339.                     <div class=\"sort-box\">
  340.                         <a href=\"";
  341.             // line 200
  342.             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.'200$this->source); })()), "request", [], "any"falsefalsefalse200), "getUri", [], "any"falsefalsefalse200), "html"nulltrue);
  343.             echo "&orderby=0\">おすすめ順</a>
  344.                         <a href=\"";
  345.             // line 201
  346.             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.'201$this->source); })()), "request", [], "any"falsefalsefalse201), "getUri", [], "any"falsefalsefalse201), "html"nulltrue);
  347.             echo "&orderby=2\">新着順</a>
  348.                         <a href=\"";
  349.             // line 202
  350.             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.'202$this->source); })()), "request", [], "any"falsefalsefalse202), "getUri", [], "any"falsefalsefalse202), "html"nulltrue);
  351.             echo "&orderby=1\">価格の安い順</a>
  352.                         <a href=\"";
  353.             // line 203
  354.             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.'203$this->source); })()), "request", [], "any"falsefalsefalse203), "getUri", [], "any"falsefalsefalse203), "html"nulltrue);
  355.             echo "&orderby=3\">価格の高い順</a>
  356.                     </div>
  357.                     ";
  358.             // line 205
  359.             if (((((( !twig_test_empty((isset($context["cn1"]) || array_key_exists("cn1"$context) ? $context["cn1"] : (function () { throw new RuntimeError('Variable "cn1" does not exist.'205$this->source); })())) ||  !twig_test_empty((isset($context["cn2"]) || array_key_exists("cn2"$context) ? $context["cn2"] : (function () { throw new RuntimeError('Variable "cn2" does not exist.'205$this->source); })()))) ||  !twig_test_empty((isset($context["cn3"]) || array_key_exists("cn3"$context) ? $context["cn3"] : (function () { throw new RuntimeError('Variable "cn3" does not exist.'205$this->source); })()))) ||  !twig_test_empty((isset($context["cn4"]) || array_key_exists("cn4"$context) ? $context["cn4"] : (function () { throw new RuntimeError('Variable "cn4" does not exist.'205$this->source); })()))) ||  !twig_test_empty((isset($context["cn5"]) || array_key_exists("cn5"$context) ? $context["cn5"] : (function () { throw new RuntimeError('Variable "cn5" does not exist.'205$this->source); })()))) ||  !twig_test_empty((isset($context["cn6"]) || array_key_exists("cn6"$context) ? $context["cn6"] : (function () { throw new RuntimeError('Variable "cn6" does not exist.'205$this->source); })())))) {
  360.                 // line 206
  361.                 echo "                        <p class=\"search_res_text\">検索ワード:";
  362.                 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.'206$this->source); })()), "html"nulltrue);
  363.                 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.'206$this->source); })()), "html"nulltrue);
  364.                 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.'206$this->source); })()), "html"nulltrue);
  365.                 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.'206$this->source); })()), "html"nulltrue);
  366.                 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.'206$this->source); })()), "html"nulltrue);
  367.                 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.'206$this->source); })()), "html"nulltrue);
  368.                 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.'206$this->source); })()), "html"nulltrue);
  369.                 echo "</p>
  370.                     ";
  371.             }
  372.             // line 208
  373.             echo "                </div>
  374.                <div class=\"product-big-list\">
  375.                     ";
  376.             // line 210
  377.             if ((isset($context["orderby"]) || array_key_exists("orderby"$context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.'210$this->source); })())) {
  378.                 // line 211
  379.                 echo "                        ";
  380.                 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.'211$this->source); })()), "totalItemCount", [], "any"falsefalsefalse211) > 0)) {
  381.                     // line 212
  382.                     echo "                            ";
  383.                     $context['_parent'] = $context;
  384.                     $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'212$this->source); })()));
  385.                     foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  386.                         // line 213
  387.                         echo "                                <div class=\"product-list-box\">
  388.                                     ";
  389.                         // line 214
  390.                         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.'214$this->source); })()), "request", [], "any"falsefalsefalse214), "query", [], "any"falsefalsefalse214), "get", [=> "category_id"], "method"falsefalsefalse214) == 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.'214$this->source); })()), "request", [], "any"falsefalsefalse214), "query", [], "any"falsefalsefalse214), "get", [=> "category_id"], "method"falsefalsefalse214) == 218))) {
  391.                             // line 215
  392.                             echo "                                        <img src=\"";
  393.                             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"falsefalsefalse215)), "save_image"), "html"nulltrue);
  394.                             echo "\">
  395.                                     ";
  396.                         } else {
  397.                             // line 217
  398.                             echo "                                        <a href=\"";
  399.                             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"falsefalsefalse217)]), "html"nulltrue);
  400.                             echo "\">
  401.                                             <img src=\"";
  402.                             // line 218
  403.                             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"falsefalsefalse218)), "save_image"), "html"nulltrue);
  404.                             echo "\">
  405.                                         </a>
  406.                                     ";
  407.                         }
  408.                         // line 221
  409.                         echo "                                    <p>";
  410.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse221), "html"nulltrue);
  411.                         echo "</p>
  412.                                     <p class=\"price\">
  413.                                         ";
  414.                         // line 223
  415.                         if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse223)) {
  416.                             // line 224
  417.                             echo "                                            ";
  418.                             if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse224) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse224))) {
  419.                                 // line 225
  420.                                 echo "                                                ";
  421.                                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse225)), "html"nulltrue);
  422.                                 echo "
  423.                                             ";
  424.                             } else {
  425.                                 // line 227
  426.                                 echo "                                                ";
  427.                                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse227)), "html"nulltrue);
  428.                                 echo " ~ ";
  429.                                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse227)), "html"nulltrue);
  430.                                 echo "
  431.                                             ";
  432.                             }
  433.                             // line 229
  434.                             echo "                                        ";
  435.                         } else {
  436.                             // line 230
  437.                             echo "                                            ";
  438.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse230)), "html"nulltrue);
  439.                             echo "
  440.                                         ";
  441.                         }
  442.                         // line 232
  443.                         echo "                                        <span>円</span>
  444.                                     </p>
  445.                                     ";
  446.                         // line 234
  447.                         if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse234)) {
  448.                             // line 235
  449.                             echo "
  450.                                         <form name=\"form";
  451.                             // line 236
  452.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse236), "html"nulltrue);
  453.                             echo "\" id=\"productForm";
  454.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse236), "html"nulltrue);
  455.                             echo "\" action=\"";
  456.                             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"falsefalsefalse236)]), "html"nulltrue);
  457.                             echo "\" method=\"post\">
  458.                                                 ";
  459.                             // line 237
  460.                             if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'237$this->source); })())) {
  461.                                 // line 238
  462.                                 echo "                                                    ";
  463.                                 if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'238$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'238$this->source); })()) == "買い取り"))) {
  464.                                     // line 239
  465.                                     echo "                                                        <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  466.                                                     ";
  467.                                 } else {
  468.                                     // line 241
  469.                                     echo "                                                    ";
  470.                                 }
  471.                                 // line 242
  472.                                 echo "                                                ";
  473.                             }
  474.                             // line 243
  475.                             echo "                                            <label class=\"number-spinner-wrap\">
  476.                                                 <input type=\"number\" id=\"quantity";
  477.                             // line 244
  478.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse244), "html"nulltrue);
  479.                             echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  480.                                                 <span class=\"spinner spinner-down\"> <img src=\"";
  481.                             // line 245
  482.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/minus.png"), "html"nulltrue);
  483.                             echo "\" class=\"numcursul\" alt=\"\"> </span>
  484.                                                 <span class=\"spinner spinner-up\"> <img src=\"";
  485.                             // line 246
  486.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/plus.png"), "html"nulltrue);
  487.                             echo "\" class=\"numcursul\" alt=\"\"> </span>
  488.                                             </label>
  489.                                             <input type=\"hidden\" id=\"product_id";
  490.                             // line 248
  491.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse248), "html"nulltrue);
  492.                             echo "\" name=\"product_id\" value=\"";
  493.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse248), "html"nulltrue);
  494.                             echo "\">
  495.                                             <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
  496.                             // line 249
  497.                             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"falsefalsefalse249), 0, [], "array"falsefalsefalse249), "id", [], "any"falsefalsefalse249), "html"nulltrue);
  498.                             echo "\">
  499.                                             <input type=\"hidden\" id=\"_token";
  500.                             // line 250
  501.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse250), "html"nulltrue);
  502.                             echo "\" name=\"_token\" value=\"";
  503.                             echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("Eccube\\Form\\Type\\AddCartType"), "html"nulltrue);
  504.                             echo "\" />
  505.                                         </form>
  506.                                             ";
  507.                             // line 252
  508.                             if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'252$this->source); })())) {
  509.                                 // line 253
  510.                                 echo "                                                ";
  511.                                 if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'253$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'253$this->source); })()) == "買い取り"))) {
  512.                                     // line 254
  513.                                     echo "                                                    <div class=\"cart-in-btn\">
  514.                                                         <button class=\"add-cart-custom\" data-cartid=\"";
  515.                                     // line 255
  516.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse255), "html"nulltrue);
  517.                                     echo "\" form=\"productForm";
  518.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse255), "html"nulltrue);
  519.                                     echo "\" type=\"submit\"> 売却する </button>
  520.                                                     </div>
  521.                                                 ";
  522.                                 } else {
  523.                                     // line 258
  524.                                     echo "                                                    <div class=\"cart-in-btn\">
  525.                                                         <button class=\"add-cart-custom\" data-cartid=\"";
  526.                                     // line 259
  527.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse259), "html"nulltrue);
  528.                                     echo "\" form=\"productForm";
  529.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse259), "html"nulltrue);
  530.                                     echo "\" type=\"submit\"> カートに入れる </button>
  531.                                                     </div>
  532.                                                 ";
  533.                                 }
  534.                                 // line 262
  535.                                 echo "                                            ";
  536.                             }
  537.                             // line 263
  538.                             echo "                                    ";
  539.                         } else {
  540.                             // line 264
  541.                             echo "                                        <div class=\"cart-in-btn\">
  542.                                             <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> ";
  543.                             // line 265
  544.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html"nulltrue);
  545.                             echo " </button>
  546.                                         </div>
  547.                                     ";
  548.                         }
  549.                         // line 268
  550.                         echo "                                </div>
  551.                             ";
  552.                     }
  553.                     $_parent $context['_parent'];
  554.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  555.                     $context array_intersect_key($context$_parent) + $_parent;
  556.                     // line 270
  557.                     echo "                        ";
  558.                 }
  559.                 // line 271
  560.                 echo "                    ";
  561.             } else {
  562.                 // line 272
  563.                 echo "                        ";
  564.                 if ((array_key_exists("groupedProducts"$context) && (twig_length_filter($this->env, (isset($context["groupedProducts"]) || array_key_exists("groupedProducts"$context) ? $context["groupedProducts"] : (function () { throw new RuntimeError('Variable "groupedProducts" does not exist.'272$this->source); })())) > 0))) {
  565.                     // line 273
  566.                     echo "                            ";
  567.                     $context['_parent'] = $context;
  568.                     $context['_seq'] = twig_ensure_traversable((isset($context["groupedProducts"]) || array_key_exists("groupedProducts"$context) ? $context["groupedProducts"] : (function () { throw new RuntimeError('Variable "groupedProducts" does not exist.'273$this->source); })()));
  569.                     foreach ($context['_seq'] as $context["rarity"] => $context["products"]) {
  570.                         // line 274
  571.                         echo "                                ";
  572.                         if ( !twig_test_empty($context["products"])) {
  573.                             // line 275
  574.                             echo "                                    <h2>";
  575.                             echo twig_escape_filter($this->env$context["rarity"], "html"nulltrue);
  576.                             echo " 商品</h2>
  577.                                     <div class=\"rarity-group-";
  578.                             // line 276
  579.                             echo twig_escape_filter($this->envtwig_lower_filter($this->env$context["rarity"]), "html"nulltrue);
  580.                             echo " product-list-container\">
  581.                                         ";
  582.                             // line 277
  583.                             $context['_parent'] = $context;
  584.                             $context['_seq'] = twig_ensure_traversable($context["products"]);
  585.                             foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  586.                                 // line 278
  587.                                 echo "                                            <div class=\"product-list-box\">
  588.                                                 ";
  589.                                 // line 279
  590.                                 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.'279$this->source); })()), "request", [], "any"falsefalsefalse279), "query", [], "any"falsefalsefalse279), "get", [=> "category_id"], "method"falsefalsefalse279) == 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.'279$this->source); })()), "request", [], "any"falsefalsefalse279), "query", [], "any"falsefalsefalse279), "get", [=> "category_id"], "method"falsefalsefalse279) == 218))) {
  591.                                     // line 280
  592.                                     echo "                                                    <img src=\"";
  593.                                     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"falsefalsefalse280)), "save_image"), "html"nulltrue);
  594.                                     echo "\">
  595.                                                 ";
  596.                                 } else {
  597.                                     // line 282
  598.                                     echo "                                                    <a href=\"";
  599.                                     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"falsefalsefalse282)]), "html"nulltrue);
  600.                                     echo "\">
  601.                                                         <img src=\"";
  602.                                     // line 283
  603.                                     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"falsefalsefalse283)), "save_image"), "html"nulltrue);
  604.                                     echo "\">
  605.                                                     </a>
  606.                                                 ";
  607.                                 }
  608.                                 // line 286
  609.                                 echo "                                                <p>";
  610.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse286), "html"nulltrue);
  611.                                 echo "</p>
  612.                                                 <p class=\"price\">
  613.                                                     ";
  614.                                 // line 288
  615.                                 if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse288)) {
  616.                                     // line 289
  617.                                     echo "                                                        ";
  618.                                     if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse289) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse289))) {
  619.                                         // line 290
  620.                                         echo "                                                            ";
  621.                                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse290)), "html"nulltrue);
  622.                                         echo "
  623.                                                         ";
  624.                                     } else {
  625.                                         // line 292
  626.                                         echo "                                                            ";
  627.                                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse292)), "html"nulltrue);
  628.                                         echo " 〜 ";
  629.                                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse292)), "html"nulltrue);
  630.                                         echo "
  631.                                                         ";
  632.                                     }
  633.                                     // line 294
  634.                                     echo "                                                    ";
  635.                                 } else {
  636.                                     // line 295
  637.                                     echo "                                                        ";
  638.                                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse295)), "html"nulltrue);
  639.                                     echo "
  640.                                                     ";
  641.                                 }
  642.                                 // line 297
  643.                                 echo "                                                    <span>円</span>
  644.                                                 </p>
  645.                                                 ";
  646.                                 // line 299
  647.                                 if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse299)) {
  648.                                     // line 300
  649.                                     echo "                                                    <form name=\"form";
  650.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse300), "html"nulltrue);
  651.                                     echo "\" id=\"productForm";
  652.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse300), "html"nulltrue);
  653.                                     echo "\" action=\"";
  654.                                     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"falsefalsefalse300)]), "html"nulltrue);
  655.                                     echo "\" method=\"post\">
  656.                                                         ";
  657.                                     // line 301
  658.                                     if (((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'301$this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'301$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'301$this->source); })()) == "買い取り")))) {
  659.                                         // line 302
  660.                                         echo "                                                            <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  661.                                                         ";
  662.                                     }
  663.                                     // line 304
  664.                                     echo "                                                        <label class=\"number-spinner-wrap\">
  665.                                                             <input type=\"number\" id=\"quantity";
  666.                                     // line 305
  667.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse305), "html"nulltrue);
  668.                                     echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  669.                                                             <span class=\"spinner spinner-down\">
  670.                                                                 <img src=\"";
  671.                                     // line 307
  672.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/minus.png"), "html"nulltrue);
  673.                                     echo "\" class=\"numcursul\" alt=\"\">
  674.                                                             </span>
  675.                                                             <span class=\"spinner spinner-up\">
  676.                                                                 <img src=\"";
  677.                                     // line 310
  678.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/plus.png"), "html"nulltrue);
  679.                                     echo "\" class=\"numcursul\" alt=\"\">
  680.                                                             </span>
  681.                                                         </label>
  682.                                                         <input type=\"hidden\" id=\"product_id";
  683.                                     // line 313
  684.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse313), "html"nulltrue);
  685.                                     echo "\" name=\"product_id\" value=\"";
  686.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse313), "html"nulltrue);
  687.                                     echo "\">
  688.                                                         <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
  689.                                     // line 314
  690.                                     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"falsefalsefalse314), 0, [], "array"falsefalsefalse314), "id", [], "any"falsefalsefalse314), "html"nulltrue);
  691.                                     echo "\">
  692.                                                         <input type=\"hidden\" id=\"_token";
  693.                                     // line 315
  694.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse315), "html"nulltrue);
  695.                                     echo "\" name=\"_token\" value=\"";
  696.                                     echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("Eccube\\Form\\Type\\AddCartType"), "html"nulltrue);
  697.                                     echo "\" />
  698.                                                     </form>
  699.                                                     <div class=\"cart-in-btn\">
  700.                                                         ";
  701.                                     // line 318
  702.                                     if (((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'318$this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'318$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'318$this->source); })()) == "買い取り")))) {
  703.                                         // line 319
  704.                                         echo "                                                            <button class=\"add-cart-custom\" data-cartid=\"";
  705.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse319), "html"nulltrue);
  706.                                         echo "\" form=\"productForm";
  707.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse319), "html"nulltrue);
  708.                                         echo "\" type=\"submit\"> 売却する </button>
  709.                                                         ";
  710.                                     } else {
  711.                                         // line 321
  712.                                         echo "                                                            <button class=\"add-cart-custom\" data-cartid=\"";
  713.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse321), "html"nulltrue);
  714.                                         echo "\" form=\"productForm";
  715.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse321), "html"nulltrue);
  716.                                         echo "\" type=\"submit\"> カートに入れる </button>
  717.                                                         ";
  718.                                     }
  719.                                     // line 323
  720.                                     echo "                                                    </div>
  721.                                                 ";
  722.                                 } else {
  723.                                     // line 325
  724.                                     echo "                                                    <div class=\"cart-in-btn\">
  725.                                                         <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">";
  726.                                     // line 326
  727.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html"nulltrue);
  728.                                     echo "</button>
  729.                                                     </div>
  730.                                                 ";
  731.                                 }
  732.                                 // line 329
  733.                                 echo "                                            </div>
  734.                                         ";
  735.                             }
  736.                             $_parent $context['_parent'];
  737.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  738.                             $context array_intersect_key($context$_parent) + $_parent;
  739.                             // line 331
  740.                             echo "                                    </div>
  741.                                 ";
  742.                         }
  743.                         // line 333
  744.                         echo "                            ";
  745.                     }
  746.                     $_parent $context['_parent'];
  747.                     unset($context['_seq'], $context['_iterated'], $context['rarity'], $context['products'], $context['_parent'], $context['loop']);
  748.                     $context array_intersect_key($context$_parent) + $_parent;
  749.                     // line 334
  750.                     echo "                        ";
  751.                 }
  752.                 // line 335
  753.                 echo "                        ";
  754.                 // line 336
  755.                 echo "                        ";
  756.                 if ((array_key_exists("otherProducts"$context) && (twig_length_filter($this->env, (isset($context["otherProducts"]) || array_key_exists("otherProducts"$context) ? $context["otherProducts"] : (function () { throw new RuntimeError('Variable "otherProducts" does not exist.'336$this->source); })())) > 0))) {
  757.                     // line 337
  758.                     echo "                            <h2>その他の商品</h2>
  759.                             <div class=\"rarity-group-other product-list-container\">
  760.                                 ";
  761.                     // line 339
  762.                     $context['_parent'] = $context;
  763.                     $context['_seq'] = twig_ensure_traversable((isset($context["otherProducts"]) || array_key_exists("otherProducts"$context) ? $context["otherProducts"] : (function () { throw new RuntimeError('Variable "otherProducts" does not exist.'339$this->source); })()));
  764.                     foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  765.                         // line 340
  766.                         echo "                                    <div class=\"product-list-box\">
  767.                                         ";
  768.                         // line 341
  769.                         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.'341$this->source); })()), "request", [], "any"falsefalsefalse341), "query", [], "any"falsefalsefalse341), "get", [=> "category_id"], "method"falsefalsefalse341) == 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.'341$this->source); })()), "request", [], "any"falsefalsefalse341), "query", [], "any"falsefalsefalse341), "get", [=> "category_id"], "method"falsefalsefalse341) == 218))) {
  770.                             // line 342
  771.                             echo "                                            <img src=\"";
  772.                             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"falsefalsefalse342)), "save_image"), "html"nulltrue);
  773.                             echo "\">
  774.                                         ";
  775.                         } else {
  776.                             // line 344
  777.                             echo "                                            <a href=\"";
  778.                             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"falsefalsefalse344)]), "html"nulltrue);
  779.                             echo "\">
  780.                                                 <img src=\"";
  781.                             // line 345
  782.                             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"falsefalsefalse345)), "save_image"), "html"nulltrue);
  783.                             echo "\">
  784.                                             </a>
  785.                                         ";
  786.                         }
  787.                         // line 348
  788.                         echo "                                        <p>";
  789.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse348), "html"nulltrue);
  790.                         echo "</p>
  791.                                         <p class=\"price\">
  792.                                             ";
  793.                         // line 350
  794.                         if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse350)) {
  795.                             // line 351
  796.                             echo "                                                ";
  797.                             if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse351) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse351))) {
  798.                                 // line 352
  799.                                 echo "                                                    ";
  800.                                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse352)), "html"nulltrue);
  801.                                 echo "
  802.                                                 ";
  803.                             } else {
  804.                                 // line 354
  805.                                 echo "                                                    ";
  806.                                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse354)), "html"nulltrue);
  807.                                 echo " 〜 ";
  808.                                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse354)), "html"nulltrue);
  809.                                 echo "
  810.                                                 ";
  811.                             }
  812.                             // line 356
  813.                             echo "                                            ";
  814.                         } else {
  815.                             // line 357
  816.                             echo "                                                ";
  817.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse357)), "html"nulltrue);
  818.                             echo "
  819.                                             ";
  820.                         }
  821.                         // line 359
  822.                         echo "                                            <span>円</span>
  823.                                         </p>
  824.                                         ";
  825.                         // line 361
  826.                         if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse361)) {
  827.                             // line 362
  828.                             echo "                                            <form name=\"form";
  829.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse362), "html"nulltrue);
  830.                             echo "\" id=\"productForm";
  831.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse362), "html"nulltrue);
  832.                             echo "\" action=\"";
  833.                             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"falsefalsefalse362)]), "html"nulltrue);
  834.                             echo "\" method=\"post\">
  835.                                                 ";
  836.                             // line 363
  837.                             if (((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'363$this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'363$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'363$this->source); })()) == "買い取り")))) {
  838.                                 // line 364
  839.                                 echo "                                                    <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  840.                                                 ";
  841.                             }
  842.                             // line 366
  843.                             echo "                                                <label class=\"number-spinner-wrap\">
  844.                                                     <input type=\"number\" id=\"quantity";
  845.                             // line 367
  846.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse367), "html"nulltrue);
  847.                             echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  848.                                                     <span class=\"spinner spinner-down\">
  849.                                                         <img src=\"";
  850.                             // line 369
  851.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/minus.png"), "html"nulltrue);
  852.                             echo "\" class=\"numcursul\" alt=\"\">
  853.                                                     </span>
  854.                                                     <span class=\"spinner spinner-up\">
  855.                                                         <img src=\"";
  856.                             // line 372
  857.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/plus.png"), "html"nulltrue);
  858.                             echo "\" class=\"numcursul\" alt=\"\">
  859.                                                     </span>
  860.                                                 </label>
  861.                                                 <input type=\"hidden\" id=\"product_id";
  862.                             // line 375
  863.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse375), "html"nulltrue);
  864.                             echo "\" name=\"product_id\" value=\"";
  865.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse375), "html"nulltrue);
  866.                             echo "\">
  867.                                                 <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
  868.                             // line 376
  869.                             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"falsefalsefalse376), 0, [], "array"falsefalsefalse376), "id", [], "any"falsefalsefalse376), "html"nulltrue);
  870.                             echo "\">
  871.                                                 <input type=\"hidden\" id=\"_token";
  872.                             // line 377
  873.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse377), "html"nulltrue);
  874.                             echo "\" name=\"_token\" value=\"";
  875.                             echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("Eccube\\Form\\Type\\AddCartType"), "html"nulltrue);
  876.                             echo "\" />
  877.                                             </form>
  878.                                             <div class=\"cart-in-btn\">
  879.                                                 ";
  880.                             // line 380
  881.                             if (((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'380$this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'380$this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'380$this->source); })()) == "買い取り")))) {
  882.                                 // line 381
  883.                                 echo "                                                    <button class=\"add-cart-custom\" data-cartid=\"";
  884.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse381), "html"nulltrue);
  885.                                 echo "\" form=\"productForm";
  886.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse381), "html"nulltrue);
  887.                                 echo "\" type=\"submit\"> 売却する </button>
  888.                                                 ";
  889.                             } else {
  890.                                 // line 383
  891.                                 echo "                                                    <button class=\"add-cart-custom\" data-cartid=\"";
  892.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse383), "html"nulltrue);
  893.                                 echo "\" form=\"productForm";
  894.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse383), "html"nulltrue);
  895.                                 echo "\" type=\"submit\"> カートに入れる </button>
  896.                                                 ";
  897.                             }
  898.                             // line 385
  899.                             echo "                                            </div>
  900.                                         ";
  901.                         } else {
  902.                             // line 387
  903.                             echo "                                            <div class=\"cart-in-btn\">
  904.                                                 <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">";
  905.                             // line 388
  906.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html"nulltrue);
  907.                             echo "</button>
  908.                                             </div>
  909.                                         ";
  910.                         }
  911.                         // line 391
  912.                         echo "                                    </div>
  913.                                 ";
  914.                     }
  915.                     $_parent $context['_parent'];
  916.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  917.                     $context array_intersect_key($context$_parent) + $_parent;
  918.                     // line 393
  919.                     echo "                            </div>
  920.                         ";
  921.                 }
  922.                 // line 395
  923.                 echo "                    ";
  924.             }
  925.             // line 396
  926.             echo "                </div>
  927.                 <div class=\"ec-modal\">
  928.                     <div class=\"ec-modal-overlay\">
  929.                         <div class=\"ec-modal-wrap\">
  930.                             <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  931.             // line 401
  932.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  933.             echo "\" alt=\"\"/></span></span>
  934.                             <div id=\"ec-modal-header\" class=\"text-center\">";
  935.             // line 402
  936.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_complete"), "html"nulltrue);
  937.             echo "</div>
  938.                             <div class=\"ec-modal-box\">
  939.                                 <div class=\"ec-role\">
  940.                                     <span class=\"ec-inlineBtn--cancel\">";
  941.             // line 405
  942.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.continue"), "html"nulltrue);
  943.             echo "</span>
  944.                                     <a href=\"";
  945.             // line 406
  946.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  947.             echo "\" class=\"ec-inlineBtn--action\">";
  948.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.go_to_cart"), "html"nulltrue);
  949.             echo "</a>
  950.                                 </div>
  951.                             </div>
  952.                         </div>
  953.                     </div>
  954.                 </div>
  955.                 <div class=\"ec-pagerRole\">
  956.                    ";
  957.             // line 413
  958.             if ((isset($context["orderby"]) || array_key_exists("orderby"$context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.'413$this->source); })())) {
  959.                 // line 414
  960.                 echo "                       ";
  961.                 $this->loadTemplate("pager.twig""Product/list.twig"414)->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.'414$this->source); })()), "paginationData", [], "any"falsefalsefalse414)]));
  962.                 // line 415
  963.                 echo "                   ";
  964.             } elseif (((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.'415$this->source); })()), "request", [], "any"falsefalsefalse415), "query", [], "any"falsefalsefalse415), "get", [=> "category_id"], "method"falsefalsefalse415) == 7) || (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.'415$this->source); })()), "request", [], "any"falsefalsefalse415), "query", [], "any"falsefalsefalse415), "get", [=> "category_id"], "method"falsefalsefalse415) == 8))) {
  965.                 // line 416
  966.                 echo "                       ";
  967.                 $this->loadTemplate("pager.twig""Product/list.twig"416)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["otherProducts"]) || array_key_exists("otherProducts"$context) ? $context["otherProducts"] : (function () { throw new RuntimeError('Variable "otherProducts" does not exist.'416$this->source); })()), "paginationData", [], "any"falsefalsefalse416)]));
  968.                 // line 417
  969.                 echo "                   ";
  970.             }
  971.             // line 418
  972.             echo "                </div>
  973.             ";
  974.         }
  975.         // line 420
  976.         echo "        </div>
  977.     </div>
  978. ";
  979.         
  980.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  981.         
  982.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  983.     }
  984.     public function getTemplateName()
  985.     {
  986.         return "Product/list.twig";
  987.     }
  988.     public function isTraitable()
  989.     {
  990.         return false;
  991.     }
  992.     public function getDebugInfo()
  993.     {
  994.         return array (  1003 => 420,  999 => 418,  996 => 417,  993 => 416,  990 => 415,  987 => 414,  985 => 413,  973 => 406,  969 => 405,  963 => 402,  959 => 401,  952 => 396,  949 => 395,  945 => 393,  938 => 391,  932 => 388,  929 => 387,  925 => 385,  917 => 383,  909 => 381,  907 => 380,  899 => 377,  895 => 376,  889 => 375,  883 => 372,  877 => 369,  872 => 367,  869 => 366,  865 => 364,  863 => 363,  854 => 362,  852 => 361,  848 => 359,  842 => 357,  839 => 356,  831 => 354,  825 => 352,  822 => 351,  820 => 350,  814 => 348,  808 => 345,  803 => 344,  797 => 342,  795 => 341,  792 => 340,  788 => 339,  784 => 337,  781 => 336,  779 => 335,  776 => 334,  770 => 333,  766 => 331,  759 => 329,  753 => 326,  750 => 325,  746 => 323,  738 => 321,  730 => 319,  728 => 318,  720 => 315,  716 => 314,  710 => 313,  704 => 310,  698 => 307,  693 => 305,  690 => 304,  686 => 302,  684 => 301,  675 => 300,  673 => 299,  669 => 297,  663 => 295,  660 => 294,  652 => 292,  646 => 290,  643 => 289,  641 => 288,  635 => 286,  629 => 283,  624 => 282,  618 => 280,  616 => 279,  613 => 278,  609 => 277,  605 => 276,  600 => 275,  597 => 274,  592 => 273,  589 => 272,  586 => 271,  583 => 270,  576 => 268,  570 => 265,  567 => 264,  564 => 263,  561 => 262,  553 => 259,  550 => 258,  542 => 255,  539 => 254,  536 => 253,  534 => 252,  527 => 250,  523 => 249,  517 => 248,  512 => 246,  508 => 245,  504 => 244,  501 => 243,  498 => 242,  495 => 241,  491 => 239,  488 => 238,  486 => 237,  478 => 236,  475 => 235,  473 => 234,  469 => 232,  463 => 230,  460 => 229,  452 => 227,  446 => 225,  443 => 224,  441 => 223,  435 => 221,  429 => 218,  424 => 217,  418 => 215,  416 => 214,  413 => 213,  408 => 212,  405 => 211,  403 => 210,  399 => 208,  387 => 206,  385 => 205,  380 => 203,  376 => 202,  372 => 201,  368 => 200,  363 => 197,  357 => 194,  354 => 193,  352 => 192,  348 => 190,  338 => 189,  300 => 159,  297 => 158,  288 => 151,  285 => 150,  283 => 149,  265 => 134,  255 => 127,  224 => 99,  197 => 74,  183 => 73,  175 => 72,  158 => 71,  154 => 69,  144 => 68,  133 => 11,  130 => 65,  127 => 63,  125 => 62,  123 => 60,  121 => 59,  119 => 58,  117 => 57,  114 => 54,  111 => 52,  109 => 51,  107 => 50,  105 => 49,  103 => 48,  101 => 47,  99 => 45,  97 => 43,  95 => 42,  93 => 41,  91 => 40,  89 => 39,  87 => 37,  85 => 36,  83 => 35,  81 => 34,  79 => 33,  77 => 32,  74 => 29,  72 => 28,  69 => 25,  67 => 24,  65 => 23,  63 => 22,  61 => 21,  59 => 20,  57 => 19,  55 => 18,  53 => 16,  51 => 15,  49 => 13,  36 => 11,);
  995.     }
  996.     public function getSourceContext()
  997.     {
  998.         return new Source("{#
  999. This file is part of EC-CUBE
  1000. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1001. http://www.ec-cube.co.jp/
  1002. For the full copyright and license information, please view the LICENSE
  1003. file that was distributed with this source code.
  1004. #}
  1005. {% extends 'default_frame.twig' %}
  1006. {% set body_class = 'product_page' %}
  1007. {% set hasCategory = false %}
  1008. {% set request_uri = app.request.server.get('REQUEST_URI') %}
  1009. {% if 'name=' in request_uri and Category != \"\" %}
  1010.     {% set RootCategory = Category.RootCategory %}
  1011.     {% set hasCategory = true %}
  1012. {% elseif Category != \"\" %}
  1013.     {% set RootCategory = Category.RootCategory %}
  1014.     {% set hasCategory = true %}
  1015. {% elseif 'name=' in request_uri %}
  1016.     {% set hasCategory = false %}
  1017. {% endif %}
  1018. {% if hasCategory %}
  1019.     {% set RootCategory = Category.RootCategory %}
  1020. {% endif %}
  1021. {% set prm2 = app.request.query.get('type') %}
  1022. {% set prm3 = app.request.query.get('category_id2') %}
  1023. {% set prm4 = app.request.query.get('category_id3') %}
  1024. {% set prm5 = app.request.query.get('category_id4') %}
  1025. {% set prm6 = app.request.query.get('category_id5') %}
  1026. {% set prm7 = app.request.query.get('tag_id') %}
  1027. {% set pm2 = cast_to_int(prm2) %}
  1028. {% set pm3 = cast_to_int(prm3) %}
  1029. {% set pm4 = cast_to_int(prm4) %}
  1030. {% set pm5 = cast_to_int(prm5) %}
  1031. {% set pm6 = cast_to_int(prm6) %}
  1032. {% set cn1 = app.request.query.get('name') %}
  1033. {% if prm2 == 0 and prm2 != \"\" %}
  1034.     {% set cn2 = \"\" %}
  1035. {% elseif prm2 == 1 and prm2 != \"\" %}
  1036.     {% set cn2 = \"ヴァイスシュヴァルツ,\" %}
  1037. {% elseif prm2 == 2 and prm2 != \"\" %}
  1038.     {% set cn2 = \"ポケモン,\" %}
  1039. {% else %}
  1040.     {% set cn2 = \"\" %}
  1041. {% endif %}
  1042. {% set cn3 = get_category_name(pm3) %}
  1043. {% set cn4 = get_category_name(pm4) %}
  1044. {% set cn5 = get_category_name(pm5) %}
  1045. {% set cn6 = get_category_name(pm6) %}
  1046. {% if prm7 == 4 and prm7 != \"\" %}
  1047.     {% set cn7 = \"傷あり商品,\" %}
  1048. {% else %}
  1049.     {% set cn7 = \"\" %}
  1050. {% endif %}
  1051. {% block javascript %}
  1052.     <script>
  1053.         eccube.productsClassCategories = {
  1054.             {% for Product in pagination %}
  1055.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if not loop.last %}, {% endif %}
  1056.             {% endfor %}
  1057.         };
  1058.         \$(function() {
  1059.             // 表示件数を変更
  1060.             \$('.disp-number').change(function() {
  1061.                 var dispNumber = \$(this).val();
  1062.                 \$('#disp_number').val(dispNumber);
  1063.                 \$('#pageno').val(1);
  1064.                 \$(\"#form1\").submit();
  1065.             });
  1066.             // 並び順を変更
  1067.             \$('.order-by').change(function() {
  1068.                 var orderBy = \$(this).val();
  1069.                 \$('#orderby').val(orderBy);
  1070.                 \$('#pageno').val(1);
  1071.                 \$(\"#form1\").submit();
  1072.             });
  1073.             \$('.add-cart').on('click', function(e) {
  1074.                 var \$form = \$(this).parents('li').find('form');
  1075.                 // 個数フォームのチェック
  1076.                 var \$quantity = \$form.parent().find('.quantity');
  1077.                 if (\$quantity.val() < 1) {
  1078.                     \$quantity[0].setCustomValidity('{{ 'front.product.invalid_quantity'|trans }}');
  1079.                     setTimeout(function() {
  1080.                         loadingOverlay('hide');
  1081.                     }, 100);
  1082.                     return true;
  1083.                 } else {
  1084.                     \$quantity[0].setCustomValidity('');
  1085.                 }
  1086.                 e.preventDefault();
  1087.                 \$.ajax({
  1088.                     url: \$form.attr('action'),
  1089.                     type: \$form.attr('method'),
  1090.                     data: \$form.serialize(),
  1091.                     dataType: 'json',
  1092.                     beforeSend: function(xhr, settings) {
  1093.                         // Buttonを無効にする
  1094.                         \$('.add-cart').prop('disabled', true);
  1095.                     }
  1096.                 }).done(function(data) {
  1097.                     // レスポンス内のメッセージをalertで表示
  1098.                     \$.each(data.messages, function() {
  1099.                         \$('#ec-modal-header').text(this);
  1100.                     });
  1101.                     \$('.ec-modal').show()
  1102.                     // カートブロックを更新する
  1103.                     \$.ajax({
  1104.                         url: '{{ url('block_cart') }}',
  1105.                         type: 'GET',
  1106.                         dataType: 'html'
  1107.                     }).done(function(html) {
  1108.                         \$('.ec-headerRole__cart').html(html);
  1109.                     });
  1110.                 }).fail(function(data) {
  1111.                     alert('{{ 'front.product.add_cart_error'|trans }}');
  1112.                 }).always(function(data) {
  1113.                     // Buttonを有効にする
  1114.                     \$('.add-cart').prop('disabled', false);
  1115.                 });
  1116.             });
  1117.         });
  1118.         \$('.ec-modal-wrap').on('click', function(e) {
  1119.             // モーダル内の処理は外側にバブリングさせない
  1120.             e.stopPropagation();
  1121.         });
  1122.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1123.             \$('.ec-modal').hide()
  1124.         });
  1125.         {% if hasCategory %}
  1126.             {% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
  1127.                 \$('.bigbox').css('background-color','#22b573');
  1128.                 \$('.header-middle').css('background-color','#22b573');
  1129.                 \$('.side-searchbox').css('background-color','#22b573');
  1130.                 \$('.side-cat-more').css('background-color','#22b573');
  1131.                 \$('.side-cat-more2').css('background-color','#22b573');
  1132.                 \$('.side-cat-more3').css('background-color','#22b573');
  1133.             {% endif %}
  1134.         {% endif %}
  1135.         \$(document).ready(function() {
  1136.           // プラスボタンがクリックされたとき
  1137.           \$('.spinner-up').click(function() {
  1138.             // 対応する数量フィールドのIDを取得
  1139.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  1140.             
  1141.             // 対応する数量フィールドの値を取得
  1142.             var quantity = parseInt(\$('#' + productId).val());
  1143.         
  1144.             // 値を増加させて数量フィールドに設定
  1145.             \$('#' + productId).val(quantity + 1);
  1146.           });
  1147.         
  1148.           // マイナスボタンがクリックされたとき
  1149.           \$('.spinner-down').click(function() {
  1150.             // 対応する数量フィールドのIDを取得
  1151.             var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
  1152.             
  1153.             // 対応する数量フィールドの値を取得
  1154.             var quantity = parseInt(\$('#' + productId).val());
  1155.         
  1156.             // 値を減少させて数量フィールドに設定 (1未満にはしない)
  1157.             if (quantity > 1) {
  1158.               \$('#' + productId).val(quantity - 1);
  1159.             }
  1160.           });
  1161.         });
  1162.     </script>
  1163. {% endblock %}
  1164. {% block main %}
  1165.     <div class=\"ec-layoutRole__mainTop\">
  1166.         <div class=\"top-content-box cat_mob_top-content-box\">
  1167.             {% if search_form.category_id.vars.errors|length > 0 %}
  1168.                 <div class=\"test\">
  1169.                     <p class=\"errormsg text-danger\">{{ 'front.product.search__category_not_found'|trans }}</p>
  1170.                 </div>
  1171.             {% else %}
  1172.                 <div class=\"sort-big-box\">
  1173.                     <h2>商品一覧</h2>
  1174.                     <div class=\"sort-box\">
  1175.                         <a href=\"{{ app.request.getUri }}&orderby=0\">おすすめ順</a>
  1176.                         <a href=\"{{ app.request.getUri }}&orderby=2\">新着順</a>
  1177.                         <a href=\"{{ app.request.getUri }}&orderby=1\">価格の安い順</a>
  1178.                         <a href=\"{{ app.request.getUri }}&orderby=3\">価格の高い順</a>
  1179.                     </div>
  1180.                     {% if cn1 is not empty or cn2 is not empty or cn3 is not empty or cn4 is not empty or cn5 is not empty or cn6 is not empty %}
  1181.                         <p class=\"search_res_text\">検索ワード:{{ cn2 }}{{ cn3 }}{{ cn4 }}{{ cn5 }}{{ cn6 }}{{ cn7 }}{{ cn1 }}</p>
  1182.                     {% endif %}
  1183.                 </div>
  1184.                <div class=\"product-big-list\">
  1185.                     {% if orderby %}
  1186.                         {% if pagination.totalItemCount > 0 %}
  1187.                             {% for Product in pagination %}
  1188.                                 <div class=\"product-list-box\">
  1189.                                     {% if app.request.query.get('category_id') == 219 or app.request.query.get('category_id') == 218 %}
  1190.                                         <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1191.                                     {% else %}
  1192.                                         <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1193.                                             <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1194.                                         </a>
  1195.                                     {% endif %}
  1196.                                     <p>{{ Product.name }}</p>
  1197.                                     <p class=\"price\">
  1198.                                         {% if Product.hasProductClass %}
  1199.                                             {% if Product.getPrice02Min == Product.getPrice02Max %}
  1200.                                                 {{ Product.getPrice02IncTaxMin|number_format }}
  1201.                                             {% else %}
  1202.                                                 {{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}
  1203.                                             {% endif %}
  1204.                                         {% else %}
  1205.                                             {{ Product.getPrice02IncTaxMin|number_format }}
  1206.                                         {% endif %}
  1207.                                         <span>円</span>
  1208.                                     </p>
  1209.                                     {% if Product.stock_find %}
  1210.                                         <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1211.                                                 {% if hasCategory %}
  1212.                                                     {% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
  1213.                                                         <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  1214.                                                     {% else %}
  1215.                                                     {% endif %}
  1216.                                                 {% endif %}
  1217.                                             <label class=\"number-spinner-wrap\">
  1218.                                                 <input type=\"number\" id=\"quantity{{ Product.id }}\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  1219.                                                 <span class=\"spinner spinner-down\"> <img src=\"{{ asset('/html/user_data/assets/img/minus.png') }}\" class=\"numcursul\" alt=\"\"> </span>
  1220.                                                 <span class=\"spinner spinner-up\"> <img src=\"{{ asset('/html/user_data/assets/img/plus.png') }}\" class=\"numcursul\" alt=\"\"> </span>
  1221.                                             </label>
  1222.                                             <input type=\"hidden\" id=\"product_id{{ Product.id }}\" name=\"product_id\" value=\"{{ Product.id }}\">
  1223.                                             <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"{{ Product.ProductClasses[0].id }}\">
  1224.                                             <input type=\"hidden\" id=\"_token{{ Product.id }}\" name=\"_token\" value=\"{{ csrf_token('Eccube\\\\Form\\\\Type\\\\AddCartType') }}\" />
  1225.                                         </form>
  1226.                                             {% if hasCategory %}
  1227.                                                 {% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
  1228.                                                     <div class=\"cart-in-btn\">
  1229.                                                         <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> 売却する </button>
  1230.                                                     </div>
  1231.                                                 {% else %}
  1232.                                                     <div class=\"cart-in-btn\">
  1233.                                                         <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> カートに入れる </button>
  1234.                                                     </div>
  1235.                                                 {% endif %}
  1236.                                             {% endif %}
  1237.                                     {% else %}
  1238.                                         <div class=\"cart-in-btn\">
  1239.                                             <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> {{ '品切れ中'|trans }} </button>
  1240.                                         </div>
  1241.                                     {% endif %}
  1242.                                 </div>
  1243.                             {% endfor %}
  1244.                         {% endif %}
  1245.                     {% else %}
  1246.                         {% if groupedProducts is defined and groupedProducts|length > 0 %}
  1247.                             {% for rarity, products in groupedProducts %}
  1248.                                 {% if products is not empty %}
  1249.                                     <h2>{{ rarity }} 商品</h2>
  1250.                                     <div class=\"rarity-group-{{ rarity|lower }} product-list-container\">
  1251.                                         {% for Product in products %}
  1252.                                             <div class=\"product-list-box\">
  1253.                                                 {% if app.request.query.get('category_id') == 219 or app.request.query.get('category_id') == 218 %}
  1254.                                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1255.                                                 {% else %}
  1256.                                                     <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1257.                                                         <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1258.                                                     </a>
  1259.                                                 {% endif %}
  1260.                                                 <p>{{ Product.name }}</p>
  1261.                                                 <p class=\"price\">
  1262.                                                     {% if Product.hasProductClass %}
  1263.                                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  1264.                                                             {{ Product.getPrice02IncTaxMin|number_format }}
  1265.                                                         {% else %}
  1266.                                                             {{ Product.getPrice02IncTaxMin|number_format }} 〜 {{ Product.getPrice02IncTaxMax|number_format }}
  1267.                                                         {% endif %}
  1268.                                                     {% else %}
  1269.                                                         {{ Product.getPrice02IncTaxMin|number_format }}
  1270.                                                     {% endif %}
  1271.                                                     <span>円</span>
  1272.                                                 </p>
  1273.                                                 {% if Product.stock_find %}
  1274.                                                     <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1275.                                                         {% if hasCategory and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
  1276.                                                             <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  1277.                                                         {% endif %}
  1278.                                                         <label class=\"number-spinner-wrap\">
  1279.                                                             <input type=\"number\" id=\"quantity{{ Product.id }}\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  1280.                                                             <span class=\"spinner spinner-down\">
  1281.                                                                 <img src=\"{{ asset('/html/user_data/assets/img/minus.png') }}\" class=\"numcursul\" alt=\"\">
  1282.                                                             </span>
  1283.                                                             <span class=\"spinner spinner-up\">
  1284.                                                                 <img src=\"{{ asset('/html/user_data/assets/img/plus.png') }}\" class=\"numcursul\" alt=\"\">
  1285.                                                             </span>
  1286.                                                         </label>
  1287.                                                         <input type=\"hidden\" id=\"product_id{{ Product.id }}\" name=\"product_id\" value=\"{{ Product.id }}\">
  1288.                                                         <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"{{ Product.ProductClasses[0].id }}\">
  1289.                                                         <input type=\"hidden\" id=\"_token{{ Product.id }}\" name=\"_token\" value=\"{{ csrf_token('Eccube\\\\Form\\\\Type\\\\AddCartType') }}\" />
  1290.                                                     </form>
  1291.                                                     <div class=\"cart-in-btn\">
  1292.                                                         {% if hasCategory and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
  1293.                                                             <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> 売却する </button>
  1294.                                                         {% else %}
  1295.                                                             <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> カートに入れる </button>
  1296.                                                         {% endif %}
  1297.                                                     </div>
  1298.                                                 {% else %}
  1299.                                                     <div class=\"cart-in-btn\">
  1300.                                                         <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">{{ '品切れ中'|trans }}</button>
  1301.                                                     </div>
  1302.                                                 {% endif %}
  1303.                                             </div>
  1304.                                         {% endfor %}
  1305.                                     </div>
  1306.                                 {% endif %}
  1307.                             {% endfor %}
  1308.                         {% endif %}
  1309.                         {# その他の商品を表示するためのセクション #}
  1310.                         {% if otherProducts is defined and otherProducts|length > 0 %}
  1311.                             <h2>その他の商品</h2>
  1312.                             <div class=\"rarity-group-other product-list-container\">
  1313.                                 {% for Product in otherProducts %}
  1314.                                     <div class=\"product-list-box\">
  1315.                                         {% if app.request.query.get('category_id') == 219 or app.request.query.get('category_id') == 218 %}
  1316.                                             <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1317.                                         {% else %}
  1318.                                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1319.                                                 <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  1320.                                             </a>
  1321.                                         {% endif %}
  1322.                                         <p>{{ Product.name }}</p>
  1323.                                         <p class=\"price\">
  1324.                                             {% if Product.hasProductClass %}
  1325.                                                 {% if Product.getPrice02Min == Product.getPrice02Max %}
  1326.                                                     {{ Product.getPrice02IncTaxMin|number_format }}
  1327.                                                 {% else %}
  1328.                                                     {{ Product.getPrice02IncTaxMin|number_format }} 〜 {{ Product.getPrice02IncTaxMax|number_format }}
  1329.                                                 {% endif %}
  1330.                                             {% else %}
  1331.                                                 {{ Product.getPrice02IncTaxMin|number_format }}
  1332.                                             {% endif %}
  1333.                                             <span>円</span>
  1334.                                         </p>
  1335.                                         {% if Product.stock_find %}
  1336.                                             <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1337.                                                 {% if hasCategory and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
  1338.                                                     <input type=\"hidden\" name=\"buyflg\" value=\"1\">
  1339.                                                 {% endif %}
  1340.                                                 <label class=\"number-spinner-wrap\">
  1341.                                                     <input type=\"number\" id=\"quantity{{ Product.id }}\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
  1342.                                                     <span class=\"spinner spinner-down\">
  1343.                                                         <img src=\"{{ asset('/html/user_data/assets/img/minus.png') }}\" class=\"numcursul\" alt=\"\">
  1344.                                                     </span>
  1345.                                                     <span class=\"spinner spinner-up\">
  1346.                                                         <img src=\"{{ asset('/html/user_data/assets/img/plus.png') }}\" class=\"numcursul\" alt=\"\">
  1347.                                                     </span>
  1348.                                                 </label>
  1349.                                                 <input type=\"hidden\" id=\"product_id{{ Product.id }}\" name=\"product_id\" value=\"{{ Product.id }}\">
  1350.                                                 <input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"{{ Product.ProductClasses[0].id }}\">
  1351.                                                 <input type=\"hidden\" id=\"_token{{ Product.id }}\" name=\"_token\" value=\"{{ csrf_token('Eccube\\\\Form\\\\Type\\\\AddCartType') }}\" />
  1352.                                             </form>
  1353.                                             <div class=\"cart-in-btn\">
  1354.                                                 {% if hasCategory and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
  1355.                                                     <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> 売却する </button>
  1356.                                                 {% else %}
  1357.                                                     <button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> カートに入れる </button>
  1358.                                                 {% endif %}
  1359.                                             </div>
  1360.                                         {% else %}
  1361.                                             <div class=\"cart-in-btn\">
  1362.                                                 <button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">{{ '品切れ中'|trans }}</button>
  1363.                                             </div>
  1364.                                         {% endif %}
  1365.                                     </div>
  1366.                                 {% endfor %}
  1367.                             </div>
  1368.                         {% endif %}
  1369.                     {% endif %}
  1370.                 </div>
  1371.                 <div class=\"ec-modal\">
  1372.                     <div class=\"ec-modal-overlay\">
  1373.                         <div class=\"ec-modal-wrap\">
  1374.                             <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1375.                             <div id=\"ec-modal-header\" class=\"text-center\">{{ 'front.product.add_cart_complete'|trans }}</div>
  1376.                             <div class=\"ec-modal-box\">
  1377.                                 <div class=\"ec-role\">
  1378.                                     <span class=\"ec-inlineBtn--cancel\">{{ 'front.product.continue'|trans }}</span>
  1379.                                     <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'common.go_to_cart'|trans }}</a>
  1380.                                 </div>
  1381.                             </div>
  1382.                         </div>
  1383.                     </div>
  1384.                 </div>
  1385.                 <div class=\"ec-pagerRole\">
  1386.                    {% if orderby %}
  1387.                        {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1388.                    {% elseif app.request.query.get('category_id') == 7 or app.request.query.get('category_id') == 8 %}
  1389.                        {% include \"pager.twig\" with {'pages': otherProducts.paginationData} %}
  1390.                    {% endif %}
  1391.                 </div>
  1392.             {% endif %}
  1393.         </div>
  1394.     </div>
  1395. {% endblock %}""Product/list.twig""/home/northserver/tcg-mana.com/public_html/app/template/default/Product/list.twig");
  1396.     }
  1397. }