var/cache/dev/twig/b1/b1dba5fcc16804e4ffcf92a0d5b7dee556569941a5d653f6a1060cef7a01873b.php line 38

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