var/cache/dev/twig/57/57653a9fae495aac7b1a1dc7664ad22a.php line 42

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_ce8963c97952d9d77caf52b20bb21116 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 104
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  42.         // line 106
  43.         $context["body_class"] = "cart_page";
  44.         // line 104
  45.         $this->parent $this->loadTemplate("default_frame.twig""Cart/index.twig"104);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 5
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 6
  61.         echo "    <script>
  62.         \$(function() {
  63.             ";
  64.         // line 9
  65.         if ( !twig_test_empty((isset($context["favorites_product_id"]) || array_key_exists("favorites_product_id"$context) ? $context["favorites_product_id"] : (function () { throw new RuntimeError('Variable "favorites_product_id" does not exist.'9$this->source); })()))) {
  66.             // line 10
  67.             echo "                alert(\"お気に入りに追加しました。\");
  68.             ";
  69.         }
  70.         // line 12
  71.         echo "
  72.             ";
  73.         // line 13
  74.         $context["current_domain"] = twig_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.'13$this->source); })()), "request", [], "any"falsefalsetrue13), "getHost", [], "method"falsefalsetrue13);
  75.         // line 14
  76.         echo "
  77.             ";
  78.         // line 15
  79.         $context["is_prod"] = twig_in_filter("web-order.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'15$this->source); })()));
  80.         // line 16
  81.         echo "            ";
  82.         $context["is_stg"] = twig_in_filter("web-order-stg.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'16$this->source); })()));
  83.         // line 17
  84.         echo "            ";
  85.         $context["custom_customer_id"] = (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) ? (twig_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.'17$this->source); })()), "user", [], "any"falsefalsetrue17), "id", [], "any"falsefalsetrue17)) : (""));
  86.         // line 18
  87.         echo "
  88.             // カート表示イベントの送付
  89.             ";
  90.         // line 20
  91.         if ((isset($context["is_prod"]) || array_key_exists("is_prod"$context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.'20$this->source); })())) {
  92.             // line 21
  93.             echo "
  94.                 let cartData = [];
  95.                 let totalPrice = 0;
  96.                 ";
  97.             // line 25
  98.             $context['_parent'] = $context;
  99.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'25$this->source); })()));
  100.             foreach ($context['_seq'] as $context["_key"] => $context["Cart"]) {
  101.                 // line 26
  102.                 echo "                    ";
  103.                 $context['_parent'] = $context;
  104.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue26));
  105.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  106.                     // line 27
  107.                     echo "                        ";
  108.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue27);
  109.                     // line 28
  110.                     echo "                        ";
  111.                     $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.'28$this->source); })()), "Product", [], "any"falsefalsetrue28);
  112.                     // line 29
  113.                     echo "
  114.                         cartData.push({
  115.                             id: \"";
  116.                     // line 31
  117.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'31$this->source); })()), "id", [], "any"falsefalsetrue31), 31$this->source), "html"nulltrue);
  118.                     echo "\",
  119.                             name: \"";
  120.                     // line 32
  121.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'32$this->source); })()), "name", [], "any"falsefalsetrue32), 32$this->source), "html"nulltrue);
  122.                     echo "\",
  123.                             price: \"";
  124.                     // line 33
  125.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsetrue33), 33$this->source), "html"nulltrue);
  126.                     echo "\",
  127.                             quantity: ";
  128.                     // line 34
  129.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue34), 34$this->source)), "html"nulltrue);
  130.                     echo ",
  131.                         });
  132.                     ";
  133.                 }
  134.                 $_parent $context['_parent'];
  135.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  136.                 $context array_intersect_key($context$_parent) + $_parent;
  137.                 // line 37
  138.                 echo "                    totalPrice = ";
  139.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Cart"], "totalPrice", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  140.                 echo ";
  141.                 ";
  142.             }
  143.             $_parent $context['_parent'];
  144.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Cart'], $context['_parent'], $context['loop']);
  145.             $context array_intersect_key($context$_parent) + $_parent;
  146.             // line 39
  147.             echo "
  148.                 if (cartData.length > 0) {
  149.                     fbq('track', 'InitiateCheckout', {
  150.                         content_type: \"CartInfo\",
  151.                         content_ids: cartData.map(item => item.id),
  152.                         content_name: cartData.map(item => item.name).join(\", \"),
  153.                         contents: cartData.map(item => ({
  154.                             id: item.id,
  155.                             name: item.name,
  156.                             quantity: item.quantity,
  157.                             price: item.price
  158.                         })),
  159.                         currency: \"JPY\",
  160.                         num_items: cartData.reduce((total, item) => total + item.quantity, 0),
  161.                         value: 55
  162.                     });
  163.                     // Metaへイベント送付
  164.                     fbq('trackCustom', 'ce_show_cart', {
  165.                         content_type: \"CartInfo\",
  166.                         content_ids: cartData.map(item => item.id),
  167.                         content_name: cartData.map(item => item.name).join(\", \"),
  168.                         contents: cartData.map(item => ({
  169.                             id: item.id,
  170.                             name: item.name,
  171.                             quantity: item.quantity,
  172.                             price: item.price
  173.                         })),
  174.                         currency: \"JPY\",
  175.                         num_items: cartData.reduce((total, item) => total + item.quantity, 0),
  176.                         value: 55
  177.                     });
  178.                     // GAへイベント送付
  179.                     window.dataLayer.push({
  180.                         event: 'ce_show_cart',
  181.                         custom_event_name: 'ce_show_cart',
  182.                         custom_contents: cartData.map(item => ({
  183.                             id: item.id,
  184.                             name: item.name,
  185.                             quantity: item.quantity,
  186.                             price: item.price
  187.                         })),
  188.                         custom_content_ids: cartData.map(item => item.id),
  189.                         custom_content_names: cartData.map(item => item.name).join(\", \"),
  190.                         custom_num_item: cartData.reduce((total, item) => total + item.quantity, 0),
  191.                         custom_total_price: totalPrice,
  192.                         custom_customer_id: '";
  193.             // line 86
  194.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["custom_customer_id"]) || array_key_exists("custom_customer_id"$context) ? $context["custom_customer_id"] : (function () { throw new RuntimeError('Variable "custom_customer_id" does not exist.'86$this->source); })()), 86$this->source), "html"nulltrue);
  195.             echo "',
  196.                         custom_user_agent: \$(\"#user_agent\").val(),
  197.                         custom_is_ig: \$(\"#is_ig\").val(),
  198.                         custom_is_line: \$(\"#is_line\").val(),
  199.                         custom_referer: \$(\"#referer\").val(),
  200.                         custom_real_ip: \$(\"#real_ip\").val(),
  201.                     });
  202.                     // Lineへイベント送付
  203.                     _lt('send', 'cv', {
  204.                         type: 'ce_show_cart'
  205.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  206.                 }
  207.             ";
  208.         }
  209.         // line 100
  210.         echo "        });
  211.     </script>
  212. ";
  213.         
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215.         
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  217.     }
  218.     // line 108
  219.     public function block_stylesheet($context, array $blocks = [])
  220.     {
  221.         $macros $this->macros;
  222.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  223.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  224.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  225.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  226.         // line 109
  227.         echo "    <style>
  228.     .non_product {
  229.         margin-top: 24px;
  230.         text-align: center;
  231.         font-size: 14px;
  232.         margin-bottom: 24px;
  233.     }
  234.     .non_product_continue {
  235.         margin-bottom: 0px;
  236.         border-radius: 6px;
  237.         border: solid 1px #CCCCCC;
  238.         background-color: unset;
  239.         color: #525263;
  240.         font-weight: 600;
  241.         text-align: center;
  242.         cursor: pointer;
  243.         font-size: 14px;
  244.         padding: 10px 16px;
  245.         text-decoration: none;
  246.         display: block;
  247.         height: 56px;
  248.         line-height: 56px;
  249.         padding-top: 0;
  250.         padding-bottom: 0;
  251.     }
  252.     .ec-cartRole img.minus_btn_img {
  253.         width: 32px;
  254.         height: 32px;
  255.     }
  256.     .ec-cartRole img.plus_btn_img {
  257.         width: 32px;
  258.         height: 32px;
  259.     }
  260.     .ec-cartRole .quantity {
  261.         font-size: 18px;
  262.         border-bottom: solid 2px;
  263.         width: 58px;
  264.         text-align: center;
  265.         font-weight: bold;
  266.         margin-left: 8px;
  267.         margin-right: 8px;
  268.    }
  269.     .ec-cartRow__container {
  270.         display: flex;
  271.         align-items: flex-start;
  272.     }
  273.     .ec-cart-img {
  274.         margin-right: 10px;
  275.         height: 60px;
  276.     }
  277.     .ec-cartRow__unitPrice {
  278.         font-size: 14px;
  279.     }
  280.     .ec-cart-pro-info a {
  281.         font-size: 14px;
  282.         color: #1F9FCB;
  283.         font-weight: bold;
  284.     }
  285.     .separater {
  286.         background-color: #F5F5F5;
  287.         width: 100%;
  288.     }
  289.     .ec-alert-warning .ec-alert-warning__icon img {
  290.         display: inline-block;
  291.         width: 16px;
  292.         height: 16px;
  293.     }
  294.     .ec-cartRole .ec-cartRole__error .ec-alert-warning {
  295.         max-width: 100%;
  296.         display: flex;
  297.     }
  298.     .ec-alert-warning .ec-alert-warning__text {
  299.         color: #DE5D50;
  300.         font-size: 13px;
  301.         text-align: left;
  302.         font-weight: normal;
  303.         margin-top: 4px;
  304.         width: 100%;
  305.     }
  306.     .ec-alert-warning {
  307.         margin-bottom: 24px;
  308.         background: #FFF;
  309.         border-radius: 6px;
  310.         border: solid 1px #DE5D50;
  311.         text-align: left;
  312.         display: flex;
  313.         margin-right: 20px;
  314.         margin-left: 20px;
  315.         width: auto;
  316.     }
  317.     ";
  318.         // line 215
  319.         echo "    @media screen and (min-width: 1025px) {
  320.         .ec-cartRole__error {
  321.             margin: 0 auto;
  322.             padding-left: 20px;
  323.             padding-right: 20px;
  324.             max-width: 1130px;
  325.         }
  326.         hr:not([size]) {
  327.             height: 1px;
  328.             background-color: #ddd;
  329.             opacity: 1;
  330.         }
  331.         .separater {
  332.             background-color: #DDDDDD;
  333.         }
  334.         .ec-cartRow__amountUpDown {
  335.             padding-left: 145px;
  336.         }
  337.         .ec-cart-pro-info a {
  338.             font-size: 16px;
  339.             color: #1F9FCB;
  340.         }
  341.         .ec-cart-img img {
  342.             width: 130px;
  343.             height: 105px;
  344.             max-width: 130px;
  345.             margin-right: 15px;
  346.             border-radius: 4px;
  347.         }
  348.         #form_cart_frame {
  349.             display: flex;
  350.             justify-content: space-around;
  351.         }
  352.         .ec-cartRole .ec-cartRole__cart {
  353.             padding: 0px; width: 50%; margin-left: 0px; margin-right: 100px;
  354.         }
  355.         .is_pc {
  356.             display: block;
  357.         }
  358.         .is_sp {
  359.             display: none;
  360.         }
  361.     }
  362.     ";
  363.         // line 269
  364.         echo "    @media screen and (max-width: 1024px) {
  365.         hr:not([size]) {
  366.             height: 8px;
  367.             background-color: #f5f5f5;
  368.             opacity: 1;
  369.         }
  370.         .separater {
  371.             background-color: #DDDDDD;
  372.         }
  373.         .ec-cart-img {
  374.             margin-right: 10px; min-width: 74px;
  375.         }
  376.         .ec-cart-img img {
  377.             width: 74px;
  378.             height: 60px;
  379.             border-radius: 4px;
  380.         }
  381.         .is_pc {
  382.             display: none;
  383.         }
  384.         .is_sp {
  385.             display: block;
  386.         }
  387.     }
  388.     </style>
  389. ";
  390.         
  391.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  392.         
  393.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  394.     }
  395.     // line 301
  396.     public function block_main($context, array $blocks = [])
  397.     {
  398.         $macros $this->macros;
  399.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  400.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  401.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  402.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  403.         // line 302
  404.         echo "
  405.     <div class=\"ec-role\">
  406.         <div class=\"ec-pageHeader\">
  407.             <h1 style=\"border-top: none; padding: 12px 0 12px; margin-bottom: 8px;\">";
  408.         // line 305
  409.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カート"), "html"nulltrue);
  410.         echo "</h1>
  411.         </div>
  412.     </div>
  413.     ";
  414.         // line 309
  415.         $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.'309$this->source); })()), "session", [], "any"falsefalsetrue309), "flashbag", [], "any"falsefalsetrue309), "get", [=> "eccube.front.request.product"], "method"falsefalsetrue309);
  416.         // line 310
  417.         echo "
  418.     ";
  419.         // line 311
  420.         $context['_parent'] = $context;
  421.         $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.'311$this->source); })()), "session", [], "any"falsefalsetrue311), "flashbag", [], "any"falsefalsetrue311), "get", [=> "eccube.front.request.error"], "method"falsefalsetrue311));
  422.         $context['loop'] = [
  423.           'parent' => $context['_parent'],
  424.           'index0' => 0,
  425.           'index'  => 1,
  426.           'first'  => true,
  427.         ];
  428.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  429.             $length count($context['_seq']);
  430.             $context['loop']['revindex0'] = $length 1;
  431.             $context['loop']['revindex'] = $length;
  432.             $context['loop']['length'] = $length;
  433.             $context['loop']['last'] = === $length;
  434.         }
  435.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  436.             // line 312
  437.             echo "        ";
  438.             $context["idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue312);
  439.             // line 313
  440.             echo "        <div class=\"ec-cartRole__error\">
  441.             <div class=\"ec-alert-warning\">
  442.                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  443.             // line 315
  444.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/alert_icon.png""user_data"), "html"nulltrue);
  445.             echo "\"></div>
  446.                 <div class=\"ec-alert-warning__text\">
  447.                     ";
  448.             // line 317
  449.             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.'317$this->source); })()), [], "array"truetruetrue317)) {
  450.                 // line 318
  451.                 echo "                        ";
  452.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 318$this->source), ["%product%" => twig_get_attribute($this->env$this->source, (isset($context["productStr"]) || array_key_exists("productStr"$context) ? $context["productStr"] : (function () { throw new RuntimeError('Variable "productStr" does not exist.'318$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'318$this->source); })()), [], "array"falsefalsetrue318)]), "html"nulltrue));
  453.                 echo "
  454.                     ";
  455.             } else {
  456.                 // line 320
  457.                 echo "                        ";
  458.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 320$this->source)), "html"nulltrue));
  459.                 echo "
  460.                     ";
  461.             }
  462.             // line 322
  463.             echo "                </div>
  464.             </div>
  465.         </div>
  466.     ";
  467.             ++$context['loop']['index0'];
  468.             ++$context['loop']['index'];
  469.             $context['loop']['first'] = false;
  470.             if (isset($context['loop']['length'])) {
  471.                 --$context['loop']['revindex0'];
  472.                 --$context['loop']['revindex'];
  473.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  474.             }
  475.         }
  476.         $_parent $context['_parent'];
  477.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  478.         $context array_intersect_key($context$_parent) + $_parent;
  479.         // line 326
  480.         echo "    ";
  481.         $context['_parent'] = $context;
  482.         $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.'326$this->source); })()), "session", [], "any"falsefalsetrue326), "flashbag", [], "any"falsefalsetrue326), "get", [=> "eccube.front.cart.error"], "method"falsefalsetrue326));
  483.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  484.             // line 327
  485.             echo "        <div class=\"ec-cartRole__error\">
  486.             <div class=\"ec-alert-warning\">
  487.                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  488.             // line 329
  489.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/alert_icon.png""user_data"), "html"nulltrue);
  490.             echo "\"></div>
  491.                 <div class=\"ec-alert-warning__text\">
  492.                     ";
  493.             // line 331
  494.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 331$this->source)), "html"nulltrue));
  495.             echo "
  496.                 </div>
  497.             </div>
  498.         </div>
  499.     ";
  500.         }
  501.         $_parent $context['_parent'];
  502.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  503.         $context array_intersect_key($context$_parent) + $_parent;
  504.         // line 336
  505.         echo "
  506.     <div class=\"ec-cartRole\" style=\"padding: 0px; display: block;\">
  507.         ";
  508.         // line 339
  509.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'339$this->source); })()) > 0)) {
  510.             // line 340
  511.             echo "            ";
  512.             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.'340$this->source); })())) > 1)) {
  513.                 // line 341
  514.                 echo "                <div class=\"ec-cartRole__error\">
  515.                     <div class=\"ec-alert-warning\">
  516.                         <div class=\"ec-alert-warning__text\">
  517.                             ";
  518.                 // line 344
  519.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html"nulltrue));
  520.                 echo "
  521.                         </div>
  522.                     </div>
  523.                 </div>
  524.             ";
  525.             }
  526.             // line 349
  527.             echo "
  528.             <form name=\"form\" id=\"form_cart\" method=\"post\" action=\"";
  529.             // line 350
  530.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  531.             echo "\">
  532.                 ";
  533.             // line 351
  534.             $context['_parent'] = $context;
  535.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'351$this->source); })()));
  536.             $context['loop'] = [
  537.               'parent' => $context['_parent'],
  538.               'index0' => 0,
  539.               'index'  => 1,
  540.               'first'  => true,
  541.             ];
  542.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  543.                 $length count($context['_seq']);
  544.                 $context['loop']['revindex0'] = $length 1;
  545.                 $context['loop']['revindex'] = $length;
  546.                 $context['loop']['length'] = $length;
  547.                 $context['loop']['last'] = === $length;
  548.             }
  549.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  550.                 // line 352
  551.                 echo "                    ";
  552.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue352);
  553.                 // line 353
  554.                 echo "                    ";
  555.                 $context['_parent'] = $context;
  556.                 $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.'353$this->source); })()), "session", [], "any"falsefalsetrue353), "flashbag", [], "any"falsefalsetrue353), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'353$this->source); })())) . ".request.error")], "method"falsefalsetrue353));
  557.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  558.                     // line 354
  559.                     echo "                    <div class=\"ec-cartRole__error\">
  560.                         <div class=\"ec-alert-warning\">
  561.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  562.                     // line 356
  563.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/alert_icon.png""user_data"), "html"nulltrue);
  564.                     echo "\"></div>
  565.                             <div class=\"ec-alert-warning__text\">
  566.                                 ";
  567.                     // line 358
  568.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 358$this->source)), "html"nulltrue));
  569.                     echo "
  570.                             </div>
  571.                         </div>
  572.                     </div>
  573.                     ";
  574.                 }
  575.                 $_parent $context['_parent'];
  576.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  577.                 $context array_intersect_key($context$_parent) + $_parent;
  578.                 // line 363
  579.                 echo "
  580.                 <div id=\"form_cart_frame\">
  581.                     <div class=\"ec-cartRole__cart\" style=\"\">
  582.                         <div class=\"\">
  583.                             ";
  584.                 // line 367
  585.                 $context['_parent'] = $context;
  586.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue367));
  587.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  588.                     // line 368
  589.                     echo "                                ";
  590.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue368);
  591.                     // line 369
  592.                     echo "                                ";
  593.                     $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.'369$this->source); })()), "Product", [], "any"falsefalsetrue369);
  594.                     // line 370
  595.                     echo "                                <div style=\"padding-right: 16px; padding-left: 16px;\">
  596.                                     <div style=\"margin-top: 20px;\">
  597.                                         <div class=\"ec-cartRow__container\" style=\"display: flex; align-items: flex-start;\">
  598.                                             <div class=\"ec-cart-img\" style=\"\">
  599.                                                 <a target=\"_blank\" href=\"";
  600.                     // line 374
  601.                     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.'374$this->source); })()), "id", [], "any"falsefalsetrue374)]), "html"nulltrue);
  602.                     echo "\">
  603.                                                     <img src=\"";
  604.                     // line 375
  605.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'375$this->source); })()), "MainListImage", [], "any"falsefalsetrue375), 375$this->source)), "save_image"), "html"nulltrue);
  606.                     echo "\" alt=\"";
  607.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'375$this->source); })()), "name", [], "any"falsefalsetrue375), 375$this->source), "html"nulltrue);
  608.                     echo "\"/>
  609.                                                 </a>
  610.                                             </div>
  611.                                             <div class=\"ec-cart-pro-info\">
  612.                                                 <div class=\"ec-cartRow__name\" style=\"line-height: 1.2;  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;\">
  613.                                                     <a target=\"_blank\" style=\"\" href=\"";
  614.                     // line 380
  615.                     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.'380$this->source); })()), "id", [], "any"falsefalsetrue380)]), "html"nulltrue);
  616.                     echo "\">
  617.                                                         ";
  618.                     // line 381
  619.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'381$this->source); })()), "name", [], "any"falsefalsetrue381), 381$this->source), "html"nulltrue);
  620.                     echo "
  621.                                                     </a>
  622.                                                 </div>
  623.                                                 <div class=\"ec-cartRow__unitPrice\" style=\"margin-top: 5px;\">";
  624.                     // line 384
  625.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "price", [], "any"falsefalsetrue384), 384$this->source)), "html"nulltrue);
  626.                     echo "円
  627.                                                 ";
  628.                     // line 385
  629.                     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.'385$this->source); })()), "standard_text", [], "any"falsefalsetrue385)) {
  630.                         echo "(";
  631.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'385$this->source); })()), "standard_text", [], "any"falsefalsetrue385), 385$this->source), "html"nulltrue);
  632.                         echo ")";
  633.                     }
  634.                     // line 386
  635.                     echo "                                                </div>
  636.                                             </div>
  637.                                         </div>
  638.                                     </div>
  639.                                     <div style=\"display: flex; margin-top: 8px; 
  640.                                     ";
  641.                     // line 392
  642.                     if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue392), "Product", [], "any"falsefalsetrue392), "is_recipe_book", [], "any"falsefalsetrue392)) {
  643.                         echo 
  644.                                         justify-content: space-between; 
  645.                                     ";
  646.                     } else {
  647.                         // line 395
  648.                         echo "                                        justify-content: end; 
  649.                                     ";
  650.                     }
  651.                     // line 397
  652.                     echo "                                    align-items: flex-end;\">
  653.                                         ";
  654.                     // line 399
  655.                     echo "                                        ";
  656.                     if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue399), "Product", [], "any"falsefalsetrue399), "is_recipe_book", [], "any"falsefalsetrue399)) {
  657.                         // line 400
  658.                         echo "                                        <div class=\"ec-cartRow__amountUpDown\" style=\"display: flex;\">
  659.                                             ";
  660.                         // line 401
  661.                         if ((twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue401) > 1)) {
  662.                             // line 402
  663.                             echo "                                                <a class=\"plus_btn\" href=\"";
  664.                             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.'402$this->source); })()), "id", [], "any"falsefalsetrue402)]), "html"nulltrue);
  665.                             echo "\" ";
  666.                             echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  667.                             echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  668.                                                     <span class=\"ec-cartRow__amountDownButton__icon\">
  669.                                                         <img src=\"";
  670.                             // line 404
  671.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/minus_btn.png""user_data"), "html"nulltrue);
  672.                             echo "\" alt=\"reduce\" class=\"minus_btn_img\">
  673.                                                     </span>
  674.                                                 </a>
  675.                                             ";
  676.                         } else {
  677.                             // line 408
  678.                             echo "                                                <div class=\"ec-cartRow__amountDownButtonDisabled\">
  679.                                                     <span class=\"ec-cartRow__amountDownButton__icon\">
  680.                                                         <img src=\"";
  681.                             // line 410
  682.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/minus_btn_disabled.png""user_data"), "html"nulltrue);
  683.                             echo "\" alt=\"reduce\" class=\"minus_btn_img\">
  684.                                                     </span>
  685.                                                 </div>
  686.                                             ";
  687.                         }
  688.                         // line 414
  689.                         echo "                                            <div class=\"quantity\">";
  690.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue414), 414$this->source)), "html"nulltrue);
  691.                         echo "</div>
  692.                                             <a href=\"";
  693.                         // line 416
  694.                         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.'416$this->source); })()), "id", [], "any"falsefalsetrue416)]), "html"nulltrue);
  695.                         echo "\" ";
  696.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  697.                         echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  698.                                                 <span class=\"ec-cartRow__amountUpButton__icon\">
  699.                                                     <img src=\"";
  700.                         // line 418
  701.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/plus_btn.png""user_data"), "html"nulltrue);
  702.                         echo "\" alt=\"increase\" class=\"plus_btn_img\">
  703.                                                 </span>
  704.                                             </a>
  705.                                         </div>
  706.                                         ";
  707.                     }
  708.                     // line 423
  709.                     echo "                                        <div class=\"ec-cartRow__sutbtotalSP\">
  710.                                             <span style=\"font-size: 14px;\">小計</span>
  711.                                             <span style=\"font-size: 20px; font-weight: bold;\">";
  712.                     // line 425
  713.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsetrue425), 425$this->source)), "html"nulltrue);
  714.                     echo "</span>
  715.                                             <span style=\"font-size: 14px;\">円</span>
  716.                                             <span style=\"font-size: 14px;\">(税込)</span>
  717.                                         </div>
  718.                                     </div>
  719.                                     <div style=\"text-align: right; margin-top: 14px;\">
  720.                                         ";
  721.                     // line 431
  722.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  723.                         // line 432
  724.                         echo "                                            <a href=\"";
  725.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["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.'432$this->source); })()), "id", [], "any"falsefalsetrue432)]), "html"nulltrue);
  726.                         echo "\" class=\"ec-icon\" data-method=\"post\">
  727.                                                 <span style=\"font-size: 14px; text-decoration: underline; color: #525263; margin-right: 20px;\">お気に入りに追加</span>
  728.                                             </a>
  729.                                         ";
  730.                     }
  731.                     // line 436
  732.                     echo "                                        <a href=\"";
  733.                     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.'436$this->source); })()), "id", [], "any"falsefalsetrue436)]), "html"nulltrue);
  734.                     echo "\" ";
  735.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  736.                     echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  737.                                             <span style=\"font-size: 14px; text-decoration: underline; color: #525263;\">削除</span>
  738.                                         </a>
  739.                                     </div>
  740.                                 </div>
  741.                                 <hr class=\"separater\" style=\"\">
  742.                             ";
  743.                 }
  744.                 $_parent $context['_parent'];
  745.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  746.                 $context array_intersect_key($context$_parent) + $_parent;
  747.                 // line 443
  748.                 echo "                        </div>
  749.                     </div>
  750.                     <div class=\"ec-cartRole__actions\" style=\"padding-right: 16px; padding-left: 16px; margin-right: 0px; width: 375px;\">
  751.                         <div style=\"position: sticky; top: 50px;\">
  752.                             <div class=\"ec-cartRole__total\" style=\"display: flex; justify-content: space-between; align-items: center; height: 36px; margin: 16px 0px; padding: 0px;\">
  753.                                 <span style=\"font-size: 18px; font-weight: bold;\">
  754.                                     合計金額<span style=\"font-size: 14px; font-weight: normal;\">(";
  755.                 // line 449
  756.                 echo twig_escape_filter($this->envtwig_length_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue449), 449$this->source)), "html"nulltrue);
  757.                 echo "商品)</span>
  758.                                 </span>
  759.                                 <span class=\"ec-cartRole__totalAmount\" style=\"font-size: 24px; font-weight: bold;\">
  760.                                     ";
  761.                 // line 452
  762.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Cart"], "totalPrice", [], "any"falsefalsetrue452), 452$this->source)), "html"nulltrue);
  763.                 echo "
  764.                                     <span style=\"font-size: 14px; font-weight: bold;\">円(税込)</span>
  765.                                 </span>
  766.                             </div>
  767.                             ";
  768.                 // line 458
  769.                 echo "                            ";
  770.                 if ((array_key_exists("isShowCouponCode"$context) && (isset($context["isShowCouponCode"]) || array_key_exists("isShowCouponCode"$context) ? $context["isShowCouponCode"] : (function () { throw new RuntimeError('Variable "isShowCouponCode" does not exist.'458$this->source); })()))) {
  771.                     // line 459
  772.                     echo "                                <div class=\"\" style=\"margin: auto;\">
  773.                                     <img src=\"";
  774.                     // line 460
  775.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/has_3000_coupon_cart.png""user_data"), "html"nulltrue);
  776.                     echo "\" style=\"padding: 0px 10px;\">
  777.                                 </div>
  778.                             ";
  779.                 }
  780.                 // line 463
  781.                 echo "
  782.                             <a class=\"ec-blockBtn--action\" style=\"max-width: 343px; margin: auto; background-color: #DE5D50; border-color: #DE5D50;\" href=\"";
  783.                 // line 464
  784.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping_nonmember");
  785.                 echo "\">";
  786.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文手続きへ"), "html"nulltrue);
  787.                 echo "</a>
  788.                             ";
  789.                 // line 465
  790.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue465)) {
  791.                     // line 466
  792.                     echo "                                <div style=\"text-align: center; margin-bottom: 16px; margin-top: 16px; line-height: 39px;\">
  793.                                     <a style=\"color: #1F9FCB;\" href=\"";
  794.                     // line 467
  795.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  796.                     echo "\">";
  797.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  798.                     echo "</a>
  799.                                 </div>
  800.                             ";
  801.                 }
  802.                 // line 470
  803.                 echo "                        </div>
  804.                     </div>
  805.                 ";
  806.                 ++$context['loop']['index0'];
  807.                 ++$context['loop']['index'];
  808.                 $context['loop']['first'] = false;
  809.                 if (isset($context['loop']['length'])) {
  810.                     --$context['loop']['revindex0'];
  811.                     --$context['loop']['revindex'];
  812.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  813.                 }
  814.             }
  815.             $_parent $context['_parent'];
  816.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  817.             $context array_intersect_key($context$_parent) + $_parent;
  818.             // line 473
  819.             echo "                </div>
  820.             </form>
  821.         ";
  822.         } else {
  823.             // line 476
  824.             echo "            ";
  825.             $context['_parent'] = $context;
  826.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'476$this->source); })()));
  827.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  828.                 // line 477
  829.                 echo "                ";
  830.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue477);
  831.                 // line 478
  832.                 echo "                ";
  833.                 $context['_parent'] = $context;
  834.                 $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.'478$this->source); })()), "session", [], "any"falsefalsetrue478), "flashbag", [], "any"falsefalsetrue478), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'478$this->source); })())) . ".request.error")], "method"falsefalsetrue478));
  835.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  836.                     // line 479
  837.                     echo "                    <div class=\"ec-cartRole__error\">
  838.                         <div class=\"ec-alert-warning\">
  839.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  840.                     // line 481
  841.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  842.                     echo "\"></div>
  843.                             <div class=\"ec-alert-warning__text\">
  844.                                 ";
  845.                     // line 483
  846.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 483$this->source)), "html"nulltrue));
  847.                     echo "
  848.                             </div>
  849.                         </div>
  850.                     </div>
  851.                 ";
  852.                 }
  853.                 $_parent $context['_parent'];
  854.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  855.                 $context array_intersect_key($context$_parent) + $_parent;
  856.                 // line 488
  857.                 echo "            ";
  858.             }
  859.             $_parent $context['_parent'];
  860.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  861.             $context array_intersect_key($context$_parent) + $_parent;
  862.             // line 489
  863.             echo "            <div class=\"ec-role\">
  864.                 <div class=\"ec-off3Grid\">
  865.                     <div class=\"ec-off3Grid__cell\">
  866.                         <div class=\"non_product\">";
  867.             // line 492
  868.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに商品がありません。"), "html"nulltrue);
  869.             echo "</div>
  870.                         <div style=\"margin-bottom: 24px;\">
  871.                             <a class=\"non_product_continue\" href=\"";
  872.             // line 494
  873.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  874.             echo "\">";
  875.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  876.             echo "</a>
  877.                         </div>
  878.                     </div>
  879.                 </div>
  880.             </div>
  881.         ";
  882.         }
  883.         // line 500
  884.         echo "    </div>
  885. ";
  886.         
  887.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  888.         
  889.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  890.     }
  891.     public function getTemplateName()
  892.     {
  893.         return "Cart/index.twig";
  894.     }
  895.     public function isTraitable()
  896.     {
  897.         return false;
  898.     }
  899.     public function getDebugInfo()
  900.     {
  901.         return array (  948 => 500,  937 => 494,  932 => 492,  927 => 489,  921 => 488,  910 => 483,  905 => 481,  901 => 479,  896 => 478,  893 => 477,  888 => 476,  883 => 473,  867 => 470,  859 => 467,  856 => 466,  854 => 465,  848 => 464,  845 => 463,  839 => 460,  836 => 459,  833 => 458,  825 => 452,  819 => 449,  811 => 443,  795 => 436,  787 => 432,  785 => 431,  776 => 425,  772 => 423,  764 => 418,  757 => 416,  751 => 414,  744 => 410,  740 => 408,  733 => 404,  725 => 402,  723 => 401,  720 => 400,  717 => 399,  714 => 397,  710 => 395,  704 => 392,  696 => 386,  690 => 385,  686 => 384,  680 => 381,  676 => 380,  666 => 375,  662 => 374,  656 => 370,  653 => 369,  650 => 368,  646 => 367,  640 => 363,  629 => 358,  624 => 356,  620 => 354,  615 => 353,  612 => 352,  595 => 351,  591 => 350,  588 => 349,  580 => 344,  575 => 341,  572 => 340,  570 => 339,  565 => 336,  554 => 331,  549 => 329,  545 => 327,  540 => 326,  523 => 322,  517 => 320,  511 => 318,  509 => 317,  504 => 315,  500 => 313,  497 => 312,  480 => 311,  477 => 310,  475 => 309,  468 => 305,  463 => 302,  453 => 301,  413 => 269,  358 => 215,  251 => 109,  241 => 108,  229 => 100,  212 => 86,  163 => 39,  154 => 37,  145 => 34,  141 => 33,  137 => 32,  133 => 31,  129 => 29,  126 => 28,  123 => 27,  118 => 26,  114 => 25,  108 => 21,  106 => 20,  102 => 18,  99 => 17,  96 => 16,  94 => 15,  91 => 14,  89 => 13,  86 => 12,  82 => 10,  80 => 9,  75 => 6,  65 => 5,  54 => 104,  52 => 106,  39 => 104,);
  902.     }
  903.     public function getSourceContext()
  904.     {
  905.         return new Source("{#
  906. This file is part of EC-CUBE
  907. カスタマイズTwig
  908. #}
  909. {% block javascript %}
  910.     <script>
  911.         \$(function() {
  912.             {% if favorites_product_id is not empty %}
  913.                 alert(\"お気に入りに追加しました。\");
  914.             {% endif %}
  915.             {% set current_domain = app.request.getHost() %}
  916.             {% set is_prod = 'web-order.shikomel.com' in current_domain %}
  917.             {% set is_stg = 'web-order-stg.shikomel.com' in current_domain %}
  918.             {% set custom_customer_id = is_granted('ROLE_USER') ? app.user.id:'' %}
  919.             // カート表示イベントの送付
  920.             {% if is_prod %}
  921.                 let cartData = [];
  922.                 let totalPrice = 0;
  923.                 {% for Cart in Carts %}
  924.                     {% for CartItem in Cart.CartItems %}
  925.                         {% set ProductClass = CartItem.ProductClass %}
  926.                         {% set Product = ProductClass.Product %}
  927.                         cartData.push({
  928.                             id: \"{{ Product.id }}\",
  929.                             name: \"{{ Product.name }}\",
  930.                             price: \"{{ CartItem.total_price }}\",
  931.                             quantity: {{ CartItem.quantity|number_format }},
  932.                         });
  933.                     {% endfor %}
  934.                     totalPrice = {{ Cart.totalPrice }};
  935.                 {% endfor %}
  936.                 if (cartData.length > 0) {
  937.                     fbq('track', 'InitiateCheckout', {
  938.                         content_type: \"CartInfo\",
  939.                         content_ids: cartData.map(item => item.id),
  940.                         content_name: cartData.map(item => item.name).join(\", \"),
  941.                         contents: cartData.map(item => ({
  942.                             id: item.id,
  943.                             name: item.name,
  944.                             quantity: item.quantity,
  945.                             price: item.price
  946.                         })),
  947.                         currency: \"JPY\",
  948.                         num_items: cartData.reduce((total, item) => total + item.quantity, 0),
  949.                         value: 55
  950.                     });
  951.                     // Metaへイベント送付
  952.                     fbq('trackCustom', 'ce_show_cart', {
  953.                         content_type: \"CartInfo\",
  954.                         content_ids: cartData.map(item => item.id),
  955.                         content_name: cartData.map(item => item.name).join(\", \"),
  956.                         contents: cartData.map(item => ({
  957.                             id: item.id,
  958.                             name: item.name,
  959.                             quantity: item.quantity,
  960.                             price: item.price
  961.                         })),
  962.                         currency: \"JPY\",
  963.                         num_items: cartData.reduce((total, item) => total + item.quantity, 0),
  964.                         value: 55
  965.                     });
  966.                     // GAへイベント送付
  967.                     window.dataLayer.push({
  968.                         event: 'ce_show_cart',
  969.                         custom_event_name: 'ce_show_cart',
  970.                         custom_contents: cartData.map(item => ({
  971.                             id: item.id,
  972.                             name: item.name,
  973.                             quantity: item.quantity,
  974.                             price: item.price
  975.                         })),
  976.                         custom_content_ids: cartData.map(item => item.id),
  977.                         custom_content_names: cartData.map(item => item.name).join(\", \"),
  978.                         custom_num_item: cartData.reduce((total, item) => total + item.quantity, 0),
  979.                         custom_total_price: totalPrice,
  980.                         custom_customer_id: '{{ custom_customer_id }}',
  981.                         custom_user_agent: \$(\"#user_agent\").val(),
  982.                         custom_is_ig: \$(\"#is_ig\").val(),
  983.                         custom_is_line: \$(\"#is_line\").val(),
  984.                         custom_referer: \$(\"#referer\").val(),
  985.                         custom_real_ip: \$(\"#real_ip\").val(),
  986.                     });
  987.                     // Lineへイベント送付
  988.                     _lt('send', 'cv', {
  989.                         type: 'ce_show_cart'
  990.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  991.                 }
  992.             {% endif %}
  993.         });
  994.     </script>
  995. {% endblock %}
  996. {% extends 'default_frame.twig' %}
  997. {% set body_class = 'cart_page' %}
  998. {% block stylesheet %}
  999.     <style>
  1000.     .non_product {
  1001.         margin-top: 24px;
  1002.         text-align: center;
  1003.         font-size: 14px;
  1004.         margin-bottom: 24px;
  1005.     }
  1006.     .non_product_continue {
  1007.         margin-bottom: 0px;
  1008.         border-radius: 6px;
  1009.         border: solid 1px #CCCCCC;
  1010.         background-color: unset;
  1011.         color: #525263;
  1012.         font-weight: 600;
  1013.         text-align: center;
  1014.         cursor: pointer;
  1015.         font-size: 14px;
  1016.         padding: 10px 16px;
  1017.         text-decoration: none;
  1018.         display: block;
  1019.         height: 56px;
  1020.         line-height: 56px;
  1021.         padding-top: 0;
  1022.         padding-bottom: 0;
  1023.     }
  1024.     .ec-cartRole img.minus_btn_img {
  1025.         width: 32px;
  1026.         height: 32px;
  1027.     }
  1028.     .ec-cartRole img.plus_btn_img {
  1029.         width: 32px;
  1030.         height: 32px;
  1031.     }
  1032.     .ec-cartRole .quantity {
  1033.         font-size: 18px;
  1034.         border-bottom: solid 2px;
  1035.         width: 58px;
  1036.         text-align: center;
  1037.         font-weight: bold;
  1038.         margin-left: 8px;
  1039.         margin-right: 8px;
  1040.    }
  1041.     .ec-cartRow__container {
  1042.         display: flex;
  1043.         align-items: flex-start;
  1044.     }
  1045.     .ec-cart-img {
  1046.         margin-right: 10px;
  1047.         height: 60px;
  1048.     }
  1049.     .ec-cartRow__unitPrice {
  1050.         font-size: 14px;
  1051.     }
  1052.     .ec-cart-pro-info a {
  1053.         font-size: 14px;
  1054.         color: #1F9FCB;
  1055.         font-weight: bold;
  1056.     }
  1057.     .separater {
  1058.         background-color: #F5F5F5;
  1059.         width: 100%;
  1060.     }
  1061.     .ec-alert-warning .ec-alert-warning__icon img {
  1062.         display: inline-block;
  1063.         width: 16px;
  1064.         height: 16px;
  1065.     }
  1066.     .ec-cartRole .ec-cartRole__error .ec-alert-warning {
  1067.         max-width: 100%;
  1068.         display: flex;
  1069.     }
  1070.     .ec-alert-warning .ec-alert-warning__text {
  1071.         color: #DE5D50;
  1072.         font-size: 13px;
  1073.         text-align: left;
  1074.         font-weight: normal;
  1075.         margin-top: 4px;
  1076.         width: 100%;
  1077.     }
  1078.     .ec-alert-warning {
  1079.         margin-bottom: 24px;
  1080.         background: #FFF;
  1081.         border-radius: 6px;
  1082.         border: solid 1px #DE5D50;
  1083.         text-align: left;
  1084.         display: flex;
  1085.         margin-right: 20px;
  1086.         margin-left: 20px;
  1087.         width: auto;
  1088.     }
  1089.     {# PC用スタイル #}
  1090.     @media screen and (min-width: 1025px) {
  1091.         .ec-cartRole__error {
  1092.             margin: 0 auto;
  1093.             padding-left: 20px;
  1094.             padding-right: 20px;
  1095.             max-width: 1130px;
  1096.         }
  1097.         hr:not([size]) {
  1098.             height: 1px;
  1099.             background-color: #ddd;
  1100.             opacity: 1;
  1101.         }
  1102.         .separater {
  1103.             background-color: #DDDDDD;
  1104.         }
  1105.         .ec-cartRow__amountUpDown {
  1106.             padding-left: 145px;
  1107.         }
  1108.         .ec-cart-pro-info a {
  1109.             font-size: 16px;
  1110.             color: #1F9FCB;
  1111.         }
  1112.         .ec-cart-img img {
  1113.             width: 130px;
  1114.             height: 105px;
  1115.             max-width: 130px;
  1116.             margin-right: 15px;
  1117.             border-radius: 4px;
  1118.         }
  1119.         #form_cart_frame {
  1120.             display: flex;
  1121.             justify-content: space-around;
  1122.         }
  1123.         .ec-cartRole .ec-cartRole__cart {
  1124.             padding: 0px; width: 50%; margin-left: 0px; margin-right: 100px;
  1125.         }
  1126.         .is_pc {
  1127.             display: block;
  1128.         }
  1129.         .is_sp {
  1130.             display: none;
  1131.         }
  1132.     }
  1133.     {# スマホ&タブレット用スタイル #}
  1134.     @media screen and (max-width: 1024px) {
  1135.         hr:not([size]) {
  1136.             height: 8px;
  1137.             background-color: #f5f5f5;
  1138.             opacity: 1;
  1139.         }
  1140.         .separater {
  1141.             background-color: #DDDDDD;
  1142.         }
  1143.         .ec-cart-img {
  1144.             margin-right: 10px; min-width: 74px;
  1145.         }
  1146.         .ec-cart-img img {
  1147.             width: 74px;
  1148.             height: 60px;
  1149.             border-radius: 4px;
  1150.         }
  1151.         .is_pc {
  1152.             display: none;
  1153.         }
  1154.         .is_sp {
  1155.             display: block;
  1156.         }
  1157.     }
  1158.     </style>
  1159. {% endblock %}
  1160. {% block main %}
  1161.     <div class=\"ec-role\">
  1162.         <div class=\"ec-pageHeader\">
  1163.             <h1 style=\"border-top: none; padding: 12px 0 12px; margin-bottom: 8px;\">{{ 'カート'|trans }}</h1>
  1164.         </div>
  1165.     </div>
  1166.     {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  1167.     {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  1168.         {% set idx = loop.index0 %}
  1169.         <div class=\"ec-cartRole__error\">
  1170.             <div class=\"ec-alert-warning\">
  1171.                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/img/common/alert_icon.png', 'user_data') }}\"></div>
  1172.                 <div class=\"ec-alert-warning__text\">
  1173.                     {% if productStr[idx] is defined %}
  1174.                         {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  1175.                     {% else %}
  1176.                         {{ error|trans|nl2br }}
  1177.                     {% endif %}
  1178.                 </div>
  1179.             </div>
  1180.         </div>
  1181.     {% endfor %}
  1182.     {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  1183.         <div class=\"ec-cartRole__error\">
  1184.             <div class=\"ec-alert-warning\">
  1185.                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/img/common/alert_icon.png', 'user_data') }}\"></div>
  1186.                 <div class=\"ec-alert-warning__text\">
  1187.                     {{ error|trans|nl2br }}
  1188.                 </div>
  1189.             </div>
  1190.         </div>
  1191.     {% endfor %}
  1192.     <div class=\"ec-cartRole\" style=\"padding: 0px; display: block;\">
  1193.         {% if totalQuantity > 0 %}
  1194.             {% if Carts|length > 1 %}
  1195.                 <div class=\"ec-cartRole__error\">
  1196.                     <div class=\"ec-alert-warning\">
  1197.                         <div class=\"ec-alert-warning__text\">
  1198.                             {{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}
  1199.                         </div>
  1200.                     </div>
  1201.                 </div>
  1202.             {% endif %}
  1203.             <form name=\"form\" id=\"form_cart\" method=\"post\" action=\"{{ url('cart') }}\">
  1204.                 {% for CartIndex,Cart in Carts %}
  1205.                     {% set cartKey = Cart.cart_key %}
  1206.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  1207.                     <div class=\"ec-cartRole__error\">
  1208.                         <div class=\"ec-alert-warning\">
  1209.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/img/common/alert_icon.png', 'user_data') }}\"></div>
  1210.                             <div class=\"ec-alert-warning__text\">
  1211.                                 {{ error|trans|nl2br }}
  1212.                             </div>
  1213.                         </div>
  1214.                     </div>
  1215.                     {% endfor %}
  1216.                 <div id=\"form_cart_frame\">
  1217.                     <div class=\"ec-cartRole__cart\" style=\"\">
  1218.                         <div class=\"\">
  1219.                             {% for CartItem in Cart.CartItems %}
  1220.                                 {% set ProductClass = CartItem.ProductClass %}
  1221.                                 {% set Product = ProductClass.Product %}
  1222.                                 <div style=\"padding-right: 16px; padding-left: 16px;\">
  1223.                                     <div style=\"margin-top: 20px;\">
  1224.                                         <div class=\"ec-cartRow__container\" style=\"display: flex; align-items: flex-start;\">
  1225.                                             <div class=\"ec-cart-img\" style=\"\">
  1226.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  1227.                                                     <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  1228.                                                 </a>
  1229.                                             </div>
  1230.                                             <div class=\"ec-cart-pro-info\">
  1231.                                                 <div class=\"ec-cartRow__name\" style=\"line-height: 1.2;  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;\">
  1232.                                                     <a target=\"_blank\" style=\"\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  1233.                                                         {{ Product.name }}
  1234.                                                     </a>
  1235.                                                 </div>
  1236.                                                 <div class=\"ec-cartRow__unitPrice\" style=\"margin-top: 5px;\">{{ CartItem.price|number_format }}円
  1237.                                                 {% if Product.standard_text %}({{ Product.standard_text }}){% endif %}
  1238.                                                 </div>
  1239.                                             </div>
  1240.                                         </div>
  1241.                                     </div>
  1242.                                     <div style=\"display: flex; margin-top: 8px; 
  1243.                                     {% if not CartItem.ProductClass.Product.is_recipe_book %} 
  1244.                                         justify-content: space-between; 
  1245.                                     {% else %}
  1246.                                         justify-content: end; 
  1247.                                     {% endif %}
  1248.                                     align-items: flex-end;\">
  1249.                                         {# レシピ帖の場合には数量のアップダウンは非表示 #}
  1250.                                         {% if not CartItem.ProductClass.Product.is_recipe_book %}
  1251.                                         <div class=\"ec-cartRow__amountUpDown\" style=\"display: flex;\">
  1252.                                             {% if CartItem.quantity > 1 %}
  1253.                                                 <a class=\"plus_btn\" href=\"{{ url('cart_handle_item', {'operation': 'down', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  1254.                                                     <span class=\"ec-cartRow__amountDownButton__icon\">
  1255.                                                         <img src=\"{{ asset('assets/img/common/minus_btn.png', 'user_data') }}\" alt=\"reduce\" class=\"minus_btn_img\">
  1256.                                                     </span>
  1257.                                                 </a>
  1258.                                             {% else %}
  1259.                                                 <div class=\"ec-cartRow__amountDownButtonDisabled\">
  1260.                                                     <span class=\"ec-cartRow__amountDownButton__icon\">
  1261.                                                         <img src=\"{{ asset('assets/img/common/minus_btn_disabled.png', 'user_data') }}\" alt=\"reduce\" class=\"minus_btn_img\">
  1262.                                                     </span>
  1263.                                                 </div>
  1264.                                             {% endif %}
  1265.                                             <div class=\"quantity\">{{ CartItem.quantity|number_format }}</div>
  1266.                                             <a href=\"{{ url('cart_handle_item', {'operation': 'up', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  1267.                                                 <span class=\"ec-cartRow__amountUpButton__icon\">
  1268.                                                     <img src=\"{{ asset('assets/img/common/plus_btn.png', 'user_data') }}\" alt=\"increase\" class=\"plus_btn_img\">
  1269.                                                 </span>
  1270.                                             </a>
  1271.                                         </div>
  1272.                                         {% endif %}
  1273.                                         <div class=\"ec-cartRow__sutbtotalSP\">
  1274.                                             <span style=\"font-size: 14px;\">小計</span>
  1275.                                             <span style=\"font-size: 20px; font-weight: bold;\">{{ CartItem.total_price|number_format }}</span>
  1276.                                             <span style=\"font-size: 14px;\">円</span>
  1277.                                             <span style=\"font-size: 14px;\">(税込)</span>
  1278.                                         </div>
  1279.                                     </div>
  1280.                                     <div style=\"text-align: right; margin-top: 14px;\">
  1281.                                         {% if is_granted('ROLE_USER') %}
  1282.                                             <a href=\"{{ url('product_add_favorite', {id:Product.id}) }}\" class=\"ec-icon\" data-method=\"post\">
  1283.                                                 <span style=\"font-size: 14px; text-decoration: underline; color: #525263; margin-right: 20px;\">お気に入りに追加</span>
  1284.                                             </a>
  1285.                                         {% endif %}
  1286.                                         <a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  1287.                                             <span style=\"font-size: 14px; text-decoration: underline; color: #525263;\">削除</span>
  1288.                                         </a>
  1289.                                     </div>
  1290.                                 </div>
  1291.                                 <hr class=\"separater\" style=\"\">
  1292.                             {% endfor %}
  1293.                         </div>
  1294.                     </div>
  1295.                     <div class=\"ec-cartRole__actions\" style=\"padding-right: 16px; padding-left: 16px; margin-right: 0px; width: 375px;\">
  1296.                         <div style=\"position: sticky; top: 50px;\">
  1297.                             <div class=\"ec-cartRole__total\" style=\"display: flex; justify-content: space-between; align-items: center; height: 36px; margin: 16px 0px; padding: 0px;\">
  1298.                                 <span style=\"font-size: 18px; font-weight: bold;\">
  1299.                                     合計金額<span style=\"font-size: 14px; font-weight: normal;\">({{ Cart.CartItems|length }}商品)</span>
  1300.                                 </span>
  1301.                                 <span class=\"ec-cartRole__totalAmount\" style=\"font-size: 24px; font-weight: bold;\">
  1302.                                     {{ Cart.totalPrice|number_format }}
  1303.                                     <span style=\"font-size: 14px; font-weight: bold;\">円(税込)</span>
  1304.                                 </span>
  1305.                             </div>
  1306.                             {# PCもSPもクーポンあればバナー表示するように修正 #}
  1307.                             {% if isShowCouponCode is defined and isShowCouponCode %}
  1308.                                 <div class=\"\" style=\"margin: auto;\">
  1309.                                     <img src=\"{{ asset('assets/img/common/has_3000_coupon_cart.png', 'user_data') }}\" style=\"padding: 0px 10px;\">
  1310.                                 </div>
  1311.                             {% endif %}
  1312.                             <a class=\"ec-blockBtn--action\" style=\"max-width: 343px; margin: auto; background-color: #DE5D50; border-color: #DE5D50;\" href=\"{{ url('shopping_nonmember') }}\">{{ 'ご注文手続きへ'|trans }}</a>
  1313.                             {% if loop.last %}
  1314.                                 <div style=\"text-align: center; margin-bottom: 16px; margin-top: 16px; line-height: 39px;\">
  1315.                                     <a style=\"color: #1F9FCB;\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  1316.                                 </div>
  1317.                             {% endif %}
  1318.                         </div>
  1319.                     </div>
  1320.                 {% endfor %}
  1321.                 </div>
  1322.             </form>
  1323.         {% else %}
  1324.             {% for CartIndex,Cart in Carts %}
  1325.                 {% set cartKey = Cart.cart_key %}
  1326.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  1327.                     <div class=\"ec-cartRole__error\">
  1328.                         <div class=\"ec-alert-warning\">
  1329.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1330.                             <div class=\"ec-alert-warning__text\">
  1331.                                 {{ error|trans|nl2br }}
  1332.                             </div>
  1333.                         </div>
  1334.                     </div>
  1335.                 {% endfor %}
  1336.             {% endfor %}
  1337.             <div class=\"ec-role\">
  1338.                 <div class=\"ec-off3Grid\">
  1339.                     <div class=\"ec-off3Grid__cell\">
  1340.                         <div class=\"non_product\">{{ 'カートに商品がありません。'|trans }}</div>
  1341.                         <div style=\"margin-bottom: 24px;\">
  1342.                             <a class=\"non_product_continue\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  1343.                         </div>
  1344.                     </div>
  1345.                 </div>
  1346.             </div>
  1347.         {% endif %}
  1348.     </div>
  1349. {% endblock %}
  1350. ""Cart/index.twig""/home/shikomel/shikomel.com/public_html/web-order-stg.shikomel.com/app/template/default/Cart/index.twig");
  1351.     }
  1352.     
  1353.     public function checkSecurity()
  1354.     {
  1355.         static $tags = array("set" => 106"if" => 9"for" => 25);
  1356.         static $filters = array("escape" => 31"number_format" => 34"trans" => 305"nl2br" => 318"length" => 340"no_image_product" => 375);
  1357.         static $functions = array("is_granted" => 17"asset" => 315"url" => 350"csrf_token_for_anchor" => 402"path" => 467);
  1358.         try {
  1359.             $this->sandbox->checkSecurity(
  1360.                 ['set''if''for'],
  1361.                 ['escape''number_format''trans''nl2br''length''no_image_product'],
  1362.                 ['is_granted''asset''url''csrf_token_for_anchor''path']
  1363.             );
  1364.         } catch (SecurityError $e) {
  1365.             $e->setSourceContext($this->source);
  1366.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1367.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1368.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1369.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1370.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1371.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1372.             }
  1373.             throw $e;
  1374.         }
  1375.     }
  1376. }