var/cache/dev/twig/8a/8a46e4a9343d135a917baba8cfef39d0.php line 38

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