var/cache/dev/twig/af/afa907e158dcd63d4c0447c6ce9fb5c1.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Cart/index.twig */
  14. class __TwigTemplate_a0d5584dd94fe79afee24692a8838b0b 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__inner\">
  177.                         <div class=\"ec-alert-warning__inner__item\">
  178.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  179.             // line 68
  180.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  181.             echo "\"></div>
  182.                             <div class=\"ec-alert-warning__text\">
  183.                                 ";
  184.             // line 70
  185.             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.'70$this->source); })()), [], "array"truetruetrue70)) {
  186.                 // line 71
  187.                 echo "                                    ";
  188.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 71$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.'71$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'71$this->source); })()), [], "array"falsefalsetrue71)]), "html"nulltrue));
  189.                 echo "
  190.                                 ";
  191.             } else {
  192.                 // line 73
  193.                 echo "                                    ";
  194.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 73$this->source)), "html"nulltrue));
  195.                 echo "
  196.                                 ";
  197.             }
  198.             // line 75
  199.             echo "                            </div>
  200.                         </div>
  201.                     </div>
  202.                 </div>
  203.             </div>
  204.         ";
  205.             ++$context['loop']['index0'];
  206.             ++$context['loop']['index'];
  207.             $context['loop']['first'] = false;
  208.             if (isset($context['loop']['length'])) {
  209.                 --$context['loop']['revindex0'];
  210.                 --$context['loop']['revindex'];
  211.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  212.             }
  213.         }
  214.         $_parent $context['_parent'];
  215.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  216.         $context array_intersect_key($context$_parent) + $_parent;
  217.         // line 81
  218.         echo "        ";
  219.         $context['_parent'] = $context;
  220.         $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.'81$this->source); })()), "session", [], "any"falsefalsetrue81), "flashbag", [], "any"falsefalsetrue81), "get", [=> "eccube.front.cart.error"], "method"falsefalsetrue81));
  221.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  222.             // line 82
  223.             echo "            <div class=\"ec-cartRole__error\">
  224.                 <div class=\"ec-alert-warning\">
  225.                     <div class=\"ec-alert-warning__inner\">
  226.                         <div class=\"ec-alert-warning__inner__item\">
  227.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  228.             // line 86
  229.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  230.             echo "\"></div>
  231.                             <div class=\"ec-alert-warning__text\">
  232.                                 ";
  233.             // line 88
  234.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 88$this->source)), "html"nulltrue));
  235.             echo "
  236.                             </div>
  237.                         </div>
  238.                     </div>
  239.                 </div>
  240.             </div>
  241.         ";
  242.         }
  243.         $_parent $context['_parent'];
  244.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  245.         $context array_intersect_key($context$_parent) + $_parent;
  246.         // line 95
  247.         echo "        ";
  248.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'95$this->source); })()) > 0)) {
  249.             // line 97
  250.             $context["DetectBall"] = false;
  251.             // line 98
  252.             $context["DetectDesign"] = false;
  253.             // line 99
  254.             $context['_parent'] = $context;
  255.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'99$this->source); })()));
  256.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  257.                 // line 100
  258.                 echo "    ";
  259.                 $context['_parent'] = $context;
  260.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue100));
  261.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  262.                     // line 101
  263.                     echo "        ";
  264.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue101);
  265.                     // line 102
  266.                     echo "        ";
  267.                     $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.'102$this->source); })()), "Product", [], "any"falsefalsetrue102);
  268.                     // line 103
  269.                     echo "
  270.         ";
  271.                     // line 104
  272.                     $context['_parent'] = $context;
  273.                     $context['_seq'] = twig_ensure_traversable(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.'104$this->source); })()), "ProductCategories", [], "any"falsefalsetrue104));
  274.                     foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  275.                         // line 105
  276.                         echo "            ";
  277.                         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsetrue105), "Parent", [], "any"falsefalsetrue105))) {
  278.                             // line 106
  279.                             echo "                ";
  280.                             // line 107
  281.                             echo "                ";
  282.                             if ((twig_get_attribute($this->env$this->source$context["ProductCategory"], "category_id", [], "any"falsefalsetrue107) == 7)) {
  283.                                 // line 108
  284.                                 echo "                    ";
  285.                                 $context["DetectBall"] = true;
  286.                                 // line 109
  287.                                 echo "                ";
  288.                             }
  289.                             // line 110
  290.                             echo "                ";
  291.                             // line 111
  292.                             echo "                ";
  293.                             if ((twig_get_attribute($this->env$this->source$context["ProductCategory"], "category_id", [], "any"falsefalsetrue111) == 9)) {
  294.                                 // line 112
  295.                                 echo "                    ";
  296.                                 $context["DetectDesign"] = true;
  297.                                 // line 113
  298.                                 echo "                ";
  299.                             }
  300.                             // line 114
  301.                             echo "            ";
  302.                         }
  303.                         // line 115
  304.                         echo "        ";
  305.                     }
  306.                     $_parent $context['_parent'];
  307.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  308.                     $context array_intersect_key($context$_parent) + $_parent;
  309.                     // line 116
  310.                     echo "
  311.     ";
  312.                 }
  313.                 $_parent $context['_parent'];
  314.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  315.                 $context array_intersect_key($context$_parent) + $_parent;
  316.             }
  317.             $_parent $context['_parent'];
  318.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  319.             $context array_intersect_key($context$_parent) + $_parent;
  320.             // line 120
  321.             echo "
  322.             <div class=\"ec-cartRole__totalText\">
  323.                 <p>
  324.                     ";
  325.             // line 124
  326.             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.'124$this->source); })()), 124$this->source))]);
  327.             echo "
  328.                 </p>
  329.             </div>
  330.             ";
  331.             // line 127
  332.             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.'127$this->source); })())) > 1)) {
  333.                 // line 128
  334.                 echo "                <div class=\"ec-cartRole__error\">
  335.                     <div class=\"ec-alert-warning\">
  336.                         <div class=\"ec-alert-warning__inner\">
  337.                             <div class=\"ec-alert-warning__inner__item\">
  338.                                 <div class=\"ec-alert-warning__text\">
  339.                                     ";
  340.                 // line 133
  341.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html"nulltrue));
  342.                 echo "
  343.                                 </div>
  344.                             </div>
  345.                         </div>
  346.                     </div>
  347.                 </div>
  348.             ";
  349.             }
  350.             // line 140
  351.             echo "
  352.             <!-- ================================================ ▼ 追加 ================================================ -->
  353. ";
  354.             // line 142
  355.             if ( !((isset($context["DetectBall"]) || array_key_exists("DetectBall"$context) ? $context["DetectBall"] : (function () { throw new RuntimeError('Variable "DetectBall" does not exist.'142$this->source); })()) && (isset($context["DetectDesign"]) || array_key_exists("DetectDesign"$context) ? $context["DetectDesign"] : (function () { throw new RuntimeError('Variable "DetectDesign" does not exist.'142$this->source); })()))) {
  356.                 // line 143
  357.                 echo "            <div class=\"ec-cartRole__totalText\">
  358.                 <div class=\"alert alert-danger\">
  359.                     <span class=\"fw-bold\">";
  360.                 // line 145
  361.                 if (((isset($context["DetectBall"]) || array_key_exists("DetectBall"$context) ? $context["DetectBall"] : (function () { throw new RuntimeError('Variable "DetectBall" does not exist.'145$this->source); })()) == false)) {
  362.                     echo "ボール";
  363.                 }
  364.                 if (((isset($context["DetectDesign"]) || array_key_exists("DetectDesign"$context) ? $context["DetectDesign"] : (function () { throw new RuntimeError('Variable "DetectDesign" does not exist.'145$this->source); })()) == false)) {
  365.                     echo "デザイン";
  366.                 }
  367.                 echo "がカートに入っていないため購入手続きに進めません。";
  368.                 if (((isset($context["DetectBall"]) || array_key_exists("DetectBall"$context) ? $context["DetectBall"] : (function () { throw new RuntimeError('Variable "DetectBall" does not exist.'145$this->source); })()) == false)) {
  369.                     echo "ボール";
  370.                 }
  371.                 if (((isset($context["DetectDesign"]) || array_key_exists("DetectDesign"$context) ? $context["DetectDesign"] : (function () { throw new RuntimeError('Variable "DetectDesign" does not exist.'145$this->source); })()) == false)) {
  372.                     echo "デザイン";
  373.                 }
  374.                 echo "を選んでカートに入れてください。</span>
  375.                 </div>
  376.             </div>
  377. ";
  378.             }
  379.             // line 149
  380.             echo "            <!-- ================================================ ▲ 追加 ================================================ -->
  381.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
  382.             // line 151
  383.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  384.             echo "\">
  385.                 ";
  386.             // line 153
  387.             $context['_parent'] = $context;
  388.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'153$this->source); })()));
  389.             $context['loop'] = [
  390.               'parent' => $context['_parent'],
  391.               'index0' => 0,
  392.               'index'  => 1,
  393.               'first'  => true,
  394.             ];
  395.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  396.                 $length count($context['_seq']);
  397.                 $context['loop']['revindex0'] = $length 1;
  398.                 $context['loop']['revindex'] = $length;
  399.                 $context['loop']['length'] = $length;
  400.                 $context['loop']['last'] = === $length;
  401.             }
  402.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  403.                 // line 154
  404.                 echo "                    ";
  405.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue154);
  406.                 // line 155
  407.                 echo "                    ";
  408.                 $context['_parent'] = $context;
  409.                 $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.'155$this->source); })()), "session", [], "any"falsefalsetrue155), "flashbag", [], "any"falsefalsetrue155), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'155$this->source); })())) . ".request.error")], "method"falsefalsetrue155));
  410.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  411.                     // line 156
  412.                     echo "                        <div class=\"ec-cartRole__error\">
  413.                             <div class=\"ec-alert-warning\">
  414.                                 <div class=\"ec-alert-warning__inner\">
  415.                                     <div class=\"ec-alert-warning__inner__item\">
  416.                                         <div class=\"ec-alert-warning__icon\"><img src=\"";
  417.                     // line 160
  418.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  419.                     echo "\"></div>
  420.                                         <div class=\"ec-alert-warning__text\">
  421.                                             ";
  422.                     // line 162
  423.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 162$this->source)), "html"nulltrue));
  424.                     echo "
  425.                                         </div>
  426.                                     </div>
  427.                                 </div>
  428.                             </div>
  429.                         </div>
  430.                     ";
  431.                 }
  432.                 $_parent $context['_parent'];
  433.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  434.                 $context array_intersect_key($context$_parent) + $_parent;
  435.                 // line 169
  436.                 echo "
  437.                     <div class=\"ec-cartRole__cart\">
  438.                         <div class=\"ec-cartTable\">
  439.                             <ol class=\"ec-cartHeader\">
  440.                                 <li class=\"ec-cartHeader__label\">";
  441.                 // line 173
  442.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("削除"), "html"nulltrue);
  443.                 echo "</li>
  444.                                 <li class=\"ec-cartHeader__label\">";
  445.                 // line 174
  446.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品内容"), "html"nulltrue);
  447.                 echo "</li>
  448.                                 <li class=\"ec-cartHeader__label\">";
  449.                 // line 175
  450.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  451.                 echo "</li>
  452.                                 <li class=\"ec-cartHeader__label\">";
  453.                 // line 176
  454.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html"nulltrue);
  455.                 echo "</li>
  456.                             </ol>
  457.                             ";
  458.                 // line 178
  459.                 $context['_parent'] = $context;
  460.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue178));
  461.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  462.                     // line 179
  463.                     echo "                                ";
  464.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue179);
  465.                     // line 180
  466.                     echo "                                ";
  467.                     $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.'180$this->source); })()), "Product", [], "any"falsefalsetrue180);
  468.                     // line 181
  469.                     echo "                                <ul class=\"ec-cartRow\">
  470.                                     <li class=\"ec-cartRow__delColumn\">
  471.                                         <a href=\"";
  472.                     // line 183
  473.                     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.'183$this->source); })()), "id", [], "any"falsefalsetrue183)]), "html"nulltrue);
  474.                     echo "\" ";
  475.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  476.                     echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  477.                                             <img src=\"";
  478.                     // line 184
  479.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html"nulltrue);
  480.                     echo "\" alt=\"delete\">
  481.                                         </a>
  482.                                     </li>
  483.                                     <li class=\"ec-cartRow__contentColumn\">
  484.                                         <div class=\"ec-cartRow__img\">
  485. ";
  486.                     // line 189
  487.                     if ((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.'189$this->source); })()), "id", [], "any"falsefalsetrue189) == 101)) {
  488.                         // line 191
  489.                         echo "    ";
  490.                         if (twig_test_empty((isset($context["CaseImage"]) || array_key_exists("CaseImage"$context) ? $context["CaseImage"] : (function () { throw new RuntimeError('Variable "CaseImage" does not exist.'191$this->source); })()))) {
  491.                             // line 192
  492.                             echo "                                            <img src=\"";
  493.                             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.'192$this->source); })()), "MainListImage", [], "any"falsefalsetrue192), 192$this->source)), "save_image"), "html"nulltrue);
  494.                             echo "\" alt=\"";
  495.                             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.'192$this->source); })()), "name", [], "any"falsefalsetrue192), 192$this->source), "html"nulltrue);
  496.                             echo "\"/>
  497.     ";
  498.                         } else {
  499.                             // line 194
  500.                             echo "                                            <img src=\"/icms/user_data/image/Voice1/";
  501.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["CaseImage"]) || array_key_exists("CaseImage"$context) ? $context["CaseImage"] : (function () { throw new RuntimeError('Variable "CaseImage" does not exist.'194$this->source); })()), 194$this->source), "html"nulltrue);
  502.                             echo "\" alt=\"";
  503.                             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.'194$this->source); })()), "name", [], "any"falsefalsetrue194), 194$this->source), "html"nulltrue);
  504.                             echo "\"/>
  505.     ";
  506.                         }
  507.                     } else {
  508.                         // line 197
  509.                         echo "                                            <a target=\"_blank\" href=\"";
  510.                         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.'197$this->source); })()), "id", [], "any"falsefalsetrue197)]), "html"nulltrue);
  511.                         echo "\">
  512.                                                 <img src=\"";
  513.                         // line 198
  514.                         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.'198$this->source); })()), "MainListImage", [], "any"falsefalsetrue198), 198$this->source)), "save_image"), "html"nulltrue);
  515.                         echo "\" alt=\"";
  516.                         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.'198$this->source); })()), "name", [], "any"falsefalsetrue198), 198$this->source), "html"nulltrue);
  517.                         echo "\"/>
  518.                                             </a>
  519. ";
  520.                     }
  521.                     // line 201
  522.                     echo "                                        </div>
  523.                                         <div class=\"ec-cartRow__summary\">
  524.                                             <div class=\"ec-cartRow__name\">
  525. ";
  526.                     // line 204
  527.                     if ((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.'204$this->source); })()), "id", [], "any"falsefalsetrue204) == 101)) {
  528.                         // line 206
  529.                         echo "                                                <span class=\"text-primary\">";
  530.                         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.'206$this->source); })()), "name", [], "any"falsefalsetrue206), 206$this->source), "html"nulltrue);
  531.                         echo "</span>
  532. ";
  533.                     } else {
  534.                         // line 208
  535.                         echo "                                                <a target=\"_blank\" href=\"";
  536.                         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.'208$this->source); })()), "id", [], "any"falsefalsetrue208)]), "html"nulltrue);
  537.                         echo "\">";
  538.                         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.'208$this->source); })()), "name", [], "any"falsefalsetrue208), 208$this->source), "html"nulltrue);
  539.                         echo "</a>
  540. ";
  541.                     }
  542.                     // line 210
  543.                     echo "                                                ";
  544.                     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.'210$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue210) && 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.'210$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue210), "id", [], "any"falsefalsetrue210))) {
  545.                         // line 211
  546.                         echo "                                                    <br>";
  547.                         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.'211$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue211), "ClassName", [], "any"falsefalsetrue211), "name", [], "any"falsefalsetrue211), 211$this->source), "html"nulltrue);
  548.                         echo ":";
  549.                         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.'211$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue211), 211$this->source), "html"nulltrue);
  550.                         echo "
  551.                                                 ";
  552.                     }
  553.                     // line 213
  554.                     echo "                                                ";
  555.                     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.'213$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue213) && 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.'213$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue213), "id", [], "any"falsefalsetrue213))) {
  556.                         // line 214
  557.                         echo "                                                    <br>";
  558.                         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.'214$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue214), "ClassName", [], "any"falsefalsetrue214), "name", [], "any"falsefalsetrue214), 214$this->source), "html"nulltrue);
  559.                         echo ":";
  560.                         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.'214$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue214), 214$this->source), "html"nulltrue);
  561.                         echo "
  562.                                                 ";
  563.                     }
  564.                     // line 216
  565.                     echo "                                            </div>
  566.                                             <div class=\"ec-cartRow__unitPrice\">";
  567.                     // line 217
  568.                     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"falsefalsetrue217), 217$this->source)), "html"nulltrue);
  569.                     echo "</div>
  570.                                             <div class=\"ec-cartRow__sutbtotalSP\">";
  571.                     // line 218
  572.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計:"), "html"nulltrue);
  573.                     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"falsefalsetrue218), 218$this->source)), "html"nulltrue);
  574.                     echo "</div>
  575.                                         </div>
  576.                                     </li>
  577.                                     <li class=\"ec-cartRow__amountColumn\">
  578.                                         <div class=\"ec-cartRow__amount\">";
  579.                     // line 222
  580.                     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"falsefalsetrue222), 222$this->source)), "html"nulltrue);
  581.                     echo "</div>
  582.                                         <div class=\"ec-cartRow__amountSP\">";
  583.                     // line 223
  584.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量:"), "html"nulltrue);
  585.                     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"falsefalsetrue223), 223$this->source)), "html"nulltrue);
  586.                     echo "</div>
  587.                                         <div class=\"ec-cartRow__amountUpDown\">
  588.                                             ";
  589.                     // line 225
  590.                     if ((twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue225) > 1)) {
  591.                         // line 226
  592.                         echo "                                                <a href=\"";
  593.                         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.'226$this->source); })()), "id", [], "any"falsefalsetrue226)]), "html"nulltrue);
  594.                         echo "\" ";
  595.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  596.                         echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  597.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  598.                         // line 227
  599.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus-dark.svg"), "html"nulltrue);
  600.                         echo "\" alt=\"reduce\"></span>
  601.                                                 </a>
  602.                                             ";
  603.                     } else {
  604.                         // line 230
  605.                         echo "                                                <div class=\"ec-cartRow__amountDownButtonDisabled\">
  606.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  607.                         // line 231
  608.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus.svg"), "html"nulltrue);
  609.                         echo "\" alt=\"reduce\"></span>
  610.                                                 </div>
  611.                                             ";
  612.                     }
  613.                     // line 234
  614.                     echo "                                            <a href=\"";
  615.                     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.'234$this->source); })()), "id", [], "any"falsefalsetrue234)]), "html"nulltrue);
  616.                     echo "\" ";
  617.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  618.                     echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  619.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"";
  620.                     // line 235
  621.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/plus-dark.svg"), "html"nulltrue);
  622.                     echo "\" alt=\"increase\"></span>
  623.                                             </a>
  624.                                         </div>
  625.                                     </li>
  626.                                     <li class=\"ec-cartRow__subtotalColumn\">
  627.                                         <div class=\"ec-cartRow__sutbtotal\">";
  628.                     // line 240
  629.                     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"falsefalsetrue240), 240$this->source)), "html"nulltrue);
  630.                     echo "</div>
  631.                                     </li>
  632.                                 </ul>
  633.                             ";
  634.                 }
  635.                 $_parent $context['_parent'];
  636.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  637.                 $context array_intersect_key($context$_parent) + $_parent;
  638.                 // line 244
  639.                 echo "                        </div>
  640.                     </div>
  641.                     <div class=\"ec-cartRole__progress\">
  642.                         ";
  643.                 // line 247
  644.                 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.'247$this->source); })()), "delivery_free_amount", [], "any"falsefalsetrue247) && 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.'247$this->source); })()), "delivery_free_quantity", [], "any"falsefalsetrue247))) {
  645.                     // line 248
  646.                     echo "                            <br/>
  647.                             ";
  648.                     // line 249
  649.                     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.'249$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'249$this->source); })()), [], "array"falsefalsetrue249)) {
  650.                         // line 250
  651.                         echo "                                ";
  652.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  653.                         echo "
  654.                             ";
  655.                     } else {
  656.                         // line 252
  657.                         echo "                                ";
  658.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.'252$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'252$this->source); })()), [], "array"falsefalsetrue252), 252$this->source)), "%quantity%" => twig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'252$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'252$this->source); })()), [], "array"falsefalsetrue252), 252$this->source))]);
  659.                         echo "
  660.                             ";
  661.                     }
  662.                     // line 254
  663.                     echo "                        ";
  664.                 } 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.'254$this->source); })()), "delivery_free_amount", [], "any"falsefalsetrue254)) {
  665.                     // line 255
  666.                     echo "                            <br/>
  667.                             ";
  668.                     // line 256
  669.                     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.'256$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'256$this->source); })()), [], "array"falsefalsetrue256)) {
  670.                         // line 257
  671.                         echo "                                ";
  672.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  673.                         echo "
  674.                             ";
  675.                     } else {
  676.                         // line 259
  677.                         echo "                                ";
  678.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.'259$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'259$this->source); })()), [], "array"falsefalsetrue259), 259$this->source))]);
  679.                         echo "
  680.                             ";
  681.                     }
  682.                     // line 261
  683.                     echo "                        ";
  684.                 } 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.'261$this->source); })()), "delivery_free_quantity", [], "any"falsefalsetrue261)) {
  685.                     // line 262
  686.                     echo "                            <br/>
  687.                             ";
  688.                     // line 263
  689.                     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.'263$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'263$this->source); })()), [], "array"falsefalsetrue263)) {
  690.                         // line 264
  691.                         echo "                                ";
  692.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  693.                         echo "
  694.                             ";
  695.                     } else {
  696.                         // line 266
  697.                         echo "                                ";
  698.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。", ["%quantity%" => twig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'266$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'266$this->source); })()), [], "array"falsefalsetrue266), 266$this->source))]);
  699.                         echo "
  700.                             ";
  701.                     }
  702.                     // line 268
  703.                     echo "                        ";
  704.                 }
  705.                 // line 269
  706.                 echo "                    </div>
  707.                     <div class=\"ec-cartRole__actions\">
  708.                         <div class=\"ec-cartRole__total\">";
  709.                 // line 271
  710.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("合計:"), "html"nulltrue);
  711.                 echo "<span class=\"ec-cartRole__totalAmount\">";
  712.                 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"falsefalsetrue271), 271$this->source)), "html"nulltrue);
  713.                 echo "</span>
  714.                         </div>
  715.             <!-- ================================================ ▼ カテゴリ判定に伴う変更 ================================================ -->
  716. ";
  717.                 // line 274
  718.                 if (((isset($context["DetectBall"]) || array_key_exists("DetectBall"$context) ? $context["DetectBall"] : (function () { throw new RuntimeError('Variable "DetectBall" does not exist.'274$this->source); })()) == false)) {
  719.                     // line 276
  720.                     echo "                        <a class=\"btn btn-danger btn-lg py-3 w-100 mb-3\" style=\"pointer-events:none; opacity:.5;\">レジに進む</a>
  721.                         ";
  722.                     // line 277
  723.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue277)) {
  724.                         // line 278
  725.                         echo "                            <a class=\"btn btn-dark btn-lg py-3 w-100\" href=\"";
  726.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  727.                         echo "?category_id=7\">ボールを選ぶ</a>
  728.                         ";
  729.                     }
  730.                 } elseif ((                // line 280
  731. (isset($context["DetectDesign"]) || array_key_exists("DetectDesign"$context) ? $context["DetectDesign"] : (function () { throw new RuntimeError('Variable "DetectDesign" does not exist.'280$this->source); })()) == false)) {
  732.                     // line 282
  733.                     echo "                        <a class=\"btn btn-danger btn-lg py-3 w-100 mb-3\" style=\"pointer-events:none; opacity:.5;\">レジに進む</a>
  734.                         ";
  735.                     // line 283
  736.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue283)) {
  737.                         // line 284
  738.                         echo "                            <a class=\"btn btn-dark btn-lg py-3 w-100\" href=\"";
  739.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  740.                         echo "?category_id=9\">デザインを選ぶ</a>
  741.                         ";
  742.                     }
  743.                 } else {
  744.                     // line 288
  745.                     echo "                        <a class=\"btn btn-danger btn-lg py-3 w-100 mb-3\" href=\"";
  746.                     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.'288$this->source); })())]), "html"nulltrue);
  747.                     echo "\">";
  748.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レジに進む"), "html"nulltrue);
  749.                     echo "</a>
  750.                         ";
  751.                     // line 289
  752.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue289)) {
  753.                         // line 290
  754.                         echo "                            <a class=\"btn btn-dark btn-lg py-3 w-100\" href=\"";
  755.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  756.                         echo "\">";
  757.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  758.                         echo "</a>
  759.                         ";
  760.                     }
  761.                 }
  762.                 // line 293
  763.                 echo "            <!-- ================================================ ▲ カテゴリ判定に伴う変更 ================================================ -->
  764.                     </div>
  765.                 ";
  766.                 ++$context['loop']['index0'];
  767.                 ++$context['loop']['index'];
  768.                 $context['loop']['first'] = false;
  769.                 if (isset($context['loop']['length'])) {
  770.                     --$context['loop']['revindex0'];
  771.                     --$context['loop']['revindex'];
  772.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  773.                 }
  774.             }
  775.             $_parent $context['_parent'];
  776.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  777.             $context array_intersect_key($context$_parent) + $_parent;
  778.             // line 296
  779.             echo "            </form>
  780.         ";
  781.         } else {
  782.             // line 298
  783.             echo "            ";
  784.             $context['_parent'] = $context;
  785.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'298$this->source); })()));
  786.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  787.                 // line 299
  788.                 echo "                ";
  789.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue299);
  790.                 // line 300
  791.                 echo "                ";
  792.                 $context['_parent'] = $context;
  793.                 $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.'300$this->source); })()), "session", [], "any"falsefalsetrue300), "flashbag", [], "any"falsefalsetrue300), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'300$this->source); })())) . ".request.error")], "method"falsefalsetrue300));
  794.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  795.                     // line 301
  796.                     echo "                    <div class=\"ec-cartRole__error\">
  797.                         <div class=\"ec-alert-warning\">
  798.                             <div class=\"ec-alert-warning__inner\">
  799.                                 <div class=\"ec-alert-warning__inner__item\">
  800.                                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  801.                     // line 305
  802.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  803.                     echo "\"></div>
  804.                                     <div class=\"ec-alert-warning__text\">
  805.                                         ";
  806.                     // line 307
  807.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 307$this->source)), "html"nulltrue));
  808.                     echo "
  809.                                     </div>
  810.                                 </div>
  811.                             </div>
  812.                         </div>
  813.                     </div>
  814.                 ";
  815.                 }
  816.                 $_parent $context['_parent'];
  817.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  818.                 $context array_intersect_key($context$_parent) + $_parent;
  819.                 // line 314
  820.                 echo "            ";
  821.             }
  822.             $_parent $context['_parent'];
  823.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  824.             $context array_intersect_key($context$_parent) + $_parent;
  825.             // line 315
  826.             echo "            <div class=\"ec-role\">
  827.                 <div class=\"ec-off3Grid\">
  828.                     <div class=\"ec-off3Grid__cell\">
  829.                         <div class=\"ec-alert-warning\">
  830.                             <div class=\"ec-alert-warning__inner\">
  831.                                 <div class=\"ec-alert-warning__inner__item\">
  832.                                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  833.             // line 321
  834.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  835.             echo "\"></div>
  836.                                     <div class=\"ec-alert-warning__text\">";
  837.             // line 322
  838.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在カート内に商品はございません。"), "html"nulltrue);
  839.             echo "</div>
  840.                                 </div>
  841.                             </div>
  842.                         </div>
  843.                     </div>
  844.                 </div>
  845.             </div>
  846.         ";
  847.         }
  848.         // line 330
  849.         echo "    </div>
  850. ";
  851.         
  852.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  853.         
  854.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  855.     }
  856.     public function getTemplateName()
  857.     {
  858.         return "Cart/index.twig";
  859.     }
  860.     public function isTraitable()
  861.     {
  862.         return false;
  863.     }
  864.     public function getDebugInfo()
  865.     {
  866.         return array (  867 => 330,  856 => 322,  852 => 321,  844 => 315,  838 => 314,  825 => 307,  820 => 305,  814 => 301,  809 => 300,  806 => 299,  801 => 298,  797 => 296,  781 => 293,  772 => 290,  770 => 289,  763 => 288,  756 => 284,  754 => 283,  751 => 282,  749 => 280,  743 => 278,  741 => 277,  738 => 276,  736 => 274,  728 => 271,  724 => 269,  721 => 268,  715 => 266,  709 => 264,  707 => 263,  704 => 262,  701 => 261,  695 => 259,  689 => 257,  687 => 256,  684 => 255,  681 => 254,  675 => 252,  669 => 250,  667 => 249,  664 => 248,  662 => 247,  657 => 244,  647 => 240,  639 => 235,  632 => 234,  626 => 231,  623 => 230,  617 => 227,  610 => 226,  608 => 225,  602 => 223,  598 => 222,  590 => 218,  586 => 217,  583 => 216,  575 => 214,  572 => 213,  564 => 211,  561 => 210,  553 => 208,  547 => 206,  545 => 204,  540 => 201,  532 => 198,  527 => 197,  518 => 194,  510 => 192,  507 => 191,  505 => 189,  497 => 184,  491 => 183,  487 => 181,  484 => 180,  481 => 179,  477 => 178,  472 => 176,  468 => 175,  464 => 174,  460 => 173,  454 => 169,  441 => 162,  436 => 160,  430 => 156,  425 => 155,  422 => 154,  405 => 153,  400 => 151,  396 => 149,  377 => 145,  373 => 143,  371 => 142,  367 => 140,  357 => 133,  350 => 128,  348 => 127,  342 => 124,  336 => 120,  325 => 116,  319 => 115,  316 => 114,  313 => 113,  310 => 112,  307 => 111,  305 => 110,  302 => 109,  299 => 108,  296 => 107,  294 => 106,  291 => 105,  287 => 104,  284 => 103,  281 => 102,  278 => 101,  273 => 100,  269 => 99,  267 => 98,  265 => 97,  262 => 95,  249 => 88,  244 => 86,  238 => 82,  233 => 81,  214 => 75,  208 => 73,  202 => 71,  200 => 70,  195 => 68,  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,);
  867.     }
  868.     public function getSourceContext()
  869.     {
  870.         return new Source("{#
  871. This file is part of EC-CUBE
  872. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  873. http://www.ec-cube.co.jp/
  874. For the full copyright and license information, please view the LICENSE
  875. file that was distributed with this source code.
  876. #}
  877. {% extends 'default_frame.twig' %}
  878. {% set body_class = 'cart_page' %}
  879. {% block main %}
  880.     <div class=\"ec-role\">
  881.         <div class=\"ec-pageHeader\">
  882.             <h1>{{ 'ショッピングカート'|trans }}</h1>
  883.         </div>
  884.     </div>
  885.     <div class=\"ec-cartRole\">
  886.         <div class=\"ec-cartRole__progress\">
  887.             <ul class=\"ec-progress\">
  888.                 {% set step = 1 %}
  889.                 <li class=\"ec-progress__item is-complete\">
  890.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  891.                     </div>
  892.                     <div class=\"ec-progress__label\">{{ 'カートの商品'|trans }}
  893.                     </div>
  894.                 </li>
  895.                 {% if is_granted('ROLE_USER') == false %}
  896.                     <li class=\"ec-progress__item\">
  897.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  898.                         </div>
  899.                         <div class=\"ec-progress__label\">{{ 'お客様情報'|trans }}
  900.                         </div>
  901.                     </li>
  902.                 {% endif %}
  903.                 <li class=\"ec-progress__item\">
  904.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  905.                     </div>
  906.                     <div class=\"ec-progress__label\">{{ 'ご注文手続き'|trans }}
  907.                     </div>
  908.                 </li>
  909.                 <li class=\"ec-progress__item\">
  910.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  911.                     </div>
  912.                     <div class=\"ec-progress__label\">{{ 'ご注文内容確認'|trans }}
  913.                     </div>
  914.                 </li>
  915.                 <li class=\"ec-progress__item\">
  916.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  917.                     </div>
  918.                     <div class=\"ec-progress__label\">{{ '完了'|trans }}
  919.                     </div>
  920.                 </li>
  921.             </ul>
  922.         </div>
  923.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  924.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  925.             {% set idx = loop.index0 %}
  926.             <div class=\"ec-cartRole__error\">
  927.                 <div class=\"ec-alert-warning\">
  928.                     <div class=\"ec-alert-warning__inner\">
  929.                         <div class=\"ec-alert-warning__inner__item\">
  930.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  931.                             <div class=\"ec-alert-warning__text\">
  932.                                 {% if productStr[idx] is defined %}
  933.                                     {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  934.                                 {% else %}
  935.                                     {{ error|trans|nl2br }}
  936.                                 {% endif %}
  937.                             </div>
  938.                         </div>
  939.                     </div>
  940.                 </div>
  941.             </div>
  942.         {% endfor %}
  943.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  944.             <div class=\"ec-cartRole__error\">
  945.                 <div class=\"ec-alert-warning\">
  946.                     <div class=\"ec-alert-warning__inner\">
  947.                         <div class=\"ec-alert-warning__inner__item\">
  948.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  949.                             <div class=\"ec-alert-warning__text\">
  950.                                 {{ error|trans|nl2br }}
  951.                             </div>
  952.                         </div>
  953.                     </div>
  954.                 </div>
  955.             </div>
  956.         {% endfor %}
  957.         {% if totalQuantity > 0 %}
  958. {# ★ カテゴリ判定 ★ #}
  959. {% set DetectBall = false %}
  960. {% set DetectDesign = false %}
  961. {% for CartIndex,Cart in Carts %}
  962.     {% for CartItem in Cart.CartItems %}
  963.         {% set ProductClass = CartItem.ProductClass %}
  964.         {% set Product = ProductClass.Product %}
  965.         {% for ProductCategory in Product.ProductCategories %}
  966.             {% if ProductCategory.Category.Parent is null %}
  967.                 {# ▼カテゴリ(ボール)判定 #}
  968.                 {% if ProductCategory.category_id == 7 %}
  969.                     {% set DetectBall = true %}
  970.                 {% endif %}
  971.                 {# ▼カテゴリ(デザイン)判定 #}
  972.                 {% if ProductCategory.category_id == 9 %}
  973.                     {% set DetectDesign = true %}
  974.                 {% endif %}
  975.             {% endif %}
  976.         {% endfor %}
  977.     {% endfor %}
  978. {% endfor %}
  979. {# ★ カテゴリ判定 ★ #}
  980.             <div class=\"ec-cartRole__totalText\">
  981.                 <p>
  982.                     {{ '商品の合計金額は「<strong>%price%</strong>」です。'|trans({ '%price%': totalPrice|price })|raw }}
  983.                 </p>
  984.             </div>
  985.             {% if Carts|length > 1 %}
  986.                 <div class=\"ec-cartRole__error\">
  987.                     <div class=\"ec-alert-warning\">
  988.                         <div class=\"ec-alert-warning__inner\">
  989.                             <div class=\"ec-alert-warning__inner__item\">
  990.                                 <div class=\"ec-alert-warning__text\">
  991.                                     {{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}
  992.                                 </div>
  993.                             </div>
  994.                         </div>
  995.                     </div>
  996.                 </div>
  997.             {% endif %}
  998.             <!-- ================================================ ▼ 追加 ================================================ -->
  999. {% if not ( DetectBall and DetectDesign ) %}
  1000.             <div class=\"ec-cartRole__totalText\">
  1001.                 <div class=\"alert alert-danger\">
  1002.                     <span class=\"fw-bold\">{% if DetectBall == false %}ボール{% endif %}{% if DetectDesign == false %}デザイン{% endif %}がカートに入っていないため購入手続きに進めません。{% if DetectBall == false %}ボール{% endif %}{% if DetectDesign == false %}デザイン{% endif %}を選んでカートに入れてください。</span>
  1003.                 </div>
  1004.             </div>
  1005. {% endif %}
  1006.             <!-- ================================================ ▲ 追加 ================================================ -->
  1007.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
  1008.                 {% for CartIndex,Cart in Carts %}
  1009.                     {% set cartKey = Cart.cart_key %}
  1010.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  1011.                         <div class=\"ec-cartRole__error\">
  1012.                             <div class=\"ec-alert-warning\">
  1013.                                 <div class=\"ec-alert-warning__inner\">
  1014.                                     <div class=\"ec-alert-warning__inner__item\">
  1015.                                         <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1016.                                         <div class=\"ec-alert-warning__text\">
  1017.                                             {{ error|trans|nl2br }}
  1018.                                         </div>
  1019.                                     </div>
  1020.                                 </div>
  1021.                             </div>
  1022.                         </div>
  1023.                     {% endfor %}
  1024.                     <div class=\"ec-cartRole__cart\">
  1025.                         <div class=\"ec-cartTable\">
  1026.                             <ol class=\"ec-cartHeader\">
  1027.                                 <li class=\"ec-cartHeader__label\">{{ '削除'|trans }}</li>
  1028.                                 <li class=\"ec-cartHeader__label\">{{ '商品内容'|trans }}</li>
  1029.                                 <li class=\"ec-cartHeader__label\">{{ '数量'|trans }}</li>
  1030.                                 <li class=\"ec-cartHeader__label\">{{ '小計'|trans }}</li>
  1031.                             </ol>
  1032.                             {% for CartItem in Cart.CartItems %}
  1033.                                 {% set ProductClass = CartItem.ProductClass %}
  1034.                                 {% set Product = ProductClass.Product %}
  1035.                                 <ul class=\"ec-cartRow\">
  1036.                                     <li class=\"ec-cartRow__delColumn\">
  1037.                                         <a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  1038.                                             <img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
  1039.                                         </a>
  1040.                                     </li>
  1041.                                     <li class=\"ec-cartRow__contentColumn\">
  1042.                                         <div class=\"ec-cartRow__img\">
  1043. {% if Product.id == 101 %}
  1044. {# ▼ 導入事例参考デザインは商品詳細にリンクしない #}
  1045.     {% if CaseImage is empty %}
  1046.                                             <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  1047.     {% else %}
  1048.                                             <img src=\"/icms/user_data/image/Voice1/{{ CaseImage }}\" alt=\"{{ Product.name }}\"/>
  1049.     {% endif %}
  1050. {% else %}
  1051.                                             <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  1052.                                                 <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  1053.                                             </a>
  1054. {% endif %}
  1055.                                         </div>
  1056.                                         <div class=\"ec-cartRow__summary\">
  1057.                                             <div class=\"ec-cartRow__name\">
  1058. {% if Product.id == 101 %}
  1059. {# ▼ 導入事例参考デザインは商品詳細にリンクしない #}
  1060.                                                 <span class=\"text-primary\">{{ Product.name }}</span>
  1061. {% else %}
  1062.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  1063. {% endif %}
  1064.                                                 {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  1065.                                                     <br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
  1066.                                                 {% endif %}
  1067.                                                 {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  1068.                                                     <br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
  1069.                                                 {% endif %}
  1070.                                             </div>
  1071.                                             <div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>
  1072.                                             <div class=\"ec-cartRow__sutbtotalSP\">{{ '小計:'|trans }}{{ CartItem.total_price|price }}</div>
  1073.                                         </div>
  1074.                                     </li>
  1075.                                     <li class=\"ec-cartRow__amountColumn\">
  1076.                                         <div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
  1077.                                         <div class=\"ec-cartRow__amountSP\">{{ '数量:'|trans }}{{ CartItem.quantity|number_format }}</div>
  1078.                                         <div class=\"ec-cartRow__amountUpDown\">
  1079.                                             {% if CartItem.quantity > 1 %}
  1080.                                                 <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\">
  1081.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
  1082.                                                 </a>
  1083.                                             {% else %}
  1084.                                                 <div class=\"ec-cartRow__amountDownButtonDisabled\">
  1085.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
  1086.                                                 </div>
  1087.                                             {% endif %}
  1088.                                             <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\">
  1089.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
  1090.                                             </a>
  1091.                                         </div>
  1092.                                     </li>
  1093.                                     <li class=\"ec-cartRow__subtotalColumn\">
  1094.                                         <div class=\"ec-cartRow__sutbtotal\">{{ CartItem.total_price|price }}</div>
  1095.                                     </li>
  1096.                                 </ul>
  1097.                             {% endfor %}
  1098.                         </div>
  1099.                     </div>
  1100.                     <div class=\"ec-cartRole__progress\">
  1101.                         {% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
  1102.                             <br/>
  1103.                             {% if is_delivery_free[cartKey] %}
  1104.                                 {{ '現在送料無料です。'|trans }}
  1105.                             {% else %}
  1106.                                 {{ 'あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
  1107.                             {% endif %}
  1108.                         {% elseif BaseInfo.delivery_free_amount %}
  1109.                             <br/>
  1110.                             {% if is_delivery_free[cartKey] %}
  1111.                                 {{ '現在送料無料です。'|trans }}
  1112.                             {% else %}
  1113.                                 {{ 'あと「<strong>%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price })|raw }}
  1114.                             {% endif %}
  1115.                         {% elseif BaseInfo.delivery_free_quantity %}
  1116.                             <br/>
  1117.                             {% if is_delivery_free[cartKey] %}
  1118.                                 {{ '現在送料無料です。'|trans }}
  1119.                             {% else %}
  1120.                                 {{ 'あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
  1121.                             {% endif %}
  1122.                         {% endif %}
  1123.                     </div>
  1124.                     <div class=\"ec-cartRole__actions\">
  1125.                         <div class=\"ec-cartRole__total\">{{ '合計:'|trans }}<span class=\"ec-cartRole__totalAmount\">{{ Cart.totalPrice|price }}</span>
  1126.                         </div>
  1127.             <!-- ================================================ ▼ カテゴリ判定に伴う変更 ================================================ -->
  1128. {% if DetectBall == false %}
  1129. {# ▼ デザインのみカートにある状態 #}
  1130.                         <a class=\"btn btn-danger btn-lg py-3 w-100 mb-3\" style=\"pointer-events:none; opacity:.5;\">レジに進む</a>
  1131.                         {% if loop.last %}
  1132.                             <a class=\"btn btn-dark btn-lg py-3 w-100\" href=\"{{ url('product_list') }}?category_id=7\">ボールを選ぶ</a>
  1133.                         {% endif %}
  1134. {% elseif DetectDesign == false %}
  1135. {# ▼ ボールのみカートにある状態 #}
  1136.                         <a class=\"btn btn-danger btn-lg py-3 w-100 mb-3\" style=\"pointer-events:none; opacity:.5;\">レジに進む</a>
  1137.                         {% if loop.last %}
  1138.                             <a class=\"btn btn-dark btn-lg py-3 w-100\" href=\"{{ url('product_list') }}?category_id=9\">デザインを選ぶ</a>
  1139.                         {% endif %}
  1140. {% else %}
  1141. {# ▼ 上記条件以外 #}
  1142.                         <a class=\"btn btn-danger btn-lg py-3 w-100 mb-3\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'レジに進む'|trans }}</a>
  1143.                         {% if loop.last %}
  1144.                             <a class=\"btn btn-dark btn-lg py-3 w-100\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  1145.                         {% endif %}
  1146. {% endif %}
  1147.             <!-- ================================================ ▲ カテゴリ判定に伴う変更 ================================================ -->
  1148.                     </div>
  1149.                 {% endfor %}
  1150.             </form>
  1151.         {% else %}
  1152.             {% for CartIndex,Cart in Carts %}
  1153.                 {% set cartKey = Cart.cart_key %}
  1154.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  1155.                     <div class=\"ec-cartRole__error\">
  1156.                         <div class=\"ec-alert-warning\">
  1157.                             <div class=\"ec-alert-warning__inner\">
  1158.                                 <div class=\"ec-alert-warning__inner__item\">
  1159.                                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1160.                                     <div class=\"ec-alert-warning__text\">
  1161.                                         {{ error|trans|nl2br }}
  1162.                                     </div>
  1163.                                 </div>
  1164.                             </div>
  1165.                         </div>
  1166.                     </div>
  1167.                 {% endfor %}
  1168.             {% endfor %}
  1169.             <div class=\"ec-role\">
  1170.                 <div class=\"ec-off3Grid\">
  1171.                     <div class=\"ec-off3Grid__cell\">
  1172.                         <div class=\"ec-alert-warning\">
  1173.                             <div class=\"ec-alert-warning__inner\">
  1174.                                 <div class=\"ec-alert-warning__inner__item\">
  1175.                                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1176.                                     <div class=\"ec-alert-warning__text\">{{ '現在カート内に商品はございません。'|trans }}</div>
  1177.                                 </div>
  1178.                             </div>
  1179.                         </div>
  1180.                     </div>
  1181.                 </div>
  1182.             </div>
  1183.         {% endif %}
  1184.     </div>
  1185. {% endblock %}""Cart/index.twig""/home/insp/insp.sixcore.jp/public_html/app/template/default/Cart/index.twig");
  1186.     }
  1187.     
  1188.     public function checkSecurity()
  1189.     {
  1190.         static $tags = array("set" => 13"if" => 33"for" => 62);
  1191.         static $filters = array("escape" => 19"trans" => 19"nl2br" => 71"raw" => 124"price" => 124"length" => 127"no_image_product" => 192"number_format" => 222);
  1192.         static $functions = array("is_granted" => 33"asset" => 68"url" => 151"csrf_token_for_anchor" => 183"path" => 288);
  1193.         try {
  1194.             $this->sandbox->checkSecurity(
  1195.                 ['set''if''for'],
  1196.                 ['escape''trans''nl2br''raw''price''length''no_image_product''number_format'],
  1197.                 ['is_granted''asset''url''csrf_token_for_anchor''path']
  1198.             );
  1199.         } catch (SecurityError $e) {
  1200.             $e->setSourceContext($this->source);
  1201.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1202.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1203.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1204.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1205.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1206.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1207.             }
  1208.             throw $e;
  1209.         }
  1210.     }
  1211. }