var/cache/dev/twig/09/09df781ec20a5597875fcc1c442c3bd7d8cd44bf05c396f8139dea983124188f.php line 52

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