var/cache/dev/twig/e9/e9600378412b0357edd9bde81597ac873597c5b6182bfe34780d20c77688822c.php line 38

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