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

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