var/cache/dev/twig/a0/a0fb0c8b3e82ad036ebfd2a1f9010854.php line 53

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_09689a19ef0dc99b5ad9645996b7b71c 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 11
  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 13
  41.         $context["body_class"] = "cart_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Cart/index.twig"11);
  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 15
  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 16
  59.         echo "
  60.     <div class=\"ec-role\">
  61.         <div class=\"ec-pageHeader\">
  62.             <h1>";
  63.         // line 19
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショッピングカート"), "html"nulltrue);
  65.         echo "</h1>
  66.         </div>
  67.     </div>
  68.     <div class=\"ec-cartRole\">
  69.         <div class=\"ec-cartRole__progress\">
  70.             <ul class=\"ec-progress\">
  71.                 ";
  72.         // line 26
  73.         $context["step"] = 1;
  74.         // line 27
  75.         echo "                <li class=\"ec-progress__item is-complete\">
  76.                     <div class=\"ec-progress__number\">";
  77.         // line 28
  78.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'28$this->source); })()), 28$this->source), "html"nulltrue);
  79.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'28$this->source); })()) + 1);
  80.         // line 29
  81.         echo "                    </div>
  82.                     <div class=\"ec-progress__label\">";
  83.         // line 30
  84.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートの商品"), "html"nulltrue);
  85.         echo "
  86.                     </div>
  87.                 </li>
  88.                 ";
  89.         // line 33
  90.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
  91.             // line 34
  92.             echo "                    <li class=\"ec-progress__item\">
  93.                         <div class=\"ec-progress__number\">";
  94.             // line 35
  95.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'35$this->source); })()), 35$this->source), "html"nulltrue);
  96.             $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'35$this->source); })()) + 1);
  97.             // line 36
  98.             echo "                        </div>
  99.                         <div class=\"ec-progress__label\">";
  100.             // line 37
  101.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お客様情報"), "html"nulltrue);
  102.             echo "
  103.                         </div>
  104.                     </li>
  105.                 ";
  106.         }
  107.         // line 41
  108.         echo "                <li class=\"ec-progress__item\">
  109.                     <div class=\"ec-progress__number\">";
  110.         // line 42
  111.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'42$this->source); })()), 42$this->source), "html"nulltrue);
  112.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'42$this->source); })()) + 1);
  113.         // line 43
  114.         echo "                    </div>
  115.                     <div class=\"ec-progress__label\">";
  116.         // line 44
  117.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文手続き"), "html"nulltrue);
  118.         echo "
  119.                     </div>
  120.                 </li>
  121.                 <li class=\"ec-progress__item\">
  122.                     <div class=\"ec-progress__number\">";
  123.         // line 48
  124.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'48$this->source); })()), 48$this->source), "html"nulltrue);
  125.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'48$this->source); })()) + 1);
  126.         // line 49
  127.         echo "                    </div>
  128.                     <div class=\"ec-progress__label\">";
  129.         // line 50
  130.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文内容確認"), "html"nulltrue);
  131.         echo "
  132.                     </div>
  133.                 </li>
  134.                 <li class=\"ec-progress__item\">
  135.                     <div class=\"ec-progress__number\">";
  136.         // line 54
  137.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'54$this->source); })()), 54$this->source), "html"nulltrue);
  138.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'54$this->source); })()) + 1);
  139.         // line 55
  140.         echo "                    </div>
  141.                     <div class=\"ec-progress__label\">";
  142.         // line 56
  143.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("完了"), "html"nulltrue);
  144.         echo "
  145.                     </div>
  146.                 </li>
  147.             </ul>
  148.         </div>
  149.         ";
  150.         // line 61
  151.         $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.'61$this->source); })()), "session", [], "any"falsefalsetrue61), "flashbag", [], "any"falsefalsetrue61), "get", [=> "eccube.front.request.product"], "method"falsefalsetrue61);
  152.         // line 62
  153.         echo "        ";
  154.         $context['_parent'] = $context;
  155.         $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.'62$this->source); })()), "session", [], "any"falsefalsetrue62), "flashbag", [], "any"falsefalsetrue62), "get", [=> "eccube.front.request.error"], "method"falsefalsetrue62));
  156.         $context['loop'] = [
  157.           'parent' => $context['_parent'],
  158.           'index0' => 0,
  159.           'index'  => 1,
  160.           'first'  => true,
  161.         ];
  162.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  163.             $length count($context['_seq']);
  164.             $context['loop']['revindex0'] = $length 1;
  165.             $context['loop']['revindex'] = $length;
  166.             $context['loop']['length'] = $length;
  167.             $context['loop']['last'] = === $length;
  168.         }
  169.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  170.             // line 63
  171.             echo "            ";
  172.             $context["idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue63);
  173.             // line 64
  174.             echo "            <div class=\"ec-cartRole__error\">
  175.                 <div class=\"ec-alert-warning\">
  176.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  177.             // line 66
  178.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  179.             echo "\"></div>
  180.                     <div class=\"ec-alert-warning__text\">
  181.                         ";
  182.             // line 68
  183.             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.'68$this->source); })()), [], "array"truetruetrue68)) {
  184.                 // line 69
  185.                 echo "                            ";
  186.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 69$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.'69$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'69$this->source); })()), [], "array"falsefalsetrue69)]), "html"nulltrue));
  187.                 echo "
  188.                         ";
  189.             } else {
  190.                 // line 71
  191.                 echo "                            ";
  192.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 71$this->source)), "html"nulltrue));
  193.                 echo "
  194.                         ";
  195.             }
  196.             // line 73
  197.             echo "                    </div>
  198.                 </div>
  199.             </div>
  200.         ";
  201.             ++$context['loop']['index0'];
  202.             ++$context['loop']['index'];
  203.             $context['loop']['first'] = false;
  204.             if (isset($context['loop']['length'])) {
  205.                 --$context['loop']['revindex0'];
  206.                 --$context['loop']['revindex'];
  207.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  208.             }
  209.         }
  210.         $_parent $context['_parent'];
  211.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  212.         $context array_intersect_key($context$_parent) + $_parent;
  213.         // line 77
  214.         echo "        ";
  215.         $context['_parent'] = $context;
  216.         $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.'77$this->source); })()), "session", [], "any"falsefalsetrue77), "flashbag", [], "any"falsefalsetrue77), "get", [=> "eccube.front.cart.error"], "method"falsefalsetrue77));
  217.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  218.             // line 78
  219.             echo "            <div class=\"ec-cartRole__error\">
  220.                 <div class=\"ec-alert-warning\">
  221.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  222.             // line 80
  223.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  224.             echo "\"></div>
  225.                     <div class=\"ec-alert-warning__text\">
  226.                         ";
  227.             // line 82
  228.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 82$this->source)), "html"nulltrue));
  229.             echo "
  230.                     </div>
  231.                 </div>
  232.             </div>
  233.         ";
  234.         }
  235.         $_parent $context['_parent'];
  236.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  237.         $context array_intersect_key($context$_parent) + $_parent;
  238.         // line 87
  239.         echo "        ";
  240.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'87$this->source); })()) > 0)) {
  241.             // line 88
  242.             echo "            <div class=\"ec-cartRole__totalText\">
  243.                 <p>
  244.                     ";
  245.             // line 90
  246.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品の合計金額は「<strong>%price%</strong>」です。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed((isset($context["totalPrice"]) || array_key_exists("totalPrice"$context) ? $context["totalPrice"] : (function () { throw new RuntimeError('Variable "totalPrice" does not exist.'90$this->source); })()), 90$this->source))]);
  247.             echo "
  248.                 </p>
  249.             </div>
  250.             ";
  251.             // line 93
  252.             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.'93$this->source); })())) > 1)) {
  253.                 // line 94
  254.                 echo "                <div class=\"ec-cartRole__error\">
  255.                     <div class=\"ec-alert-warning\">
  256.                         <div class=\"ec-alert-warning__text\">
  257.                             ";
  258.                 // line 97
  259.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html"nulltrue));
  260.                 echo "
  261.                         </div>
  262.                     </div>
  263.                 </div>
  264.             ";
  265.             }
  266.             // line 102
  267.             echo "
  268.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
  269.             // line 103
  270.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  271.             echo "\">
  272.                 ";
  273.             // line 105
  274.             $context['_parent'] = $context;
  275.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'105$this->source); })()));
  276.             $context['loop'] = [
  277.               'parent' => $context['_parent'],
  278.               'index0' => 0,
  279.               'index'  => 1,
  280.               'first'  => true,
  281.             ];
  282.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  283.                 $length count($context['_seq']);
  284.                 $context['loop']['revindex0'] = $length 1;
  285.                 $context['loop']['revindex'] = $length;
  286.                 $context['loop']['length'] = $length;
  287.                 $context['loop']['last'] = === $length;
  288.             }
  289.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  290.                 // line 106
  291.                 echo "                    ";
  292.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue106);
  293.                 // line 107
  294.                 echo "                    ";
  295.                 $context['_parent'] = $context;
  296.                 $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.'107$this->source); })()), "session", [], "any"falsefalsetrue107), "flashbag", [], "any"falsefalsetrue107), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'107$this->source); })())) . ".request.error")], "method"falsefalsetrue107));
  297.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  298.                     // line 108
  299.                     echo "                        <div class=\"ec-cartRole__error\">
  300.                             <div class=\"ec-alert-warning\">
  301.                                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  302.                     // line 110
  303.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  304.                     echo "\"></div>
  305.                                 <div class=\"ec-alert-warning__text\">
  306.                                     ";
  307.                     // line 112
  308.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 112$this->source)), "html"nulltrue));
  309.                     echo "
  310.                                 </div>
  311.                             </div>
  312.                         </div>
  313.                     ";
  314.                 }
  315.                 $_parent $context['_parent'];
  316.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  317.                 $context array_intersect_key($context$_parent) + $_parent;
  318.                 // line 117
  319.                 echo "
  320.                     <div class=\"ec-cartRole__cart\">
  321.                         <div class=\"ec-cartTable\">
  322.                             <ol class=\"ec-cartHeader\">
  323.                                 <li class=\"ec-cartHeader__label\">";
  324.                 // line 121
  325.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("削除"), "html"nulltrue);
  326.                 echo "</li>
  327.                                 <li class=\"ec-cartHeader__label\">";
  328.                 // line 122
  329.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品内容"), "html"nulltrue);
  330.                 echo "</li>
  331.                                 <li class=\"ec-cartHeader__label\">";
  332.                 // line 123
  333.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  334.                 echo "</li>
  335.                                 <li class=\"ec-cartHeader__label\">";
  336.                 // line 124
  337.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html"nulltrue);
  338.                 echo "</li>
  339.                             </ol>
  340.                             ";
  341.                 // line 126
  342.                 $context['_parent'] = $context;
  343.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue126));
  344.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  345.                     // line 127
  346.                     echo "                                ";
  347.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue127);
  348.                     // line 128
  349.                     echo "                                ";
  350.                     $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.'128$this->source); })()), "Product", [], "any"falsefalsetrue128);
  351.                     // line 129
  352.                     echo "                                <ul class=\"ec-cartRow\">
  353.                                     <li class=\"ec-cartRow__delColumn\">
  354.                                         <a href=\"";
  355.                     // line 131
  356.                     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.'131$this->source); })()), "id", [], "any"falsefalsetrue131)]), "html"nulltrue);
  357.                     echo "\" ";
  358.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  359.                     echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  360.                                             <img src=\"";
  361.                     // line 132
  362.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html"nulltrue);
  363.                     echo "\" alt=\"delete\">
  364.                                         </a>
  365.                                     </li>
  366.                                     <li class=\"ec-cartRow__contentColumn\">
  367.                                         <div class=\"ec-cartRow__img\">
  368.                                             <a target=\"_blank\" href=\"";
  369.                     // line 137
  370.                     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.'137$this->source); })()), "id", [], "any"falsefalsetrue137)]), "html"nulltrue);
  371.                     echo "\">
  372.                                                 <img src=\"";
  373.                     // line 138
  374.                     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.'138$this->source); })()), "MainListImage", [], "any"falsefalsetrue138), 138$this->source)), "save_image"), "html"nulltrue);
  375.                     echo "\" alt=\"";
  376.                     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.'138$this->source); })()), "name", [], "any"falsefalsetrue138), 138$this->source), "html"nulltrue);
  377.                     echo "\"/>
  378.                                             </a>
  379.                                         </div>
  380.                                         <div class=\"ec-cartRow__summary\">
  381.                                             <div class=\"ec-cartRow__name\">
  382.                                                 <a target=\"_blank\" href=\"";
  383.                     // line 143
  384.                     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.'143$this->source); })()), "id", [], "any"falsefalsetrue143)]), "html"nulltrue);
  385.                     echo "\">";
  386.                     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.'143$this->source); })()), "name", [], "any"falsefalsetrue143), 143$this->source), "html"nulltrue);
  387.                     echo "</a>
  388.                                                 ";
  389.                     // line 144
  390.                     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); })()), "ClassCategory1", [], "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); })()), "ClassCategory1", [], "any"falsefalsetrue144), "id", [], "any"falsefalsetrue144))) {
  391.                         // line 145
  392.                         echo "                                                    <br>";
  393.                         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); })()), "ClassCategory1", [], "any"falsefalsetrue145), "ClassName", [], "any"falsefalsetrue145), "name", [], "any"falsefalsetrue145), 145$this->source), "html"nulltrue);
  394.                         echo ":";
  395.                         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); })()), "ClassCategory1", [], "any"falsefalsetrue145), 145$this->source), "html"nulltrue);
  396.                         echo "
  397.                                                 ";
  398.                     }
  399.                     // line 147
  400.                     echo "                                                ";
  401.                     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.'147$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue147) && 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.'147$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue147), "id", [], "any"falsefalsetrue147))) {
  402.                         // line 148
  403.                         echo "                                                    <br>";
  404.                         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.'148$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue148), "ClassName", [], "any"falsefalsetrue148), "name", [], "any"falsefalsetrue148), 148$this->source), "html"nulltrue);
  405.                         echo ":";
  406.                         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.'148$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue148), 148$this->source), "html"nulltrue);
  407.                         echo "
  408.                                                 ";
  409.                     }
  410.                     // line 150
  411.                     echo "                                            </div>
  412.                                             <div class=\"ec-cartRow__unitPrice\">";
  413.                     // line 151
  414.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "price", [], "any"falsefalsetrue151), 151$this->source)), "html"nulltrue);
  415.                     echo "</div>
  416.                                             <div class=\"ec-cartRow__sutbtotalSP\">";
  417.                     // line 152
  418.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計:"), "html"nulltrue);
  419.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsetrue152), 152$this->source)), "html"nulltrue);
  420.                     echo "</div>
  421.                                         </div>
  422.                                     </li>
  423.                                     <li class=\"ec-cartRow__amountColumn\">
  424.                                         <div class=\"ec-cartRow__amount\">";
  425.                     // line 156
  426.                     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);
  427.                     echo "</div>
  428.                                         <div class=\"ec-cartRow__amountSP\">";
  429.                     // line 157
  430.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量:"), "html"nulltrue);
  431.                     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"falsefalsetrue157), 157$this->source)), "html"nulltrue);
  432.                     echo "</div>
  433.                                         <div class=\"ec-cartRow__amountUpDown\">
  434.                                             ";
  435.                     // line 159
  436.                     if ((twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue159) > 1)) {
  437.                         // line 160
  438.                         echo "                                                <a href=\"";
  439.                         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.'160$this->source); })()), "id", [], "any"falsefalsetrue160)]), "html"nulltrue);
  440.                         echo "\" ";
  441.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  442.                         echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  443.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  444.                         // line 161
  445.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus-dark.svg"), "html"nulltrue);
  446.                         echo "\" alt=\"reduce\"></span>
  447.                                                 </a>
  448.                                             ";
  449.                     } else {
  450.                         // line 164
  451.                         echo "                                                <div class=\"ec-cartRow__amountDownButtonDisabled\">
  452.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  453.                         // line 165
  454.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus.svg"), "html"nulltrue);
  455.                         echo "\" alt=\"reduce\"></span>
  456.                                                 </div>
  457.                                             ";
  458.                     }
  459.                     // line 168
  460.                     echo "                                            <a href=\"";
  461.                     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.'168$this->source); })()), "id", [], "any"falsefalsetrue168)]), "html"nulltrue);
  462.                     echo "\" ";
  463.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  464.                     echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  465.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"";
  466.                     // line 169
  467.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/plus-dark.svg"), "html"nulltrue);
  468.                     echo "\" alt=\"increase\"></span>
  469.                                             </a>
  470.                                         </div>
  471.                                     </li>
  472.                                     <li class=\"ec-cartRow__subtotalColumn\">
  473.                                         <div class=\"ec-cartRow__sutbtotal\">";
  474.                     // line 174
  475.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsetrue174), 174$this->source)), "html"nulltrue);
  476.                     echo "</div>
  477.                                     </li>
  478.                                 </ul>
  479.                             ";
  480.                 }
  481.                 $_parent $context['_parent'];
  482.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  483.                 $context array_intersect_key($context$_parent) + $_parent;
  484.                 // line 178
  485.                 echo "                        </div>
  486.                     </div>
  487. ";
  488.                 // line 208
  489.                 echo "                    <div class=\"ec-cartRole__actions\">
  490.                         <div class=\"ec-cartRole__total\">";
  491.                 // line 209
  492.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("合計:"), "html"nulltrue);
  493.                 echo "<span class=\"ec-cartRole__totalAmount\">";
  494.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Cart"], "totalPrice", [], "any"falsefalsetrue209), 209$this->source)), "html"nulltrue);
  495.                 echo "</span>
  496.                         </div>
  497.                         <a class=\"ec-blockBtn--action\" href=\"";
  498.                 // line 211
  499.                 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.'211$this->source); })())]), "html"nulltrue);
  500.                 echo "\">";
  501.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レジに進む"), "html"nulltrue);
  502.                 echo "</a>
  503.                         ";
  504.                 // line 212
  505.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue212)) {
  506.                     // line 213
  507.                     echo "                            <a class=\"ec-blockBtn--cancel\" href=\"";
  508.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  509.                     echo "\">";
  510.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  511.                     echo "</a>
  512.                         ";
  513.                 }
  514.                 // line 215
  515.                 echo "                    </div>
  516.                 ";
  517.                 ++$context['loop']['index0'];
  518.                 ++$context['loop']['index'];
  519.                 $context['loop']['first'] = false;
  520.                 if (isset($context['loop']['length'])) {
  521.                     --$context['loop']['revindex0'];
  522.                     --$context['loop']['revindex'];
  523.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  524.                 }
  525.             }
  526.             $_parent $context['_parent'];
  527.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  528.             $context array_intersect_key($context$_parent) + $_parent;
  529.             // line 217
  530.             echo "            </form>
  531.         ";
  532.         } else {
  533.             // line 219
  534.             echo "            ";
  535.             $context['_parent'] = $context;
  536.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'219$this->source); })()));
  537.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  538.                 // line 220
  539.                 echo "                ";
  540.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue220);
  541.                 // line 221
  542.                 echo "                ";
  543.                 $context['_parent'] = $context;
  544.                 $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.'221$this->source); })()), "session", [], "any"falsefalsetrue221), "flashbag", [], "any"falsefalsetrue221), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'221$this->source); })())) . ".request.error")], "method"falsefalsetrue221));
  545.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  546.                     // line 222
  547.                     echo "                    <div class=\"ec-cartRole__error\">
  548.                         <div class=\"ec-alert-warning\">
  549.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  550.                     // line 224
  551.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  552.                     echo "\"></div>
  553.                             <div class=\"ec-alert-warning__text\">
  554.                                 ";
  555.                     // line 226
  556.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 226$this->source)), "html"nulltrue));
  557.                     echo "
  558.                             </div>
  559.                         </div>
  560.                     </div>
  561.                 ";
  562.                 }
  563.                 $_parent $context['_parent'];
  564.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  565.                 $context array_intersect_key($context$_parent) + $_parent;
  566.                 // line 231
  567.                 echo "            ";
  568.             }
  569.             $_parent $context['_parent'];
  570.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  571.             $context array_intersect_key($context$_parent) + $_parent;
  572.             // line 232
  573.             echo "            <div class=\"ec-role\">
  574.                 <div class=\"ec-off3Grid\">
  575.                     <div class=\"ec-off3Grid__cell\">
  576.                         <div class=\"ec-alert-warning\">
  577.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  578.             // line 236
  579.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  580.             echo "\"></div>
  581.                             <div class=\"ec-alert-warning__text\">";
  582.             // line 237
  583.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在カート内に商品はございません。"), "html"nulltrue);
  584.             echo "</div>
  585.                         </div>
  586.                     </div>
  587.                 </div>
  588.             </div>
  589.         ";
  590.         }
  591.         // line 243
  592.         echo "    </div>
  593. ";
  594.         
  595.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  596.         
  597.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  598.     }
  599.     public function getTemplateName()
  600.     {
  601.         return "Cart/index.twig";
  602.     }
  603.     public function isTraitable()
  604.     {
  605.         return false;
  606.     }
  607.     public function getDebugInfo()
  608.     {
  609.         return array (  608 => 243,  599 => 237,  595 => 236,  589 => 232,  583 => 231,  572 => 226,  567 => 224,  563 => 222,  558 => 221,  555 => 220,  550 => 219,  546 => 217,  531 => 215,  523 => 213,  521 => 212,  515 => 211,  508 => 209,  505 => 208,  501 => 178,  491 => 174,  483 => 169,  476 => 168,  470 => 165,  467 => 164,  461 => 161,  454 => 160,  452 => 159,  446 => 157,  442 => 156,  434 => 152,  430 => 151,  427 => 150,  419 => 148,  416 => 147,  408 => 145,  406 => 144,  400 => 143,  390 => 138,  386 => 137,  378 => 132,  372 => 131,  368 => 129,  365 => 128,  362 => 127,  358 => 126,  353 => 124,  349 => 123,  345 => 122,  341 => 121,  335 => 117,  324 => 112,  319 => 110,  315 => 108,  310 => 107,  307 => 106,  290 => 105,  285 => 103,  282 => 102,  274 => 97,  269 => 94,  267 => 93,  261 => 90,  257 => 88,  254 => 87,  243 => 82,  238 => 80,  234 => 78,  229 => 77,  212 => 73,  206 => 71,  200 => 69,  198 => 68,  193 => 66,  189 => 64,  186 => 63,  168 => 62,  166 => 61,  158 => 56,  155 => 55,  152 => 54,  145 => 50,  142 => 49,  139 => 48,  132 => 44,  129 => 43,  126 => 42,  123 => 41,  116 => 37,  113 => 36,  110 => 35,  107 => 34,  105 => 33,  99 => 30,  96 => 29,  93 => 28,  90 => 27,  88 => 26,  78 => 19,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  610.     }
  611.     public function getSourceContext()
  612.     {
  613.         return new Source("{#
  614. This file is part of EC-CUBE
  615. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  616. http://www.ec-cube.co.jp/
  617. For the full copyright and license information, please view the LICENSE
  618. file that was distributed with this source code.
  619. #}
  620. {% extends 'default_frame.twig' %}
  621. {% set body_class = 'cart_page' %}
  622. {% block main %}
  623.     <div class=\"ec-role\">
  624.         <div class=\"ec-pageHeader\">
  625.             <h1>{{ 'ショッピングカート'|trans }}</h1>
  626.         </div>
  627.     </div>
  628.     <div class=\"ec-cartRole\">
  629.         <div class=\"ec-cartRole__progress\">
  630.             <ul class=\"ec-progress\">
  631.                 {% set step = 1 %}
  632.                 <li class=\"ec-progress__item is-complete\">
  633.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  634.                     </div>
  635.                     <div class=\"ec-progress__label\">{{ 'カートの商品'|trans }}
  636.                     </div>
  637.                 </li>
  638.                 {% if is_granted('ROLE_USER') == false %}
  639.                     <li class=\"ec-progress__item\">
  640.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  641.                         </div>
  642.                         <div class=\"ec-progress__label\">{{ 'お客様情報'|trans }}
  643.                         </div>
  644.                     </li>
  645.                 {% endif %}
  646.                 <li class=\"ec-progress__item\">
  647.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  648.                     </div>
  649.                     <div class=\"ec-progress__label\">{{ 'ご注文手続き'|trans }}
  650.                     </div>
  651.                 </li>
  652.                 <li class=\"ec-progress__item\">
  653.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  654.                     </div>
  655.                     <div class=\"ec-progress__label\">{{ 'ご注文内容確認'|trans }}
  656.                     </div>
  657.                 </li>
  658.                 <li class=\"ec-progress__item\">
  659.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  660.                     </div>
  661.                     <div class=\"ec-progress__label\">{{ '完了'|trans }}
  662.                     </div>
  663.                 </li>
  664.             </ul>
  665.         </div>
  666.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  667.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  668.             {% set idx = loop.index0 %}
  669.             <div class=\"ec-cartRole__error\">
  670.                 <div class=\"ec-alert-warning\">
  671.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  672.                     <div class=\"ec-alert-warning__text\">
  673.                         {% if productStr[idx] is defined %}
  674.                             {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  675.                         {% else %}
  676.                             {{ error|trans|nl2br }}
  677.                         {% endif %}
  678.                     </div>
  679.                 </div>
  680.             </div>
  681.         {% endfor %}
  682.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  683.             <div class=\"ec-cartRole__error\">
  684.                 <div class=\"ec-alert-warning\">
  685.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  686.                     <div class=\"ec-alert-warning__text\">
  687.                         {{ error|trans|nl2br }}
  688.                     </div>
  689.                 </div>
  690.             </div>
  691.         {% endfor %}
  692.         {% if totalQuantity > 0 %}
  693.             <div class=\"ec-cartRole__totalText\">
  694.                 <p>
  695.                     {{ '商品の合計金額は「<strong>%price%</strong>」です。'|trans({ '%price%': totalPrice|price })|raw }}
  696.                 </p>
  697.             </div>
  698.             {% if Carts|length > 1 %}
  699.                 <div class=\"ec-cartRole__error\">
  700.                     <div class=\"ec-alert-warning\">
  701.                         <div class=\"ec-alert-warning__text\">
  702.                             {{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}
  703.                         </div>
  704.                     </div>
  705.                 </div>
  706.             {% endif %}
  707.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
  708.                 {% for CartIndex,Cart in Carts %}
  709.                     {% set cartKey = Cart.cart_key %}
  710.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  711.                         <div class=\"ec-cartRole__error\">
  712.                             <div class=\"ec-alert-warning\">
  713.                                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  714.                                 <div class=\"ec-alert-warning__text\">
  715.                                     {{ error|trans|nl2br }}
  716.                                 </div>
  717.                             </div>
  718.                         </div>
  719.                     {% endfor %}
  720.                     <div class=\"ec-cartRole__cart\">
  721.                         <div class=\"ec-cartTable\">
  722.                             <ol class=\"ec-cartHeader\">
  723.                                 <li class=\"ec-cartHeader__label\">{{ '削除'|trans }}</li>
  724.                                 <li class=\"ec-cartHeader__label\">{{ '商品内容'|trans }}</li>
  725.                                 <li class=\"ec-cartHeader__label\">{{ '数量'|trans }}</li>
  726.                                 <li class=\"ec-cartHeader__label\">{{ '小計'|trans }}</li>
  727.                             </ol>
  728.                             {% for CartItem in Cart.CartItems %}
  729.                                 {% set ProductClass = CartItem.ProductClass %}
  730.                                 {% set Product = ProductClass.Product %}
  731.                                 <ul class=\"ec-cartRow\">
  732.                                     <li class=\"ec-cartRow__delColumn\">
  733.                                         <a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  734.                                             <img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
  735.                                         </a>
  736.                                     </li>
  737.                                     <li class=\"ec-cartRow__contentColumn\">
  738.                                         <div class=\"ec-cartRow__img\">
  739.                                             <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  740.                                                 <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  741.                                             </a>
  742.                                         </div>
  743.                                         <div class=\"ec-cartRow__summary\">
  744.                                             <div class=\"ec-cartRow__name\">
  745.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  746.                                                 {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  747.                                                     <br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
  748.                                                 {% endif %}
  749.                                                 {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  750.                                                     <br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
  751.                                                 {% endif %}
  752.                                             </div>
  753.                                             <div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>
  754.                                             <div class=\"ec-cartRow__sutbtotalSP\">{{ '小計:'|trans }}{{ CartItem.total_price|price }}</div>
  755.                                         </div>
  756.                                     </li>
  757.                                     <li class=\"ec-cartRow__amountColumn\">
  758.                                         <div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
  759.                                         <div class=\"ec-cartRow__amountSP\">{{ '数量:'|trans }}{{ CartItem.quantity|number_format }}</div>
  760.                                         <div class=\"ec-cartRow__amountUpDown\">
  761.                                             {% if CartItem.quantity > 1 %}
  762.                                                 <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\">
  763.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
  764.                                                 </a>
  765.                                             {% else %}
  766.                                                 <div class=\"ec-cartRow__amountDownButtonDisabled\">
  767.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
  768.                                                 </div>
  769.                                             {% endif %}
  770.                                             <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\">
  771.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
  772.                                             </a>
  773.                                         </div>
  774.                                     </li>
  775.                                     <li class=\"ec-cartRow__subtotalColumn\">
  776.                                         <div class=\"ec-cartRow__sutbtotal\">{{ CartItem.total_price|price }}</div>
  777.                                     </li>
  778.                                 </ul>
  779.                             {% endfor %}
  780.                         </div>
  781.                     </div>
  782. {#
  783. ▼RZ 2023.11.29 DEL 送料無料は計算困難なため非表示に(送料無料商品対応)▼
  784.                     <div class=\"ec-cartRole__progress\">
  785.                         {% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
  786.                             <br/>
  787.                             {% if is_delivery_free[cartKey] %}
  788.                                 {{ '現在送料無料です。'|trans }}
  789.                             {% else %}
  790.                                 {{ 'あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
  791.                             {% endif %}
  792.                         {% elseif BaseInfo.delivery_free_amount %}
  793.                             <br/>
  794.                             {% if is_delivery_free[cartKey] %}
  795.                                 {{ '現在送料無料です。'|trans }}
  796.                             {% else %}
  797.                                 {{ 'あと「<strong>%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price })|raw }}
  798.                             {% endif %}
  799.                         {% elseif BaseInfo.delivery_free_quantity %}
  800.                             <br/>
  801.                             {% if is_delivery_free[cartKey] %}
  802.                                 {{ '現在送料無料です。'|trans }}
  803.                             {% else %}
  804.                                 {{ 'あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
  805.                             {% endif %}
  806.                         {% endif %}
  807.                     </div>
  808. ▲RZ 2023.11.29 DEL 送料無料は計算困難なため非表示に(送料無料商品対応)▲
  809. #}
  810.                     <div class=\"ec-cartRole__actions\">
  811.                         <div class=\"ec-cartRole__total\">{{ '合計:'|trans }}<span class=\"ec-cartRole__totalAmount\">{{ Cart.totalPrice|price }}</span>
  812.                         </div>
  813.                         <a class=\"ec-blockBtn--action\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'レジに進む'|trans }}</a>
  814.                         {% if loop.last %}
  815.                             <a class=\"ec-blockBtn--cancel\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  816.                         {% endif %}
  817.                     </div>
  818.                 {% endfor %}
  819.             </form>
  820.         {% else %}
  821.             {% for CartIndex,Cart in Carts %}
  822.                 {% set cartKey = Cart.cart_key %}
  823.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  824.                     <div class=\"ec-cartRole__error\">
  825.                         <div class=\"ec-alert-warning\">
  826.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  827.                             <div class=\"ec-alert-warning__text\">
  828.                                 {{ error|trans|nl2br }}
  829.                             </div>
  830.                         </div>
  831.                     </div>
  832.                 {% endfor %}
  833.             {% endfor %}
  834.             <div class=\"ec-role\">
  835.                 <div class=\"ec-off3Grid\">
  836.                     <div class=\"ec-off3Grid__cell\">
  837.                         <div class=\"ec-alert-warning\">
  838.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  839.                             <div class=\"ec-alert-warning__text\">{{ '現在カート内に商品はございません。'|trans }}</div>
  840.                         </div>
  841.                     </div>
  842.                 </div>
  843.             </div>
  844.         {% endif %}
  845.     </div>
  846. {% endblock %}""Cart/index.twig""/home/xs031638/hieiyuba.xyz/public_html/pro/app/template/default/Cart/index.twig");
  847.     }
  848.     
  849.     public function checkSecurity()
  850.     {
  851.         static $tags = array("set" => 13"if" => 33"for" => 62);
  852.         static $filters = array("escape" => 19"trans" => 19"nl2br" => 69"raw" => 90"price" => 90"length" => 93"no_image_product" => 138"number_format" => 156);
  853.         static $functions = array("is_granted" => 33"asset" => 66"url" => 103"csrf_token_for_anchor" => 131"path" => 211);
  854.         try {
  855.             $this->sandbox->checkSecurity(
  856.                 ['set''if''for'],
  857.                 ['escape''trans''nl2br''raw''price''length''no_image_product''number_format'],
  858.                 ['is_granted''asset''url''csrf_token_for_anchor''path']
  859.             );
  860.         } catch (SecurityError $e) {
  861.             $e->setSourceContext($this->source);
  862.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  863.                 $e->setTemplateLine($tags[$e->getTagName()]);
  864.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  865.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  866.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  867.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  868.             }
  869.             throw $e;
  870.         }
  871.     }
  872. }