var/cache/dev/twig/69/69281b3d986481a0789e7abffd89273c.php line 40

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. /* Cart/index.twig */
  14. class __TwigTemplate_5555bba62c2999039b7f46e91b28a25a 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.             'main' => [$this'block_main'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  40.         // line 3
  41.         $context["body_class"] = "cart_page";
  42.         // line 1
  43.         $this->parent $this->loadTemplate("default_frame.twig""Cart/index.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     public function block_main($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  58.         // line 6
  59.         echo "<div id=\"undercolumn_cart\">
  60.     <div class=\"ec-role\">
  61.         <div class=\"ec-pageHeader\">
  62.             <h2 class=\"title\">";
  63.         // line 9
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在のカゴの中"), "html"nulltrue);
  65.         echo "</h2>
  66.         </div>
  67.     </div>
  68.     <div class=\"ec-cartRole\">
  69.         ";
  70.         // line 14
  71.         $context["productStr"] = 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.'14$this->source); })()), "session", [], "any"falsefalsetrue14), "flashbag", [], "any"falsefalsetrue14), "get", [=> "eccube.front.request.product"], "method"falsefalsetrue14);
  72.         // line 15
  73.         echo "        ";
  74.         $context['_parent'] = $context;
  75.         $context['_seq'] = twig_ensure_traversable(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.'15$this->source); })()), "session", [], "any"falsefalsetrue15), "flashbag", [], "any"falsefalsetrue15), "get", [=> "eccube.front.request.error"], "method"falsefalsetrue15));
  76.         $context['loop'] = [
  77.           'parent' => $context['_parent'],
  78.           'index0' => 0,
  79.           'index'  => 1,
  80.           'first'  => true,
  81.         ];
  82.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  83.             $length count($context['_seq']);
  84.             $context['loop']['revindex0'] = $length 1;
  85.             $context['loop']['revindex'] = $length;
  86.             $context['loop']['length'] = $length;
  87.             $context['loop']['last'] = === $length;
  88.         }
  89.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  90.             // line 16
  91.             echo "            ";
  92.             $context["idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue16);
  93.             // line 17
  94.             echo "            <div class=\"ec-cartRole__error\">
  95.                 <div class=\"ec-alert-warning\">
  96.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  97.             // line 19
  98.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  99.             echo "\"></div>
  100.                     <div class=\"ec-alert-warning__text\">
  101.                         ";
  102.             // line 21
  103.             if (twig_get_attribute($this->env$this->source, ($context["productStr"] ?? null), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'21$this->source); })()), [], "array"truetruetrue21)) {
  104.                 // line 22
  105.                 echo "                            ";
  106.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 22$this->source), ["%product%" => twig_get_attribute($this->env$this->source, (isset($context["productStr"]) || array_key_exists("productStr"$context) ? $context["productStr"] : (function () { throw new RuntimeError('Variable "productStr" does not exist.'22$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'22$this->source); })()), [], "array"falsefalsetrue22)]), "html"nulltrue));
  107.                 echo "
  108.                         ";
  109.             } else {
  110.                 // line 24
  111.                 echo "                            ";
  112.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 24$this->source)), "html"nulltrue));
  113.                 echo "
  114.                         ";
  115.             }
  116.             // line 26
  117.             echo "                    </div>
  118.                 </div>
  119.             </div>
  120.         ";
  121.             ++$context['loop']['index0'];
  122.             ++$context['loop']['index'];
  123.             $context['loop']['first'] = false;
  124.             if (isset($context['loop']['length'])) {
  125.                 --$context['loop']['revindex0'];
  126.                 --$context['loop']['revindex'];
  127.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  128.             }
  129.         }
  130.         $_parent $context['_parent'];
  131.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  132.         $context array_intersect_key($context$_parent) + $_parent;
  133.         // line 30
  134.         echo "        ";
  135.         $context['_parent'] = $context;
  136.         $context['_seq'] = twig_ensure_traversable(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.'30$this->source); })()), "session", [], "any"falsefalsetrue30), "flashbag", [], "any"falsefalsetrue30), "get", [=> "eccube.front.cart.error"], "method"falsefalsetrue30));
  137.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  138.             // line 31
  139.             echo "            <div class=\"ec-cartRole__error\">
  140.                 <div class=\"ec-alert-warning\">
  141.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  142.             // line 33
  143.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  144.             echo "\"></div>
  145.                     <div class=\"ec-alert-warning__text\">
  146.                         ";
  147.             // line 35
  148.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 35$this->source)), "html"nulltrue));
  149.             echo "
  150.                     </div>
  151.                 </div>
  152.             </div>
  153.         ";
  154.         }
  155.         $_parent $context['_parent'];
  156.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  157.         $context array_intersect_key($context$_parent) + $_parent;
  158.         // line 40
  159.         echo "        ";
  160.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'40$this->source); })()) > 0)) {
  161.             // line 41
  162.             echo "            ";
  163.             if ((twig_length_filter($this->env, (isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'41$this->source); })())) > 1)) {
  164.                 // line 42
  165.                 echo "                <div class=\"ec-alert-warning\">
  166.                     <div class=\"ec-alert-warning__text\">
  167.                         ";
  168.                 // line 45
  169.                 echo "                        ";
  170.                 $context["SaleTypetext"] = [];
  171.                 // line 46
  172.                 echo "                        ";
  173.                 $context['_parent'] = $context;
  174.                 $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'46$this->source); })()));
  175.                 foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  176.                     // line 47
  177.                     echo "                            ";
  178.                     $context['_parent'] = $context;
  179.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue47));
  180.                     foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  181.                         // line 48
  182.                         echo "                                ";
  183.                         if (!twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue48), "SaleType", [], "any"falsefalsetrue48), "name", [], "any"falsefalsetrue48), (isset($context["SaleTypetext"]) || array_key_exists("SaleTypetext"$context) ? $context["SaleTypetext"] : (function () { throw new RuntimeError('Variable "SaleTypetext" does not exist.'48$this->source); })()))) {
  184.                             // line 49
  185.                             echo "                                    ";
  186.                             $context["SaleTypetext"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["SaleTypetext"]) || array_key_exists("SaleTypetext"$context) ? $context["SaleTypetext"] : (function () { throw new RuntimeError('Variable "SaleTypetext" does not exist.'49$this->source); })()), 49$this->source), [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue49), "SaleType", [], "any"falsefalsetrue49), "name", [], "any"falsefalsetrue49)]);
  187.                             // line 50
  188.                             echo "                                ";
  189.                         }
  190.                         // line 51
  191.                         echo "                            ";
  192.                     }
  193.                     $_parent $context['_parent'];
  194.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  195.                     $context array_intersect_key($context$_parent) + $_parent;
  196.                     // line 52
  197.                     echo "                        ";
  198.                 }
  199.                 $_parent $context['_parent'];
  200.                 unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  201.                 $context array_intersect_key($context$_parent) + $_parent;
  202.                 // line 53
  203.                 echo "                        <div class=\"alert\" style=\"margin-bottom:0;\">
  204.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  205.                 // line 54
  206.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  207.                 echo "\"></div>
  208.                             ";
  209.                 // line 55
  210.                 echo twig_escape_filter($this->envtwig_join_filter($this->sandbox->ensureToStringAllowed((isset($context["SaleTypetext"]) || array_key_exists("SaleTypetext"$context) ? $context["SaleTypetext"] : (function () { throw new RuntimeError('Variable "SaleTypetext" does not exist.'55$this->source); })()), 55$this->source), ","), "html"nulltrue);
  211.                 echo "は同時購入できません。<br />お手数ですが、個別に購入手続きをお願い致します。
  212.                         </div>
  213.                     </div>
  214.                 </div>
  215.             ";
  216.             }
  217.             // line 60
  218.             echo "
  219.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
  220.             // line 61
  221.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  222.             echo "\">
  223.                 ";
  224.             // line 63
  225.             $context['_parent'] = $context;
  226.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'63$this->source); })()));
  227.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  228.                 // line 64
  229.                 echo "                    <div class=\"cart-list\">
  230.                         ";
  231.                 // line 65
  232.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue65);
  233.                 // line 66
  234.                 echo "                        ";
  235.                 $context["errorflug"] = false;
  236.                 // line 67
  237.                 echo "                        ";
  238.                 $context['_parent'] = $context;
  239.                 $context['_seq'] = twig_ensure_traversable(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.'67$this->source); })()), "session", [], "any"falsefalsetrue67), "flashbag", [], "any"falsefalsetrue67), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'67$this->source); })())) . ".request.error")], "method"falsefalsetrue67));
  240.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  241.                     // line 68
  242.                     echo "                            <div class=\"ec-cartRole__error\">
  243.                                 <div class=\"ec-alert-warning\">
  244.                                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  245.                     // line 70
  246.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  247.                     echo "\"></div>
  248.                                     <div class=\"ec-alert-warning__text\">
  249.                                         ";
  250.                     // line 72
  251.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 72$this->source)), "html"nulltrue));
  252.                     echo "
  253.                                     </div>
  254.                                 </div>
  255.                             </div>
  256.                             ";
  257.                     // line 76
  258.                     $context["errorflug"] = true;
  259.                     // line 77
  260.                     echo "                        ";
  261.                 }
  262.                 $_parent $context['_parent'];
  263.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  264.                 $context array_intersect_key($context$_parent) + $_parent;
  265.                 // line 78
  266.                 echo "
  267.                         ";
  268.                 // line 80
  269.                 echo "                        ";
  270.                 $context["purchasing_goods_name"] = "";
  271.                 // line 81
  272.                 echo "                        ";
  273.                 if ((twig_length_filter($this->env, (isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'81$this->source); })())) > 1)) {
  274.                     // line 82
  275.                     echo "                            ";
  276.                     $context["SaleTypefirst"] = [];
  277.                     // line 83
  278.                     echo "                            ";
  279.                     $context['_parent'] = $context;
  280.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue83));
  281.                     $context['loop'] = [
  282.                       'parent' => $context['_parent'],
  283.                       'index0' => 0,
  284.                       'index'  => 1,
  285.                       'first'  => true,
  286.                     ];
  287.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  288.                         $length count($context['_seq']);
  289.                         $context['loop']['revindex0'] = $length 1;
  290.                         $context['loop']['revindex'] = $length;
  291.                         $context['loop']['length'] = $length;
  292.                         $context['loop']['last'] = === $length;
  293.                     }
  294.                     foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  295.                         // line 84
  296.                         echo "                            ";
  297.                         if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsetrue84)) {
  298.                             // line 85
  299.                             echo "                                ";
  300.                             $context["SaleTypefirst"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue85), "SaleType", [], "any"falsefalsetrue85), "name", [], "any"falsefalsetrue85);
  301.                             // line 86
  302.                             echo "                            ";
  303.                         }
  304.                         // line 87
  305.                         echo "                            ";
  306.                         ++$context['loop']['index0'];
  307.                         ++$context['loop']['index'];
  308.                         $context['loop']['first'] = false;
  309.                         if (isset($context['loop']['length'])) {
  310.                             --$context['loop']['revindex0'];
  311.                             --$context['loop']['revindex'];
  312.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  313.                         }
  314.                     }
  315.                     $_parent $context['_parent'];
  316.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  317.                     $context array_intersect_key($context$_parent) + $_parent;
  318.                     // line 88
  319.                     echo "                                <h3 class=\"subtitle\">";
  320.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["SaleTypefirst"]) || array_key_exists("SaleTypefirst"$context) ? $context["SaleTypefirst"] : (function () { throw new RuntimeError('Variable "SaleTypefirst" does not exist.'88$this->source); })()), 88$this->source), "html"nulltrue);
  321.                     echo "</h3>
  322.                             ";
  323.                     // line 89
  324.                     $context["purchasing_goods_name"] = (isset($context["SaleTypefirst"]) || array_key_exists("SaleTypefirst"$context) ? $context["SaleTypefirst"] : (function () { throw new RuntimeError('Variable "SaleTypefirst" does not exist.'89$this->source); })());
  325.                     // line 90
  326.                     echo "                        ";
  327.                 } else {
  328.                     // line 91
  329.                     echo "                            ";
  330.                     $context["purchasing_goods_name"] = "カートの中の商品";
  331.                     // line 92
  332.                     echo "                        ";
  333.                 }
  334.                 // line 93
  335.                 echo "
  336.                         <div class=\"ec-cartRole__totalText\">
  337.                             <p>
  338.                                 ";
  339.                 // line 96
  340.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["purchasing_goods_name"]) || array_key_exists("purchasing_goods_name"$context) ? $context["purchasing_goods_name"] : (function () { throw new RuntimeError('Variable "purchasing_goods_name" does not exist.'96$this->source); })()), 96$this->source), "html"nulltrue);
  341.                 echo "の合計金額は「<strong>";
  342.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Cart"], "totalPrice", [], "any"falsefalsetrue96), 96$this->source)), "html"nulltrue);
  343.                 echo "円</strong>」です。
  344.                             </p>
  345.                         </div>
  346.                         ";
  347.                 // line 101
  348.                 echo "                        <div class=\"ec-cartRole__cart\">
  349.                             <div class=\"ec-cartTable table-layout__type3\">
  350.                                 <div class=\"tr table-head\">
  351.                                     <div class=\"th w1 ec-cartHeader__label\">削除</div>
  352.                                     <div class=\"th w1 ec-cartHeader__label\">画像</div>
  353.                                     <div class=\"th w4 table-layout__name ec-cartHeader__label\">商品名</div>
  354.                                     <div class=\"th w2 ec-cartHeader__label\">単価</div>
  355.                                     <div class=\"th w2 ec-cartHeader__label\">数量</div>
  356.                                     <div class=\"th w2 ec-cartHeader__label\">小計</div>
  357.                                 </div>
  358.                                 ";
  359.                 // line 111
  360.                 $context['_parent'] = $context;
  361.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue111));
  362.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  363.                     // line 112
  364.                     echo "                                    ";
  365.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue112);
  366.                     // line 113
  367.                     echo "                                    ";
  368.                     $context["Product"] = twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'113$this->source); })()), "Product", [], "any"falsefalsetrue113);
  369.                     // line 114
  370.                     echo "                                    <div class=\"tr\">
  371.                                         <div class=\"td w1 table-layout__deleate textLC ec-cartRow__delColumn\">
  372.                                             <div class=\"position-center\">
  373.                                                 <div class=\"only-pc\">
  374.                                                     <a class=\"btn-oldinput__short ec-icon\" href=\"";
  375.                     // line 118
  376.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "remove""productClassId" => twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'118$this->source); })()), "id", [], "any"falsefalsetrue118)]), "html"nulltrue);
  377.                     echo "\" ";
  378.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  379.                     echo " data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  380.                                                         <span>削除</span>
  381.                                                     </a>
  382.                                                 </div>
  383.                                                 <div class=\"only-sp\">
  384.                                                     <a class=\"ec-icon\" href=\"";
  385.                     // line 123
  386.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "remove""productClassId" => twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'123$this->source); })()), "id", [], "any"falsefalsetrue123)]), "html"nulltrue);
  387.                     echo "\" ";
  388.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  389.                     echo " data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  390.                                                         <p class=\"ec-icon close-btn\">
  391.                                                         <img src=\"";
  392.                     // line 125
  393.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-white.svg"), "html"nulltrue);
  394.                     echo "\" alt=\"delete\">
  395.                                                         </p>
  396.                                                     </a>
  397.                                                 </div>
  398.                                             </div>
  399.                                         </div>
  400.                                         <div class=\"td w1 table-layout__img textLC ec-cartRow__img\">
  401.                                             <div class=\"position-center\">
  402.                                                 <a target=\"_blank\" href=\"";
  403.                     // line 133
  404.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'133$this->source); })()), "id", [], "any"falsefalsetrue133)]), "html"nulltrue);
  405.                     echo "\">
  406.                                                     <img src=\"";
  407.                     // line 134
  408.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'134$this->source); })()), "MainListImage", [], "any"falsefalsetrue134), 134$this->source)), "save_image"), "html"nulltrue);
  409.                     echo "\" alt=\"";
  410.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'134$this->source); })()), "name", [], "any"falsefalsetrue134), 134$this->source), "html"nulltrue);
  411.                     echo "\"/>
  412.                                                 </a>
  413.                                             </div>
  414.                                         </div>
  415.                                         <div class=\"td w4 table-layout__right ec-cartRow__name\" data-label=\"商品名 :\">
  416.                                             <div class=\"position-center\">
  417.                                                 <a target=\"_blank\" href=\"";
  418.                     // line 140
  419.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'140$this->source); })()), "id", [], "any"falsefalsetrue140)]), "html"nulltrue);
  420.                     echo "\">";
  421.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'140$this->source); })()), "name", [], "any"falsefalsetrue140), 140$this->source), "html"nulltrue);
  422.                     echo "</a>
  423.                                                 ";
  424.                     // line 141
  425.                     if ((twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'141$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue141) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'141$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue141), "id", [], "any"falsefalsetrue141))) {
  426.                         // line 142
  427.                         echo "                                                    <p>";
  428.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'142$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue142), "ClassName", [], "any"falsefalsetrue142), "name", [], "any"falsefalsetrue142), 142$this->source), "html"nulltrue);
  429.                         echo ":";
  430.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'142$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue142), 142$this->source), "html"nulltrue);
  431.                         echo "</p>
  432.                                                 ";
  433.                     }
  434.                     // line 144
  435.                     echo "                                                ";
  436.                     if ((twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'144$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue144) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'144$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue144), "id", [], "any"falsefalsetrue144))) {
  437.                         // line 145
  438.                         echo "                                                    <p>";
  439.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'145$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue145), "ClassName", [], "any"falsefalsetrue145), "name", [], "any"falsefalsetrue145), 145$this->source), "html"nulltrue);
  440.                         echo ":";
  441.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'145$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue145), 145$this->source), "html"nulltrue);
  442.                         echo "</p>
  443.                                                 ";
  444.                     }
  445.                     // line 147
  446.                     echo "                                            </div>
  447.                                         </div>
  448.                                         <div  class=\"td w2 table-layout__right textLR ec-cartRow__unitPrice\" data-label=\"単価 :\">
  449.                                             <div class=\"position-center\">
  450.                                                 <span>";
  451.                     // line 151
  452.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "price", [], "any"falsefalsetrue151), 151$this->source)), "html"nulltrue);
  453.                     echo "円</span>
  454.                                             </div>
  455.                                         </div>
  456.                                         <div  class=\"td w2 table-layout__right textLC ec-cartRow__amountColumn\" data-label=\"数量 :\">
  457.                                             <div class=\"position-center\">
  458.                                                 <p class=\"ec-cartRow__amount\">";
  459.                     // line 156
  460.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue156), 156$this->source)), "html"nulltrue);
  461.                     echo "</p>
  462.                                                 <div class=\"ec-cartRow__amountUpDown flex\">
  463.                                                     ";
  464.                     // line 158
  465.                     if ((twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue158) > 1)) {
  466.                         // line 159
  467.                         echo "                                                        <a href=\"";
  468.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "down""productClassId" => twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'159$this->source); })()), "id", [], "any"falsefalsetrue159)]), "html"nulltrue);
  469.                         echo "\" ";
  470.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  471.                         echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  472.                                                             <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  473.                         // line 160
  474.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus-dark.svg"), "html"nulltrue);
  475.                         echo "\" alt=\"reduce\"></span>
  476.                                                         </a>
  477.                                                     ";
  478.                     } else {
  479.                         // line 163
  480.                         echo "                                                        <div class=\"ec-cartRow__amountDownButtonDisabled\">
  481.                                                             <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  482.                         // line 164
  483.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus.svg"), "html"nulltrue);
  484.                         echo "\" alt=\"reduce\"></span>
  485.                                                         </div>
  486.                                                     ";
  487.                     }
  488.                     // line 167
  489.                     echo "                                                    <a href=\"";
  490.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "up""productClassId" => twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'167$this->source); })()), "id", [], "any"falsefalsetrue167)]), "html"nulltrue);
  491.                     echo "\" ";
  492.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  493.                     echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  494.                                                         <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"";
  495.                     // line 168
  496.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/plus-dark.svg"), "html"nulltrue);
  497.                     echo "\" alt=\"increase\"></span>
  498.                                                     </a>
  499.                                                 </div>
  500.                                             </div>
  501.                                         </div>
  502.                                         <div  class=\"td w2 table-layout__right textLR ec-cartRow__subtotalColumn\" data-label=\"小計 :\">
  503.                                             <div class=\"ec-cartRow__sutbtotal position-center\">
  504.                                                 <span>";
  505.                     // line 175
  506.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsetrue175), 175$this->source)), "html"nulltrue);
  507.                     echo "円</span>
  508.                                             </div>
  509.                                         </div>
  510.                                     </div>
  511.                                 ";
  512.                 }
  513.                 $_parent $context['_parent'];
  514.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  515.                 $context array_intersect_key($context$_parent) + $_parent;
  516.                 // line 180
  517.                 echo "                            </div>
  518.                         </div>
  519.                         ";
  520.                 // line 182
  521.                 if (((isset($context["errorflug"]) || array_key_exists("errorflug"$context) ? $context["errorflug"] : (function () { throw new RuntimeError('Variable "errorflug" does not exist.'182$this->source); })()) == false)) {
  522.                     // line 183
  523.                     echo "                            <p class=\"cart-agree\">上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
  524.                         ";
  525.                 }
  526.                 // line 185
  527.                 echo "                        <div class=\"btn-area flex\">
  528.                             <a class=\"ec-blockBtn--action orange-btn\" href=\"";
  529.                 // line 186
  530.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_buystep", ["cart_key" => (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'186$this->source); })())]), "html"nulltrue);
  531.                 echo "\">購入手続きへ</a>
  532.                             <a class=\"ec-blockBtn--cancel gray-btn back-btn\" href=\"";
  533.                 // line 187
  534.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  535.                 echo "\">戻る</a>
  536.                         </div>
  537.                     </div>
  538.                 ";
  539.             }
  540.             $_parent $context['_parent'];
  541.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  542.             $context array_intersect_key($context$_parent) + $_parent;
  543.             // line 191
  544.             echo "            </form>
  545.         ";
  546.         } else {
  547.             // line 193
  548.             echo "            ";
  549.             $context['_parent'] = $context;
  550.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'193$this->source); })()));
  551.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  552.                 // line 194
  553.                 echo "                ";
  554.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue194);
  555.                 // line 195
  556.                 echo "                ";
  557.                 $context['_parent'] = $context;
  558.                 $context['_seq'] = twig_ensure_traversable(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.'195$this->source); })()), "session", [], "any"falsefalsetrue195), "flashbag", [], "any"falsefalsetrue195), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'195$this->source); })())) . ".request.error")], "method"falsefalsetrue195));
  559.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  560.                     // line 196
  561.                     echo "                    <div class=\"ec-cartRole__error\">
  562.                         <div class=\"ec-alert-warning\">
  563.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  564.                     // line 198
  565.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  566.                     echo "\"></div>
  567.                             <div class=\"ec-alert-warning__text\">
  568.                                 ";
  569.                     // line 200
  570.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 200$this->source)), "html"nulltrue));
  571.                     echo "
  572.                             </div>
  573.                         </div>
  574.                     </div>
  575.                 ";
  576.                 }
  577.                 $_parent $context['_parent'];
  578.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  579.                 $context array_intersect_key($context$_parent) + $_parent;
  580.                 // line 205
  581.                 echo "            ";
  582.             }
  583.             $_parent $context['_parent'];
  584.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  585.             $context array_intersect_key($context$_parent) + $_parent;
  586.             // line 206
  587.             echo "            <div class=\"ec-role\">
  588.                 <div class=\"ec-alert-warning\">
  589.                     <div class=\"ec-alert-warning__text empty\"><span class=\"attention\">※ 現在カート内に商品はございません。</span></div>
  590.                 </div>
  591.             </div>
  592.         ";
  593.         }
  594.         // line 212
  595.         echo "    </div>
  596. </div>
  597. ";
  598.         
  599.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  600.         
  601.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  602.     }
  603.     public function getTemplateName()
  604.     {
  605.         return "Cart/index.twig";
  606.     }
  607.     public function isTraitable()
  608.     {
  609.         return false;
  610.     }
  611.     public function getDebugInfo()
  612.     {
  613.         return array (  612 => 212,  604 => 206,  598 => 205,  587 => 200,  582 => 198,  578 => 196,  573 => 195,  570 => 194,  565 => 193,  561 => 191,  551 => 187,  547 => 186,  544 => 185,  540 => 183,  538 => 182,  534 => 180,  523 => 175,  513 => 168,  506 => 167,  500 => 164,  497 => 163,  491 => 160,  484 => 159,  482 => 158,  477 => 156,  469 => 151,  463 => 147,  455 => 145,  452 => 144,  444 => 142,  442 => 141,  436 => 140,  425 => 134,  421 => 133,  410 => 125,  403 => 123,  393 => 118,  387 => 114,  384 => 113,  381 => 112,  377 => 111,  365 => 101,  356 => 96,  351 => 93,  348 => 92,  345 => 91,  342 => 90,  340 => 89,  335 => 88,  321 => 87,  318 => 86,  315 => 85,  312 => 84,  294 => 83,  291 => 82,  288 => 81,  285 => 80,  282 => 78,  276 => 77,  274 => 76,  267 => 72,  262 => 70,  258 => 68,  253 => 67,  250 => 66,  248 => 65,  245 => 64,  241 => 63,  236 => 61,  233 => 60,  225 => 55,  221 => 54,  218 => 53,  212 => 52,  206 => 51,  203 => 50,  200 => 49,  197 => 48,  192 => 47,  187 => 46,  184 => 45,  180 => 42,  177 => 41,  174 => 40,  163 => 35,  158 => 33,  154 => 31,  149 => 30,  132 => 26,  126 => 24,  120 => 22,  118 => 21,  113 => 19,  109 => 17,  106 => 16,  88 => 15,  86 => 14,  78 => 9,  73 => 6,  63 => 5,  52 => 1,  50 => 3,  37 => 1,);
  614.     }
  615.     public function getSourceContext()
  616.     {
  617.         return new Source("{% extends 'default_frame.twig' %}
  618. {% set body_class = 'cart_page' %}
  619. {% block main %}
  620. <div id=\"undercolumn_cart\">
  621.     <div class=\"ec-role\">
  622.         <div class=\"ec-pageHeader\">
  623.             <h2 class=\"title\">{{ '現在のカゴの中'|trans }}</h2>
  624.         </div>
  625.     </div>
  626.     <div class=\"ec-cartRole\">
  627.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  628.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  629.             {% set idx = loop.index0 %}
  630.             <div class=\"ec-cartRole__error\">
  631.                 <div class=\"ec-alert-warning\">
  632.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  633.                     <div class=\"ec-alert-warning__text\">
  634.                         {% if productStr[idx] is defined %}
  635.                             {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  636.                         {% else %}
  637.                             {{ error|trans|nl2br }}
  638.                         {% endif %}
  639.                     </div>
  640.                 </div>
  641.             </div>
  642.         {% endfor %}
  643.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  644.             <div class=\"ec-cartRole__error\">
  645.                 <div class=\"ec-alert-warning\">
  646.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  647.                     <div class=\"ec-alert-warning__text\">
  648.                         {{ error|trans|nl2br }}
  649.                     </div>
  650.                 </div>
  651.             </div>
  652.         {% endfor %}
  653.         {% if totalQuantity > 0 %}
  654.             {% if Carts|length > 1 %}
  655.                 <div class=\"ec-alert-warning\">
  656.                     <div class=\"ec-alert-warning__text\">
  657.                         {# 商品のSalecttypeを求める #}
  658.                         {% set SaleTypetext = [] %}
  659.                         {% for CartIndex,Cart in Carts %}
  660.                             {% for CartItem in Cart.CartItems %}
  661.                                 {% if CartItem.ProductClass.SaleType.name not in SaleTypetext %}
  662.                                     {% set SaleTypetext = SaleTypetext|merge([CartItem.ProductClass.SaleType.name]) %}
  663.                                 {% endif %}
  664.                             {% endfor %}
  665.                         {% endfor %}
  666.                         <div class=\"alert\" style=\"margin-bottom:0;\">
  667.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  668.                             {{SaleTypetext|join(',')}}は同時購入できません。<br />お手数ですが、個別に購入手続きをお願い致します。
  669.                         </div>
  670.                     </div>
  671.                 </div>
  672.             {% endif %}
  673.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
  674.                 {% for CartIndex,Cart in Carts %}
  675.                     <div class=\"cart-list\">
  676.                         {% set cartKey = Cart.cart_key %}
  677.                         {% set errorflug = false %}
  678.                         {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  679.                             <div class=\"ec-cartRole__error\">
  680.                                 <div class=\"ec-alert-warning\">
  681.                                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  682.                                     <div class=\"ec-alert-warning__text\">
  683.                                         {{ error|trans|nl2br }}
  684.                                     </div>
  685.                                 </div>
  686.                             </div>
  687.                             {% set errorflug = true %}
  688.                         {% endfor %}
  689.                         {# カートヘッダー(カートが別れる時のみ表示) #}
  690.                         {% set purchasing_goods_name = '' %}
  691.                         {% if Carts|length > 1 %}
  692.                             {% set SaleTypefirst = [] %}
  693.                             {% for CartItem in Cart.CartItems %}
  694.                             {% if loop.first %}
  695.                                 {% set SaleTypefirst = CartItem.ProductClass.SaleType.name %}
  696.                             {% endif %}
  697.                             {% endfor %}
  698.                                 <h3 class=\"subtitle\">{{SaleTypefirst}}</h3>
  699.                             {% set purchasing_goods_name = SaleTypefirst %}
  700.                         {% else %}
  701.                             {% set purchasing_goods_name = \"カートの中の商品\" %}
  702.                         {% endif %}
  703.                         <div class=\"ec-cartRole__totalText\">
  704.                             <p>
  705.                                 {{purchasing_goods_name}}の合計金額は「<strong>{{ Cart.totalPrice|number_format }}円</strong>」です。
  706.                             </p>
  707.                         </div>
  708.                         {# カート詳細情報 #}
  709.                         <div class=\"ec-cartRole__cart\">
  710.                             <div class=\"ec-cartTable table-layout__type3\">
  711.                                 <div class=\"tr table-head\">
  712.                                     <div class=\"th w1 ec-cartHeader__label\">削除</div>
  713.                                     <div class=\"th w1 ec-cartHeader__label\">画像</div>
  714.                                     <div class=\"th w4 table-layout__name ec-cartHeader__label\">商品名</div>
  715.                                     <div class=\"th w2 ec-cartHeader__label\">単価</div>
  716.                                     <div class=\"th w2 ec-cartHeader__label\">数量</div>
  717.                                     <div class=\"th w2 ec-cartHeader__label\">小計</div>
  718.                                 </div>
  719.                                 {% for CartItem in Cart.CartItems %}
  720.                                     {% set ProductClass = CartItem.ProductClass %}
  721.                                     {% set Product = ProductClass.Product %}
  722.                                     <div class=\"tr\">
  723.                                         <div class=\"td w1 table-layout__deleate textLC ec-cartRow__delColumn\">
  724.                                             <div class=\"position-center\">
  725.                                                 <div class=\"only-pc\">
  726.                                                     <a class=\"btn-oldinput__short ec-icon\" href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  727.                                                         <span>削除</span>
  728.                                                     </a>
  729.                                                 </div>
  730.                                                 <div class=\"only-sp\">
  731.                                                     <a class=\"ec-icon\" href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  732.                                                         <p class=\"ec-icon close-btn\">
  733.                                                         <img src=\"{{ asset('assets/icon/cross-white.svg') }}\" alt=\"delete\">
  734.                                                         </p>
  735.                                                     </a>
  736.                                                 </div>
  737.                                             </div>
  738.                                         </div>
  739.                                         <div class=\"td w1 table-layout__img textLC ec-cartRow__img\">
  740.                                             <div class=\"position-center\">
  741.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  742.                                                     <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  743.                                                 </a>
  744.                                             </div>
  745.                                         </div>
  746.                                         <div class=\"td w4 table-layout__right ec-cartRow__name\" data-label=\"商品名 :\">
  747.                                             <div class=\"position-center\">
  748.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  749.                                                 {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  750.                                                     <p>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}</p>
  751.                                                 {% endif %}
  752.                                                 {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  753.                                                     <p>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}</p>
  754.                                                 {% endif %}
  755.                                             </div>
  756.                                         </div>
  757.                                         <div  class=\"td w2 table-layout__right textLR ec-cartRow__unitPrice\" data-label=\"単価 :\">
  758.                                             <div class=\"position-center\">
  759.                                                 <span>{{ CartItem.price|number_format }}円</span>
  760.                                             </div>
  761.                                         </div>
  762.                                         <div  class=\"td w2 table-layout__right textLC ec-cartRow__amountColumn\" data-label=\"数量 :\">
  763.                                             <div class=\"position-center\">
  764.                                                 <p class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</p>
  765.                                                 <div class=\"ec-cartRow__amountUpDown flex\">
  766.                                                     {% if CartItem.quantity > 1 %}
  767.                                                         <a href=\"{{ url('cart_handle_item', {'operation': 'down', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  768.                                                             <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
  769.                                                         </a>
  770.                                                     {% else %}
  771.                                                         <div class=\"ec-cartRow__amountDownButtonDisabled\">
  772.                                                             <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
  773.                                                         </div>
  774.                                                     {% endif %}
  775.                                                     <a href=\"{{ url('cart_handle_item', {'operation': 'up', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  776.                                                         <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
  777.                                                     </a>
  778.                                                 </div>
  779.                                             </div>
  780.                                         </div>
  781.                                         <div  class=\"td w2 table-layout__right textLR ec-cartRow__subtotalColumn\" data-label=\"小計 :\">
  782.                                             <div class=\"ec-cartRow__sutbtotal position-center\">
  783.                                                 <span>{{ CartItem.total_price|number_format }}円</span>
  784.                                             </div>
  785.                                         </div>
  786.                                     </div>
  787.                                 {% endfor %}
  788.                             </div>
  789.                         </div>
  790.                         {% if errorflug == false %}
  791.                             <p class=\"cart-agree\">上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
  792.                         {% endif %}
  793.                         <div class=\"btn-area flex\">
  794.                             <a class=\"ec-blockBtn--action orange-btn\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">購入手続きへ</a>
  795.                             <a class=\"ec-blockBtn--cancel gray-btn back-btn\" href=\"{{ path('homepage') }}\">戻る</a>
  796.                         </div>
  797.                     </div>
  798.                 {% endfor %}
  799.             </form>
  800.         {% else %}
  801.             {% for CartIndex,Cart in Carts %}
  802.                 {% set cartKey = Cart.cart_key %}
  803.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  804.                     <div class=\"ec-cartRole__error\">
  805.                         <div class=\"ec-alert-warning\">
  806.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  807.                             <div class=\"ec-alert-warning__text\">
  808.                                 {{ error|trans|nl2br }}
  809.                             </div>
  810.                         </div>
  811.                     </div>
  812.                 {% endfor %}
  813.             {% endfor %}
  814.             <div class=\"ec-role\">
  815.                 <div class=\"ec-alert-warning\">
  816.                     <div class=\"ec-alert-warning__text empty\"><span class=\"attention\">※ 現在カート内に商品はございません。</span></div>
  817.                 </div>
  818.             </div>
  819.         {% endif %}
  820.     </div>
  821. </div>
  822. {% endblock %}
  823. ""Cart/index.twig""/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Cart/index.twig");
  824.     }
  825.     
  826.     public function checkSecurity()
  827.     {
  828.         static $tags = array("set" => 3"for" => 15"if" => 21);
  829.         static $filters = array("escape" => 9"trans" => 9"nl2br" => 22"length" => 41"merge" => 49"join" => 55"number_format" => 96"no_image_product" => 134);
  830.         static $functions = array("asset" => 19"url" => 61"csrf_token_for_anchor" => 118"path" => 186);
  831.         try {
  832.             $this->sandbox->checkSecurity(
  833.                 ['set''for''if'],
  834.                 ['escape''trans''nl2br''length''merge''join''number_format''no_image_product'],
  835.                 ['asset''url''csrf_token_for_anchor''path']
  836.             );
  837.         } catch (SecurityError $e) {
  838.             $e->setSourceContext($this->source);
  839.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  840.                 $e->setTemplateLine($tags[$e->getTagName()]);
  841.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  842.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  843.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  844.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  845.             }
  846.             throw $e;
  847.         }
  848.     }
  849. }