var/cache/dev/twig/e9/e9600378412b0357edd9bde81597ac873597c5b6182bfe34780d20c77688822c.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. /* Cart/index.twig */
  14. class __TwigTemplate_46a241a148477fe3584162ded7eb88be93fea679d18be1f0f160ec7d12f7a772 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  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""Cart/index.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  39.         // line 13
  40.         $context["body_class"] = "cart_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Cart/index.twig"11);
  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 15
  50.     public function block_javascript($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""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "<script>
  59. // eコマースadd_to_cartイベント
  60. dataLayer.push({ecommerce: null});  // Clear the previous ecommerce object.
  61. // GA4
  62. dataLayer.push({
  63.     'event': 'test_add_to_cart',
  64.     'ecommerce': {
  65.         'items': [
  66.             ";
  67.         // line 24
  68.         $context['_parent'] = $context;
  69.         $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'24$this->source); })()));
  70.         foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  71.             // line 25
  72.             echo "            ";
  73.             $context['_parent'] = $context;
  74.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsefalse25));
  75.             $context['loop'] = [
  76.               'parent' => $context['_parent'],
  77.               'index0' => 0,
  78.               'index'  => 1,
  79.               'first'  => true,
  80.             ];
  81.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  82.                 $length count($context['_seq']);
  83.                 $context['loop']['revindex0'] = $length 1;
  84.                 $context['loop']['revindex'] = $length;
  85.                 $context['loop']['length'] = $length;
  86.                 $context['loop']['last'] = === $length;
  87.             }
  88.             foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  89.                 // line 26
  90.                 echo "            ";
  91.                 $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsefalse26);
  92.                 // line 27
  93.                 echo "            ";
  94.                 $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.'27$this->source); })()), "Product", [], "any"falsefalsefalse27);
  95.                 // line 28
  96.                 echo "            {
  97.                 'item_name': '";
  98.                 // line 29
  99.                 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.'29$this->source); })()), "name", [], "any"falsefalsefalse29), "html"nulltrue);
  100.                 echo "',
  101.                 'item_id': '";
  102.                 // line 30
  103.                 echo twig_escape_filter($this->env, ((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.'30$this->source); })()), "getCodeMin", [], "any"falsefalsefalse30)) ? (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.'30$this->source); })()), "getCodeMin", [], "any"falsefalsefalse30)) : (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.'30$this->source); })()), "id", [], "any"falsefalsefalse30))), "html"nulltrue);
  104.                 echo "',
  105.                 'price': '";
  106.                 // line 31
  107.                 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.'31$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse31), "html"nulltrue);
  108.                 echo "'
  109.             }";
  110.                 // line 32
  111.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse32)) {
  112.                     echo ",";
  113.                 }
  114.                 // line 33
  115.                 echo "            ";
  116.                 ++$context['loop']['index0'];
  117.                 ++$context['loop']['index'];
  118.                 $context['loop']['first'] = false;
  119.                 if (isset($context['loop']['length'])) {
  120.                     --$context['loop']['revindex0'];
  121.                     --$context['loop']['revindex'];
  122.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  123.                 }
  124.             }
  125.             $_parent $context['_parent'];
  126.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  127.             $context array_intersect_key($context$_parent) + $_parent;
  128.             // line 34
  129.             echo "            ";
  130.         }
  131.         $_parent $context['_parent'];
  132.         unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  133.         $context array_intersect_key($context$_parent) + $_parent;
  134.         // line 35
  135.         echo "        ]
  136.     }
  137. });
  138. </script>
  139. ";
  140.         
  141.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  142.         
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  144.     }
  145.     // line 41
  146.     public function block_main($context, array $blocks = [])
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  151.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  153.         // line 42
  154.         echo "<style>
  155. @media (max-width: 767px) {
  156.     .ec-cartRow{
  157.         display: flex;
  158.         align-items: center;
  159.         flex-wrap: wrap;
  160.         box-sizing: border-box;
  161.         font-size:14px;
  162.     }
  163.     ul.ec-cartRow{
  164.         padding-left:0;
  165.     }
  166.     .ec-cartRow .ec-cartRow__delColumn{
  167.         width:10%;
  168.         margin:0;
  169.         display:block;
  170.         border-bottom:none;
  171.             }
  172.     .ec-cartRow .ec-cartRow__contentColumn{
  173.         width:90%;
  174.         margin:0;
  175.         display:block;
  176.         order:-1;
  177.         border-bottom:none;
  178.     }
  179.     .ec-cartRow .ec-cartRow__amountColumn{
  180.         width:100%;
  181.         padding:0 0 10px;
  182.         display:flex;
  183.         align-items: center;
  184.         justify-content:center;
  185.         text-align:center;
  186.     }
  187.     .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpDown {
  188.       justify-content: center;
  189.     }
  190.     .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountSP{
  191.         margin-bottom:0;
  192.         margin-right:10px;
  193.     }
  194.     .ec-cartRow .ec-cartRow__img{
  195.         width:20%;
  196.     }
  197.     .ec-cartRow .ec-cartRow__summary{
  198.         width:75%;
  199.     }
  200. }
  201. </style>
  202.     <div class=\"ec-role\">
  203.         <div class=\"ec-pageHeader\">
  204.             <h1>";
  205.         // line 95
  206.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショッピングカート"), "html"nulltrue);
  207.         echo "</h1>
  208.         </div>
  209.     </div>
  210.     <div class=\"ec-cartRole\">
  211.         <div class=\"ec-cartRole__progress\">
  212.             <ul class=\"ec-progress\">
  213.                 ";
  214.         // line 102
  215.         $context["step"] = 1;
  216.         // line 103
  217.         echo "                <li class=\"ec-progress__item is-complete\">
  218.                     <div class=\"ec-progress__number\">";
  219.         // line 104
  220.         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.'104$this->source); })()), "html"nulltrue);
  221.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'104$this->source); })()) + 1);
  222.         // line 105
  223.         echo "                    </div>
  224.                     <div class=\"ec-progress__label\">";
  225.         // line 106
  226.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートの商品"), "html"nulltrue);
  227.         echo "
  228.                     </div>
  229.                 </li>
  230.                 ";
  231.         // line 109
  232.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
  233.             // line 110
  234.             echo "                    <li class=\"ec-progress__item\">
  235.                         <div class=\"ec-progress__number\">";
  236.             // line 111
  237.             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.'111$this->source); })()), "html"nulltrue);
  238.             $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'111$this->source); })()) + 1);
  239.             // line 112
  240.             echo "                        </div>
  241.                         <div class=\"ec-progress__label\">";
  242.             // line 113
  243.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お客様情報"), "html"nulltrue);
  244.             echo "
  245.                         </div>
  246.                     </li>
  247.                 ";
  248.         }
  249.         // line 117
  250.         echo "                <li class=\"ec-progress__item\">
  251.                     <div class=\"ec-progress__number\">";
  252.         // line 118
  253.         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.'118$this->source); })()), "html"nulltrue);
  254.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'118$this->source); })()) + 1);
  255.         // line 119
  256.         echo "                    </div>
  257.                     <div class=\"ec-progress__label\">";
  258.         // line 120
  259.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文手続き"), "html"nulltrue);
  260.         echo "
  261.                     </div>
  262.                 </li>
  263.                 <li class=\"ec-progress__item\">
  264.                     <div class=\"ec-progress__number\">";
  265.         // line 124
  266.         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.'124$this->source); })()), "html"nulltrue);
  267.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'124$this->source); })()) + 1);
  268.         // line 125
  269.         echo "                    </div>
  270.                     <div class=\"ec-progress__label\">";
  271.         // line 126
  272.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文内容確認"), "html"nulltrue);
  273.         echo "
  274.                     </div>
  275.                 </li>
  276.                 <li class=\"ec-progress__item\">
  277.                     <div class=\"ec-progress__number\">";
  278.         // line 130
  279.         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.'130$this->source); })()), "html"nulltrue);
  280.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'130$this->source); })()) + 1);
  281.         // line 131
  282.         echo "                    </div>
  283.                     <div class=\"ec-progress__label\">";
  284.         // line 132
  285.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("完了"), "html"nulltrue);
  286.         echo "
  287.                     </div>
  288.                 </li>
  289.             </ul>
  290.         </div>
  291.         ";
  292.         // line 137
  293.         $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.'137$this->source); })()), "session", [], "any"falsefalsefalse137), "flashbag", [], "any"falsefalsefalse137), "get", [=> "eccube.front.request.product"], "method"falsefalsefalse137);
  294.         // line 138
  295.         echo "        ";
  296.         $context['_parent'] = $context;
  297.         $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.'138$this->source); })()), "session", [], "any"falsefalsefalse138), "flashbag", [], "any"falsefalsefalse138), "get", [=> "eccube.front.request.error"], "method"falsefalsefalse138));
  298.         $context['loop'] = [
  299.           'parent' => $context['_parent'],
  300.           'index0' => 0,
  301.           'index'  => 1,
  302.           'first'  => true,
  303.         ];
  304.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  305.             $length count($context['_seq']);
  306.             $context['loop']['revindex0'] = $length 1;
  307.             $context['loop']['revindex'] = $length;
  308.             $context['loop']['length'] = $length;
  309.             $context['loop']['last'] = === $length;
  310.         }
  311.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  312.             // line 139
  313.             echo "            ";
  314.             $context["idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse139);
  315.             // line 140
  316.             echo "            <div class=\"ec-cartRole__error\">
  317.                 <div class=\"ec-alert-warning\">
  318.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  319.             // line 142
  320.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  321.             echo "\"></div>
  322.                     <div class=\"ec-alert-warning__text\">
  323.                         ";
  324.             // line 144
  325.             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.'144$this->source); })()), [], "array"truetruefalse144)) {
  326.                 // line 145
  327.                 echo "                            ";
  328.                 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.'145$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'145$this->source); })()), [], "array"falsefalsefalse145)]), "html"nulltrue));
  329.                 echo "
  330.                         ";
  331.             } else {
  332.                 // line 147
  333.                 echo "                            ";
  334.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  335.                 echo "
  336.                         ";
  337.             }
  338.             // line 149
  339.             echo "                    </div>
  340.                 </div>
  341.             </div>
  342.         ";
  343.             ++$context['loop']['index0'];
  344.             ++$context['loop']['index'];
  345.             $context['loop']['first'] = false;
  346.             if (isset($context['loop']['length'])) {
  347.                 --$context['loop']['revindex0'];
  348.                 --$context['loop']['revindex'];
  349.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  350.             }
  351.         }
  352.         $_parent $context['_parent'];
  353.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  354.         $context array_intersect_key($context$_parent) + $_parent;
  355.         // line 153
  356.         echo "        ";
  357.         $context['_parent'] = $context;
  358.         $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.'153$this->source); })()), "session", [], "any"falsefalsefalse153), "flashbag", [], "any"falsefalsefalse153), "get", [=> "eccube.front.cart.error"], "method"falsefalsefalse153));
  359.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  360.             // line 154
  361.             echo "            <div class=\"ec-cartRole__error\">
  362.                 <div class=\"ec-alert-warning\">
  363.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  364.             // line 156
  365.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  366.             echo "\"></div>
  367.                     <div class=\"ec-alert-warning__text\">
  368.                         ";
  369.             // line 158
  370.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  371.             echo "
  372.                     </div>
  373.                 </div>
  374.             </div>
  375.         ";
  376.         }
  377.         $_parent $context['_parent'];
  378.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  379.         $context array_intersect_key($context$_parent) + $_parent;
  380.         // line 163
  381.         echo "        ";
  382.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'163$this->source); })()) > 0)) {
  383.             // line 164
  384.             echo "            <div class=\"ec-cartRole__totalText\">
  385.                 <p>
  386.                     ";
  387.             // line 166
  388.             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.'166$this->source); })()))]);
  389.             echo "
  390.                 </p>
  391.             </div>
  392.             ";
  393.             // line 169
  394.             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.'169$this->source); })())) > 1)) {
  395.                 // line 170
  396.                 echo "                <div class=\"ec-cartRole__error\">
  397.                     <div class=\"ec-alert-warning\">
  398.                         <div class=\"ec-alert-warning__text\">
  399.                             ";
  400.                 // line 173
  401.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html"nulltrue));
  402.                 echo "
  403.                         </div>
  404.                     </div>
  405.                 </div>
  406.             ";
  407.             }
  408.             // line 178
  409.             echo "
  410.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
  411.             // line 179
  412.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  413.             echo "\">
  414.                 ";
  415.             // line 181
  416.             $context['_parent'] = $context;
  417.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'181$this->source); })()));
  418.             $context['loop'] = [
  419.               'parent' => $context['_parent'],
  420.               'index0' => 0,
  421.               'index'  => 1,
  422.               'first'  => true,
  423.             ];
  424.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  425.                 $length count($context['_seq']);
  426.                 $context['loop']['revindex0'] = $length 1;
  427.                 $context['loop']['revindex'] = $length;
  428.                 $context['loop']['length'] = $length;
  429.                 $context['loop']['last'] = === $length;
  430.             }
  431.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  432.                 // line 182
  433.                 echo "                    ";
  434.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsefalse182);
  435.                 // line 183
  436.                 echo "                    ";
  437.                 $context['_parent'] = $context;
  438.                 $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.'183$this->source); })()), "session", [], "any"falsefalsefalse183), "flashbag", [], "any"falsefalsefalse183), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'183$this->source); })())) . ".request.error")], "method"falsefalsefalse183));
  439.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  440.                     // line 184
  441.                     echo "                        <div class=\"ec-cartRole__error\">
  442.                             <div class=\"ec-alert-warning\">
  443.                                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  444.                     // line 186
  445.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  446.                     echo "\"></div>
  447.                                 <div class=\"ec-alert-warning__text\">
  448.                                     ";
  449.                     // line 188
  450.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  451.                     echo "
  452.                                 </div>
  453.                             </div>
  454.                         </div>
  455.                     ";
  456.                 }
  457.                 $_parent $context['_parent'];
  458.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  459.                 $context array_intersect_key($context$_parent) + $_parent;
  460.                 // line 193
  461.                 echo "
  462.                     <div class=\"ec-cartRole__cart\">
  463.                         <div class=\"ec-cartTable\">
  464.                             <ol class=\"ec-cartHeader\">
  465.                                 <li class=\"ec-cartHeader__label\">";
  466.                 // line 197
  467.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("削除"), "html"nulltrue);
  468.                 echo "</li>
  469.                                 <li class=\"ec-cartHeader__label\">";
  470.                 // line 198
  471.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品内容"), "html"nulltrue);
  472.                 echo "</li>
  473.                                 <li class=\"ec-cartHeader__label\">";
  474.                 // line 199
  475.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  476.                 echo "</li>
  477.                                 <li class=\"ec-cartHeader__label\">";
  478.                 // line 200
  479.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html"nulltrue);
  480.                 echo "</li>
  481.                             </ol>
  482.                             ";
  483.                 // line 202
  484.                 $context['_parent'] = $context;
  485.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsefalse202));
  486.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  487.                     // line 203
  488.                     echo "                                ";
  489.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsefalse203);
  490.                     // line 204
  491.                     echo "                                ";
  492.                     $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.'204$this->source); })()), "Product", [], "any"falsefalsefalse204);
  493.                     // line 205
  494.                     echo "                                <ul class=\"ec-cartRow\">
  495.                                     <li class=\"ec-cartRow__delColumn\">
  496.                                         <a href=\"";
  497.                     // line 207
  498.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "remove""productClassId" => twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'207$this->source); })()), "id", [], "any"falsefalsefalse207)]), "html"nulltrue);
  499.                     echo "\" ";
  500.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  501.                     echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  502.                                             <img src=\"";
  503.                     // line 208
  504.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html"nulltrue);
  505.                     echo "\" alt=\"delete\">
  506.                                         </a>
  507.                                     </li>
  508.                                     <li class=\"ec-cartRow__contentColumn\">
  509.                                         <div class=\"ec-cartRow__img\">
  510.                                             <a target=\"_blank\" href=\"";
  511.                     // line 213
  512.                     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.'213$this->source); })()), "id", [], "any"falsefalsefalse213)]), "html"nulltrue);
  513.                     echo "\">
  514.                                                 <img src=\"";
  515.                     // line 214
  516.                     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.'214$this->source); })()), "MainListImage", [], "any"falsefalsefalse214)), "save_image"), "html"nulltrue);
  517.                     echo "\" alt=\"";
  518.                     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.'214$this->source); })()), "name", [], "any"falsefalsefalse214), "html"nulltrue);
  519.                     echo "\"/>
  520.                                             </a>
  521.                                         </div>
  522.                                         <div class=\"ec-cartRow__summary\">
  523.                                             <div class=\"ec-cartRow__name\">
  524.                                                 <a target=\"_blank\" href=\"";
  525.                     // line 219
  526.                     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.'219$this->source); })()), "id", [], "any"falsefalsefalse219)]), "html"nulltrue);
  527.                     echo "\">";
  528.                     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.'219$this->source); })()), "name", [], "any"falsefalsefalse219), "html"nulltrue);
  529.                     echo "</a>
  530.                                                 ";
  531.                     // line 220
  532.                     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.'220$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse220) && 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.'220$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse220), "id", [], "any"falsefalsefalse220))) {
  533.                         // line 221
  534.                         echo "                                                    <br>";
  535.                         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.'221$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse221), "ClassName", [], "any"falsefalsefalse221), "name", [], "any"falsefalsefalse221), "html"nulltrue);
  536.                         echo ":";
  537.                         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.'221$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse221), "html"nulltrue);
  538.                         echo "
  539.                                                 ";
  540.                     }
  541.                     // line 223
  542.                     echo "                                                ";
  543.                     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.'223$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse223) && 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.'223$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse223), "id", [], "any"falsefalsefalse223))) {
  544.                         // line 224
  545.                         echo "                                                    <br>";
  546.                         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.'224$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse224), "ClassName", [], "any"falsefalsefalse224), "name", [], "any"falsefalsefalse224), "html"nulltrue);
  547.                         echo ":";
  548.                         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.'224$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse224), "html"nulltrue);
  549.                         echo "
  550.                                                 ";
  551.                     }
  552.                     // line 226
  553.                     echo "                                            </div>
  554.                                             <div class=\"ec-cartRow__unitPrice\">";
  555.                     // line 227
  556.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["CartItem"], "price", [], "any"falsefalsefalse227)), "html"nulltrue);
  557.                     echo "</div>
  558.                                             <div class=\"ec-cartRow__sutbtotalSP\">";
  559.                     // line 228
  560.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計:"), "html"nulltrue);
  561.                     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"falsefalsefalse228)), "html"nulltrue);
  562.                     echo "</div>
  563.                                         </div>
  564.                                     </li>
  565.                                     <li class=\"ec-cartRow__amountColumn\">
  566.                                         <div class=\"ec-cartRow__amount\">";
  567.                     // line 232
  568.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsefalse232)), "html"nulltrue);
  569.                     echo "</div>
  570.                                         <div class=\"ec-cartRow__amountSP\">";
  571.                     // line 233
  572.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量:"), "html"nulltrue);
  573.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsefalse233)), "html"nulltrue);
  574.                     echo "</div>
  575.                                         <div class=\"ec-cartRow__amountUpDown\">
  576.                                             ";
  577.                     // line 235
  578.                     if ((twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsefalse235) > 1)) {
  579.                         // line 236
  580.                         echo "                                                <a href=\"";
  581.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "down""productClassId" => twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'236$this->source); })()), "id", [], "any"falsefalsefalse236)]), "html"nulltrue);
  582.                         echo "\" ";
  583.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  584.                         echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  585.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  586.                         // line 237
  587.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus-dark.svg"), "html"nulltrue);
  588.                         echo "\" alt=\"reduce\"></span>
  589.                                                 </a>
  590.                                             ";
  591.                     } else {
  592.                         // line 240
  593.                         echo "                                                <div class=\"ec-cartRow__amountDownButtonDisabled\">
  594.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  595.                         // line 241
  596.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus.svg"), "html"nulltrue);
  597.                         echo "\" alt=\"reduce\"></span>
  598.                                                 </div>
  599.                                             ";
  600.                     }
  601.                     // line 244
  602.                     echo "                                            <a href=\"";
  603.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "up""productClassId" => twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'244$this->source); })()), "id", [], "any"falsefalsefalse244)]), "html"nulltrue);
  604.                     echo "\" ";
  605.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  606.                     echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  607.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"";
  608.                     // line 245
  609.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/plus-dark.svg"), "html"nulltrue);
  610.                     echo "\" alt=\"increase\"></span>
  611.                                             </a>
  612.                                         </div>
  613.                                     </li>
  614.                                     <li class=\"ec-cartRow__subtotalColumn\">
  615.                                         <div class=\"ec-cartRow__sutbtotal\">";
  616.                     // line 250
  617.                     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"falsefalsefalse250)), "html"nulltrue);
  618.                     echo "</div>
  619.                                     </li>
  620.                                 </ul>
  621.                             ";
  622.                 }
  623.                 $_parent $context['_parent'];
  624.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  625.                 $context array_intersect_key($context$_parent) + $_parent;
  626.                 // line 254
  627.                 echo "                        </div>
  628.                     </div>
  629.                     <div class=\"ec-cartRole__progress\">
  630.                         ";
  631.                 // line 257
  632.                 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.'257$this->source); })()), "delivery_free_amount", [], "any"falsefalsefalse257) && 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.'257$this->source); })()), "delivery_free_quantity", [], "any"falsefalsefalse257))) {
  633.                     // line 258
  634.                     echo "                            <br/>
  635.                             ";
  636.                     // line 259
  637.                     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.'259$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'259$this->source); })()), [], "array"falsefalsefalse259)) {
  638.                         // line 260
  639.                         echo "                                ";
  640.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  641.                         echo "
  642.                             ";
  643.                     } else {
  644.                         // line 262
  645.                         echo "                                ";
  646.                         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.'262$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'262$this->source); })()), [], "array"falsefalsefalse262)), "%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.'262$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'262$this->source); })()), [], "array"falsefalsefalse262))]);
  647.                         echo "
  648.                             ";
  649.                     }
  650.                     // line 264
  651.                     echo "                        ";
  652.                 } 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.'264$this->source); })()), "delivery_free_amount", [], "any"falsefalsefalse264)) {
  653.                     // line 265
  654.                     echo "                            <br/>
  655.                             ";
  656.                     // line 266
  657.                     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.'266$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'266$this->source); })()), [], "array"falsefalsefalse266)) {
  658.                         // line 267
  659.                         echo "                                ";
  660.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  661.                         echo "
  662.                             ";
  663.                     } else {
  664.                         // line 269
  665.                         echo "                                ";
  666.                         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.'269$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'269$this->source); })()), [], "array"falsefalsefalse269))]);
  667.                         echo "
  668.                             ";
  669.                     }
  670.                     // line 271
  671.                     echo "                        ";
  672.                 } 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.'271$this->source); })()), "delivery_free_quantity", [], "any"falsefalsefalse271)) {
  673.                     // line 272
  674.                     echo "                            <br/>
  675.                             ";
  676.                     // line 273
  677.                     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.'273$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'273$this->source); })()), [], "array"falsefalsefalse273)) {
  678.                         // line 274
  679.                         echo "                                ";
  680.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  681.                         echo "
  682.                             ";
  683.                     } else {
  684.                         // line 276
  685.                         echo "                                ";
  686.                         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.'276$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'276$this->source); })()), [], "array"falsefalsefalse276))]);
  687.                         echo "
  688.                             ";
  689.                     }
  690.                     // line 278
  691.                     echo "                        ";
  692.                 }
  693.                 // line 279
  694.                 echo "                    </div>
  695.                     <div class=\"ec-cartRole__actions\">
  696.                         <div class=\"ec-cartRole__total\">";
  697.                 // line 281
  698.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("合計:"), "html"nulltrue);
  699.                 echo "<span class=\"ec-cartRole__totalAmount\">";
  700.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Cart"], "totalPrice", [], "any"falsefalsefalse281)), "html"nulltrue);
  701.                 echo "</span>
  702.                         </div>
  703.                         <a class=\"ec-blockBtn--action\" href=\"";
  704.                 // line 283
  705.                 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.'283$this->source); })())]), "html"nulltrue);
  706.                 echo "\">";
  707.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レジに進む"), "html"nulltrue);
  708.                 echo "</a>
  709.                         ";
  710.                 // line 284
  711.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse284)) {
  712.                     // line 285
  713.                     echo "                            <a class=\"ec-blockBtn--cancel\" href=\"";
  714.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  715.                     echo "\">";
  716.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  717.                     echo "</a>
  718.                         ";
  719.                 }
  720.                 // line 287
  721.                 echo "                    </div>
  722.                 ";
  723.                 ++$context['loop']['index0'];
  724.                 ++$context['loop']['index'];
  725.                 $context['loop']['first'] = false;
  726.                 if (isset($context['loop']['length'])) {
  727.                     --$context['loop']['revindex0'];
  728.                     --$context['loop']['revindex'];
  729.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  730.                 }
  731.             }
  732.             $_parent $context['_parent'];
  733.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  734.             $context array_intersect_key($context$_parent) + $_parent;
  735.             // line 289
  736.             echo "            </form>
  737.         ";
  738.         } else {
  739.             // line 291
  740.             echo "            ";
  741.             $context['_parent'] = $context;
  742.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'291$this->source); })()));
  743.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  744.                 // line 292
  745.                 echo "                ";
  746.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsefalse292);
  747.                 // line 293
  748.                 echo "                ";
  749.                 $context['_parent'] = $context;
  750.                 $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.'293$this->source); })()), "session", [], "any"falsefalsefalse293), "flashbag", [], "any"falsefalsefalse293), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'293$this->source); })())) . ".request.error")], "method"falsefalsefalse293));
  751.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  752.                     // line 294
  753.                     echo "                    <div class=\"ec-cartRole__error\">
  754.                         <div class=\"ec-alert-warning\">
  755.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  756.                     // line 296
  757.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  758.                     echo "\"></div>
  759.                             <div class=\"ec-alert-warning__text\">
  760.                                 ";
  761.                     // line 298
  762.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  763.                     echo "
  764.                             </div>
  765.                         </div>
  766.                     </div>
  767.                 ";
  768.                 }
  769.                 $_parent $context['_parent'];
  770.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  771.                 $context array_intersect_key($context$_parent) + $_parent;
  772.                 // line 303
  773.                 echo "            ";
  774.             }
  775.             $_parent $context['_parent'];
  776.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  777.             $context array_intersect_key($context$_parent) + $_parent;
  778.             // line 304
  779.             echo "            <div class=\"ec-role\">
  780.                 <div class=\"ec-off3Grid\">
  781.                     <div class=\"ec-off3Grid__cell\">
  782.                         <div class=\"ec-alert-warning\">
  783.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  784.             // line 308
  785.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  786.             echo "\"></div>
  787.                             <div class=\"ec-alert-warning__text\">";
  788.             // line 309
  789.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在カート内に商品はございません。"), "html"nulltrue);
  790.             echo "</div>
  791.                         </div>
  792.                     </div>
  793.                 </div>
  794.             </div>
  795.         ";
  796.         }
  797.         // line 315
  798.         echo "    </div>
  799. ";
  800.         
  801.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  802.         
  803.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  804.     }
  805.     public function getTemplateName()
  806.     {
  807.         return "Cart/index.twig";
  808.     }
  809.     public function isTraitable()
  810.     {
  811.         return false;
  812.     }
  813.     public function getDebugInfo()
  814.     {
  815.         return array (  822 => 315,  813 => 309,  809 => 308,  803 => 304,  797 => 303,  786 => 298,  781 => 296,  777 => 294,  772 => 293,  769 => 292,  764 => 291,  760 => 289,  745 => 287,  737 => 285,  735 => 284,  729 => 283,  722 => 281,  718 => 279,  715 => 278,  709 => 276,  703 => 274,  701 => 273,  698 => 272,  695 => 271,  689 => 269,  683 => 267,  681 => 266,  678 => 265,  675 => 264,  669 => 262,  663 => 260,  661 => 259,  658 => 258,  656 => 257,  651 => 254,  641 => 250,  633 => 245,  626 => 244,  620 => 241,  617 => 240,  611 => 237,  604 => 236,  602 => 235,  596 => 233,  592 => 232,  584 => 228,  580 => 227,  577 => 226,  569 => 224,  566 => 223,  558 => 221,  556 => 220,  550 => 219,  540 => 214,  536 => 213,  528 => 208,  522 => 207,  518 => 205,  515 => 204,  512 => 203,  508 => 202,  503 => 200,  499 => 199,  495 => 198,  491 => 197,  485 => 193,  474 => 188,  469 => 186,  465 => 184,  460 => 183,  457 => 182,  440 => 181,  435 => 179,  432 => 178,  424 => 173,  419 => 170,  417 => 169,  411 => 166,  407 => 164,  404 => 163,  393 => 158,  388 => 156,  384 => 154,  379 => 153,  362 => 149,  356 => 147,  350 => 145,  348 => 144,  343 => 142,  339 => 140,  336 => 139,  318 => 138,  316 => 137,  308 => 132,  305 => 131,  302 => 130,  295 => 126,  292 => 125,  289 => 124,  282 => 120,  279 => 119,  276 => 118,  273 => 117,  266 => 113,  263 => 112,  260 => 111,  257 => 110,  255 => 109,  249 => 106,  246 => 105,  243 => 104,  240 => 103,  238 => 102,  228 => 95,  173 => 42,  163 => 41,  149 => 35,  143 => 34,  129 => 33,  125 => 32,  121 => 31,  117 => 30,  113 => 29,  110 => 28,  107 => 27,  104 => 26,  86 => 25,  82 => 24,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  816.     }
  817.     public function getSourceContext()
  818.     {
  819.         return new Source("{#
  820. This file is part of EC-CUBE
  821. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  822. http://www.ec-cube.co.jp/
  823. For the full copyright and license information, please view the LICENSE
  824. file that was distributed with this source code.
  825. #}
  826. {% extends 'default_frame.twig' %}
  827. {% set body_class = 'cart_page' %}
  828. {% block javascript %}
  829. <script>
  830. // eコマースadd_to_cartイベント
  831. dataLayer.push({ecommerce: null});  // Clear the previous ecommerce object.
  832. // GA4
  833. dataLayer.push({
  834.     'event': 'test_add_to_cart',
  835.     'ecommerce': {
  836.         'items': [
  837.             {% for CartIndex,Cart in Carts %}
  838.             {% for CartItem in Cart.CartItems %}
  839.             {% set ProductClass = CartItem.ProductClass %}
  840.             {% set Product = ProductClass.Product %}
  841.             {
  842.                 'item_name': '{{ Product.name }}',
  843.                 'item_id': '{{ Product.getCodeMin ? Product.getCodeMin : Product.id }}',
  844.                 'price': '{{ Product.getPrice02IncTaxMin }}'
  845.             }{% if not loop.last %},{% endif %}
  846.             {% endfor %}
  847.             {% endfor %}
  848.         ]
  849.     }
  850. });
  851. </script>
  852. {% endblock %}
  853. {% block main %}
  854. <style>
  855. @media (max-width: 767px) {
  856.     .ec-cartRow{
  857.         display: flex;
  858.         align-items: center;
  859.         flex-wrap: wrap;
  860.         box-sizing: border-box;
  861.         font-size:14px;
  862.     }
  863.     ul.ec-cartRow{
  864.         padding-left:0;
  865.     }
  866.     .ec-cartRow .ec-cartRow__delColumn{
  867.         width:10%;
  868.         margin:0;
  869.         display:block;
  870.         border-bottom:none;
  871.             }
  872.     .ec-cartRow .ec-cartRow__contentColumn{
  873.         width:90%;
  874.         margin:0;
  875.         display:block;
  876.         order:-1;
  877.         border-bottom:none;
  878.     }
  879.     .ec-cartRow .ec-cartRow__amountColumn{
  880.         width:100%;
  881.         padding:0 0 10px;
  882.         display:flex;
  883.         align-items: center;
  884.         justify-content:center;
  885.         text-align:center;
  886.     }
  887.     .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpDown {
  888.       justify-content: center;
  889.     }
  890.     .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountSP{
  891.         margin-bottom:0;
  892.         margin-right:10px;
  893.     }
  894.     .ec-cartRow .ec-cartRow__img{
  895.         width:20%;
  896.     }
  897.     .ec-cartRow .ec-cartRow__summary{
  898.         width:75%;
  899.     }
  900. }
  901. </style>
  902.     <div class=\"ec-role\">
  903.         <div class=\"ec-pageHeader\">
  904.             <h1>{{ 'ショッピングカート'|trans }}</h1>
  905.         </div>
  906.     </div>
  907.     <div class=\"ec-cartRole\">
  908.         <div class=\"ec-cartRole__progress\">
  909.             <ul class=\"ec-progress\">
  910.                 {% set step = 1 %}
  911.                 <li class=\"ec-progress__item is-complete\">
  912.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  913.                     </div>
  914.                     <div class=\"ec-progress__label\">{{ 'カートの商品'|trans }}
  915.                     </div>
  916.                 </li>
  917.                 {% if is_granted('ROLE_USER') == false %}
  918.                     <li class=\"ec-progress__item\">
  919.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  920.                         </div>
  921.                         <div class=\"ec-progress__label\">{{ 'お客様情報'|trans }}
  922.                         </div>
  923.                     </li>
  924.                 {% endif %}
  925.                 <li class=\"ec-progress__item\">
  926.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  927.                     </div>
  928.                     <div class=\"ec-progress__label\">{{ 'ご注文手続き'|trans }}
  929.                     </div>
  930.                 </li>
  931.                 <li class=\"ec-progress__item\">
  932.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  933.                     </div>
  934.                     <div class=\"ec-progress__label\">{{ 'ご注文内容確認'|trans }}
  935.                     </div>
  936.                 </li>
  937.                 <li class=\"ec-progress__item\">
  938.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  939.                     </div>
  940.                     <div class=\"ec-progress__label\">{{ '完了'|trans }}
  941.                     </div>
  942.                 </li>
  943.             </ul>
  944.         </div>
  945.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  946.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  947.             {% set idx = loop.index0 %}
  948.             <div class=\"ec-cartRole__error\">
  949.                 <div class=\"ec-alert-warning\">
  950.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  951.                     <div class=\"ec-alert-warning__text\">
  952.                         {% if productStr[idx] is defined %}
  953.                             {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  954.                         {% else %}
  955.                             {{ error|trans|nl2br }}
  956.                         {% endif %}
  957.                     </div>
  958.                 </div>
  959.             </div>
  960.         {% endfor %}
  961.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  962.             <div class=\"ec-cartRole__error\">
  963.                 <div class=\"ec-alert-warning\">
  964.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  965.                     <div class=\"ec-alert-warning__text\">
  966.                         {{ error|trans|nl2br }}
  967.                     </div>
  968.                 </div>
  969.             </div>
  970.         {% endfor %}
  971.         {% if totalQuantity > 0 %}
  972.             <div class=\"ec-cartRole__totalText\">
  973.                 <p>
  974.                     {{ '商品の合計金額は「<strong>%price%</strong>」です。'|trans({ '%price%': totalPrice|price })|raw }}
  975.                 </p>
  976.             </div>
  977.             {% if Carts|length > 1 %}
  978.                 <div class=\"ec-cartRole__error\">
  979.                     <div class=\"ec-alert-warning\">
  980.                         <div class=\"ec-alert-warning__text\">
  981.                             {{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}
  982.                         </div>
  983.                     </div>
  984.                 </div>
  985.             {% endif %}
  986.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
  987.                 {% for CartIndex,Cart in Carts %}
  988.                     {% set cartKey = Cart.cart_key %}
  989.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  990.                         <div class=\"ec-cartRole__error\">
  991.                             <div class=\"ec-alert-warning\">
  992.                                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  993.                                 <div class=\"ec-alert-warning__text\">
  994.                                     {{ error|trans|nl2br }}
  995.                                 </div>
  996.                             </div>
  997.                         </div>
  998.                     {% endfor %}
  999.                     <div class=\"ec-cartRole__cart\">
  1000.                         <div class=\"ec-cartTable\">
  1001.                             <ol class=\"ec-cartHeader\">
  1002.                                 <li class=\"ec-cartHeader__label\">{{ '削除'|trans }}</li>
  1003.                                 <li class=\"ec-cartHeader__label\">{{ '商品内容'|trans }}</li>
  1004.                                 <li class=\"ec-cartHeader__label\">{{ '数量'|trans }}</li>
  1005.                                 <li class=\"ec-cartHeader__label\">{{ '小計'|trans }}</li>
  1006.                             </ol>
  1007.                             {% for CartItem in Cart.CartItems %}
  1008.                                 {% set ProductClass = CartItem.ProductClass %}
  1009.                                 {% set Product = ProductClass.Product %}
  1010.                                 <ul class=\"ec-cartRow\">
  1011.                                     <li class=\"ec-cartRow__delColumn\">
  1012.                                         <a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  1013.                                             <img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
  1014.                                         </a>
  1015.                                     </li>
  1016.                                     <li class=\"ec-cartRow__contentColumn\">
  1017.                                         <div class=\"ec-cartRow__img\">
  1018.                                             <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  1019.                                                 <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  1020.                                             </a>
  1021.                                         </div>
  1022.                                         <div class=\"ec-cartRow__summary\">
  1023.                                             <div class=\"ec-cartRow__name\">
  1024.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  1025.                                                 {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  1026.                                                     <br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
  1027.                                                 {% endif %}
  1028.                                                 {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  1029.                                                     <br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
  1030.                                                 {% endif %}
  1031.                                             </div>
  1032.                                             <div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>
  1033.                                             <div class=\"ec-cartRow__sutbtotalSP\">{{ '小計:'|trans }}{{ CartItem.total_price|price }}</div>
  1034.                                         </div>
  1035.                                     </li>
  1036.                                     <li class=\"ec-cartRow__amountColumn\">
  1037.                                         <div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
  1038.                                         <div class=\"ec-cartRow__amountSP\">{{ '数量:'|trans }}{{ CartItem.quantity|number_format }}</div>
  1039.                                         <div class=\"ec-cartRow__amountUpDown\">
  1040.                                             {% if CartItem.quantity > 1 %}
  1041.                                                 <a href=\"{{ url('cart_handle_item', {'operation': 'down', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  1042.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
  1043.                                                 </a>
  1044.                                             {% else %}
  1045.                                                 <div class=\"ec-cartRow__amountDownButtonDisabled\">
  1046.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
  1047.                                                 </div>
  1048.                                             {% endif %}
  1049.                                             <a href=\"{{ url('cart_handle_item', {'operation': 'up', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  1050.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
  1051.                                             </a>
  1052.                                         </div>
  1053.                                     </li>
  1054.                                     <li class=\"ec-cartRow__subtotalColumn\">
  1055.                                         <div class=\"ec-cartRow__sutbtotal\">{{ CartItem.total_price|price }}</div>
  1056.                                     </li>
  1057.                                 </ul>
  1058.                             {% endfor %}
  1059.                         </div>
  1060.                     </div>
  1061.                     <div class=\"ec-cartRole__progress\">
  1062.                         {% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
  1063.                             <br/>
  1064.                             {% if is_delivery_free[cartKey] %}
  1065.                                 {{ '現在送料無料です。'|trans }}
  1066.                             {% else %}
  1067.                                 {{ 'あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
  1068.                             {% endif %}
  1069.                         {% elseif BaseInfo.delivery_free_amount %}
  1070.                             <br/>
  1071.                             {% if is_delivery_free[cartKey] %}
  1072.                                 {{ '現在送料無料です。'|trans }}
  1073.                             {% else %}
  1074.                                 {{ 'あと「<strong>%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price })|raw }}
  1075.                             {% endif %}
  1076.                         {% elseif BaseInfo.delivery_free_quantity %}
  1077.                             <br/>
  1078.                             {% if is_delivery_free[cartKey] %}
  1079.                                 {{ '現在送料無料です。'|trans }}
  1080.                             {% else %}
  1081.                                 {{ 'あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
  1082.                             {% endif %}
  1083.                         {% endif %}
  1084.                     </div>
  1085.                     <div class=\"ec-cartRole__actions\">
  1086.                         <div class=\"ec-cartRole__total\">{{ '合計:'|trans }}<span class=\"ec-cartRole__totalAmount\">{{ Cart.totalPrice|price }}</span>
  1087.                         </div>
  1088.                         <a class=\"ec-blockBtn--action\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'レジに進む'|trans }}</a>
  1089.                         {% if loop.last %}
  1090.                             <a class=\"ec-blockBtn--cancel\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  1091.                         {% endif %}
  1092.                     </div>
  1093.                 {% endfor %}
  1094.             </form>
  1095.         {% else %}
  1096.             {% for CartIndex,Cart in Carts %}
  1097.                 {% set cartKey = Cart.cart_key %}
  1098.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  1099.                     <div class=\"ec-cartRole__error\">
  1100.                         <div class=\"ec-alert-warning\">
  1101.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1102.                             <div class=\"ec-alert-warning__text\">
  1103.                                 {{ error|trans|nl2br }}
  1104.                             </div>
  1105.                         </div>
  1106.                     </div>
  1107.                 {% endfor %}
  1108.             {% endfor %}
  1109.             <div class=\"ec-role\">
  1110.                 <div class=\"ec-off3Grid\">
  1111.                     <div class=\"ec-off3Grid__cell\">
  1112.                         <div class=\"ec-alert-warning\">
  1113.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1114.                             <div class=\"ec-alert-warning__text\">{{ '現在カート内に商品はございません。'|trans }}</div>
  1115.                         </div>
  1116.                     </div>
  1117.                 </div>
  1118.             </div>
  1119.         {% endif %}
  1120.     </div>
  1121. {% endblock %}""Cart/index.twig""/home/curere/www/test/app/template/default/Cart/index.twig");
  1122.     }
  1123. }