var/cache/dev/twig/30/3007921c6df42ec42ea71b9bf58bb9b4.php line 41

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_73f539ef3b12e6226a3470fb8d12d683 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  41.         // line 13
  42.         $context["body_class"] = "cart_page";
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""Cart/index.twig"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 15
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 16
  60.         echo "    <script>
  61.         \$(function() {
  62.             var cnt = \$('.ec-cartRow').length;
  63.             for (let i = 0; i < cnt; i++){
  64.                 // Get the data-prototype explained earlier
  65.                 var prototype = \$('.cartitems').data('prototype');
  66.                 // get the new index
  67.                 var index = \$('.cartitems').data('index');
  68.                 // Replace '__name__' in the prototype's HTML to
  69.                 // instead be a number based on how many items we have
  70.                 var newForm = '<div class=\"mt-3 pb-0 d-flex flex-wrap justify-content-between\"><span>オプションを選択してください。</span><span>オプション小計:<span><span class=\"item_option_price_' + index + '\">¥0</span></span><small>(税込)</small></span></div>';
  71.                 newForm += '<div class=\"mt-2 mb-3 p-3 bg-white cart_option\" id=\"cart_option_' + index + '\">';
  72.                 newForm += prototype.replace(/__name__/g, index);
  73.                 newForm += '<div class=\"d-flex flex-column flex-md-row\"><span class=\"w_120\"></span><span>インサイド石は、刻印がある場合は刻印の直後にセッティングさせていただきます。<br>';
  74.                 newForm += '石の位置の変更をご希望の場合は購入手続き画面のお問い合わせ欄にご記入ください。</span></p>';
  75.                 newForm += '</div>';
  76.                 // increase the index with one for the next item
  77.                 \$('.cartitems').data('index', index + 1);
  78.                 // Display the form in the page before the \"new\" link
  79.                 //\$(this).before(newForm);
  80.                 var add = \".add_option_\" + i;
  81.                 // ID119の商品はオプションを表示しない
  82.                 // 結婚指輪でも婚約指輪でもない場合はオプションを表示しない
  83.                 if (\$(add).hasClass('itemid_119') || \$(add).hasClass('itemcat_0')) {
  84.                     newForm = '<hr><div class=\"d-none\">' + newForm + '</div>';
  85.                 }
  86.                 
  87.                 \$(add).before(newForm);
  88.             }
  89.             
  90.             // 刻印文字数の注意書き追加
  91.             \$('input[id\$=\"engraving_text\"]').each(function () {
  92.                 \$(this).parent().addClass('flex-wrap');
  93.                 \$(this).after('<p class=\"w-100 engraving_text_notice\">刻印できる文字数は最大19文字です。</p>')
  94.             });
  95.             
  96.             // 読み込み時 すでに値があったら表示する
  97.             ";
  98.         // line 54
  99.         $context['_parent'] = $context;
  100.         $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'54$this->source); })()));
  101.         foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  102.             // line 55
  103.             echo "                ";
  104.             $context['_parent'] = $context;
  105.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue55));
  106.             $context['loop'] = [
  107.               'parent' => $context['_parent'],
  108.               'index0' => 0,
  109.               'index'  => 1,
  110.               'first'  => true,
  111.             ];
  112.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  113.                 $length count($context['_seq']);
  114.                 $context['loop']['revindex0'] = $length 1;
  115.                 $context['loop']['revindex'] = $length;
  116.                 $context['loop']['length'] = $length;
  117.                 $context['loop']['last'] = === $length;
  118.             }
  119.             foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  120.                 // line 56
  121.                 echo "                    ";
  122.                 if ((twig_get_attribute($this->env$this->source$context["CartItem"], "engraving", [], "any"falsefalsetrue56) == "あり")) {
  123.                     // line 57
  124.                     echo "                        \$('input[name=\"form[data][' + ";
  125.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue57), 57$this->source), "html"nulltrue);
  126.                     echo " + '][engraving]\"]').val([\"あり\"]);
  127.                         \$('#form_data_' + ";
  128.                     // line 58
  129.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue58), 58$this->source), "html"nulltrue);
  130.                     echo " + ' > div').css('display','flex');
  131.                         \$('#form_data_' + ";
  132.                     // line 59
  133.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue59), 59$this->source), "html"nulltrue);
  134.                     echo " + ' fieldset:nth-child(2)').css('display','flex');
  135.                     ";
  136.                 }
  137.                 // line 61
  138.                 echo "                    ";
  139.                 if ( !(null === twig_get_attribute($this->env$this->source$context["CartItem"], "engraving_font", [], "any"falsefalsetrue61))) {
  140.                     // line 62
  141.                     echo "                        \$('input[name=\"form[data][' + ";
  142.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue62), 62$this->source), "html"nulltrue);
  143.                     echo " + '][engraving_font]\"]').val([\"";
  144.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "engraving_font", [], "any"falsefalsetrue62), 62$this->source), "html"nulltrue);
  145.                     echo "\"]);
  146.                     ";
  147.                 }
  148.                 // line 64
  149.                 echo "                    ";
  150.                 if ( !(null === twig_get_attribute($this->env$this->source$context["CartItem"], "engraving_text", [], "any"falsefalsetrue64))) {
  151.                     // line 65
  152.                     echo "                        \$('input[name=\"form[data][' + ";
  153.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue65), 65$this->source), "html"nulltrue);
  154.                     echo " + '][engraving_text]\"]').val(\"";
  155.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "engraving_text", [], "any"falsefalsetrue65), 65$this->source), "html"nulltrue);
  156.                     echo "\");
  157.                     ";
  158.                 }
  159.                 // line 67
  160.                 echo "                    ";
  161.                 if (((twig_get_attribute($this->env$this->source$context["CartItem"], "stone", [], "any"falsefalsetrue67) != "なし") &&  !(null === twig_get_attribute($this->env$this->source$context["CartItem"], "stone", [], "any"falsefalsetrue67)))) {
  162.                     // line 68
  163.                     echo "                        \$('input[name=\"form[data][' + ";
  164.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue68), 68$this->source), "html"nulltrue);
  165.                     echo " + '][stone]\"]').val([\"";
  166.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "stone", [], "any"falsefalsetrue68), 68$this->source), "html"nulltrue);
  167.                     echo "\"]);
  168.                     ";
  169.                 }
  170.                 // line 70
  171.                 echo "                ";
  172.                 ++$context['loop']['index0'];
  173.                 ++$context['loop']['index'];
  174.                 $context['loop']['first'] = false;
  175.                 if (isset($context['loop']['length'])) {
  176.                     --$context['loop']['revindex0'];
  177.                     --$context['loop']['revindex'];
  178.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  179.                 }
  180.             }
  181.             $_parent $context['_parent'];
  182.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  183.             $context array_intersect_key($context$_parent) + $_parent;
  184.             // line 71
  185.             echo "            ";
  186.         }
  187.         $_parent $context['_parent'];
  188.         unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  189.         $context array_intersect_key($context$_parent) + $_parent;
  190.         // line 72
  191.         echo "            var cnt = \$('.ec-cartRow').length;
  192.             for (let i = 0; i < cnt; i++) {
  193.                 var cart_option = document.getElementById(\"cart_option_\" + i);
  194.                 if (cart_option === null) {
  195.                 } else {
  196.                     if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"あり\") { // 刻印あり
  197.                         \$('#form_data_' + i + ' > div').css('display','flex');
  198.                         \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','flex');
  199.                         if (\$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').val() == null) {
  200.                             \$('.action_btn_wrapper').addClass('not_available');
  201.                             go = false;
  202.                         } else if (!\$('input[name=\"form[data][' + i + '][engraving_text]\"]').val()) {
  203.                             \$('.action_btn_wrapper').addClass('not_available');
  204.                             go = false;
  205.                         }
  206.                     } else if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"なし\") {
  207.                         \$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').prop('checked', false);
  208.                         \$('#form_data_' + i + ' > div').css('display','none');
  209.                         \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','none');
  210.                     }
  211.                 }
  212.             }
  213.             
  214.             checkEngraving();
  215.             calcTotal();
  216.             // cart_key と cart_id をセット
  217.             var cnt = \$('.ec-cartRow').length;
  218.             for (let i = 0; i < cnt; i++) {
  219.                 \$('input[name=\"form[data][' + i + '][cart_key]\"]').val(\$('#ck_0').text()); // cartkey は同じカートなら同じ
  220.                 \$('input[name=\"form[data][' + i + '][cart_item_id]\"]').val(\$('#ciid_' + i).text());
  221.             }
  222.             
  223.             \$('.form-check-input').on('change', function(event) {
  224.                 checkEngraving();
  225.                 calcTotal();
  226.             });
  227.             \$('input[id\$=\"engraving_text\"]').on('keyup', function(event) {
  228.                 let count = \$(this).val().length;
  229.                 if (count > 19){
  230.                     if (!\$(this).parent().prev().hasClass('text_count_message')) {
  231.                         \$(this).parent().before('<p class=\"mb-2 text_count_message text-danger\">※刻印は19文字までです</p>');
  232.                         \$('.action_btn_wrapper').addClass('not_available');
  233.                     }
  234.                 } else {
  235.                     if (\$(this).parent().prev().hasClass('text_count_message')) {
  236.                         \$(this).parent().prev('.text_count_message').remove();
  237.                     }
  238.                 }
  239.             });
  240.             \$('.form-control').on('change', function(event) {
  241.                 checkEngraving();
  242.             });
  243.             
  244.             function checkEngraving() {
  245.                 var cnt = \$('.ec-cartRow').length;
  246.                 var go = true;
  247.                 for (let i = 0; i < cnt; i++) {
  248.                     var cart_option = document.getElementById(\"cart_option_\" + i);
  249.                     if (cart_option === null) {
  250.                     } else {
  251.                         if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"あり\") { // 刻印あり
  252.                             \$('#form_data_' + i + ' > div').css('display','flex');
  253.                             \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','flex');
  254.                             if (\$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').val() == null) {
  255.                                 \$('.action_btn_wrapper').addClass('not_available');
  256.                                 go = false;
  257.                             } else if (!\$('input[name=\"form[data][' + i + '][engraving_text]\"]').val()) {
  258.                                 \$('.action_btn_wrapper').addClass('not_available');
  259.                                 go = false;
  260.                             }
  261.                         } else if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"なし\") {
  262.                             \$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').prop('checked', false);
  263.                             \$('#form_data_' + i + ' > div').css('display','none');
  264.                             \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','none');
  265.                         }
  266.                     }
  267.                 }
  268.                 if (go) {
  269.                     \$('.action_btn_wrapper').removeClass('not_available');
  270.                 }
  271.             }
  272.             
  273.             function calcTotal() {
  274.                 var cnt = \$('.ec-cartRow').length;
  275.                 var option_total = 0;
  276.                 for (let i = 0; i < cnt; i++) {
  277.                     var item_option_price = 0;
  278.                     var cart_option = document.getElementById(\"cart_option_\" + i);
  279.                     if (cart_option === null) {
  280.                     } else {
  281.                         if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"あり\") {
  282.                             //item_option_price += 5500;
  283.                         }
  284.                         switch (\$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').val()) {
  285.                             case \"有料書体1\":
  286.                             case \"有料書体2\":
  287.                             case \"有料書体3\":
  288.                             case \"有料書体4\":
  289.                             case \"有料書体5\":
  290.                             case \"有料書体6\":
  291.                             case \"有料書体7\":
  292.                             case \"有料書体8\":
  293.                             case \"有料書体9\":
  294.                             case \"有料書体10\":
  295.                                 item_option_price += 5500;
  296.                                 break;
  297.                             default:
  298.                         }
  299.                         switch (\$('input[name=\"form[data][' + i + '][stone]\"]:checked').val()) {
  300.                             case \"なし\":
  301.                                 break;
  302.                             default:
  303.                                 // 一律料金?
  304.                                 item_option_price += 5500;
  305.                         }
  306.                     }
  307.                     var item_option_total_price = String(item_option_price).replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, '\$1,');
  308.                     \$('.item_option_price_' + i).text(\"¥\" + item_option_total_price);
  309.                     \$('input[name=\"form[data][' + i + '][option_total_price]\"]').val(item_option_price);
  310.                     option_total += item_option_price; 
  311.                 }
  312.                 var option_total_price = String(option_total).replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, '\$1,');
  313.                 \$('#option_total').text(\"¥\" + option_total_price);
  314.                 
  315.                 // 総合計更新
  316.                 var total_price = \$('#price_total_tmp').text();
  317.                 total_price = total_price * 1; //number
  318.                 total_price += option_total;
  319.                 var cart_total_price = String(total_price).replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, '\$1,');
  320.                 \$('#cart_total').text(\"¥\" + cart_total_price);
  321.             }
  322.             
  323.             \$('.ec-blockBtn--action').on('click', function(event) { 
  324.                 calcTotal();
  325.             });
  326.         });
  327.     </script>
  328. ";
  329.         
  330.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  331.         
  332.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  333.     }
  334.     // line 211
  335.     public function block_main($context, array $blocks = [])
  336.     {
  337.         $macros $this->macros;
  338.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  339.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  340.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  341.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  342.         // line 212
  343.         echo "    <div class=\"ec-role\">
  344.         <div class=\"ec-pageHeader\">
  345.             <h1>";
  346.         // line 214
  347.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショッピングカート"), "html"nulltrue);
  348.         echo "</h1>
  349.         </div>
  350.     </div>
  351.     <div class=\"ec-cartRole\">
  352.         <div class=\"ec-cartRole__progress\">
  353.             <ul class=\"ec-progress\">
  354.                 ";
  355.         // line 221
  356.         $context["step"] = 1;
  357.         // line 222
  358.         echo "                <li class=\"ec-progress__item is-complete\">
  359.                     <div class=\"ec-progress__number\">";
  360.         // line 223
  361.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'223$this->source); })()), 223$this->source), "html"nulltrue);
  362.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'223$this->source); })()) + 1);
  363.         // line 224
  364.         echo "                    </div>
  365.                     <div class=\"ec-progress__label\">";
  366.         // line 225
  367.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートの商品"), "html"nulltrue);
  368.         echo "
  369.                     </div>
  370.                 </li>
  371.                 ";
  372.         // line 228
  373.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
  374.             // line 229
  375.             echo "                    <li class=\"ec-progress__item\">
  376.                         <div class=\"ec-progress__number\">";
  377.             // line 230
  378.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'230$this->source); })()), 230$this->source), "html"nulltrue);
  379.             $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'230$this->source); })()) + 1);
  380.             // line 231
  381.             echo "                        </div>
  382.                         <div class=\"ec-progress__label\">";
  383.             // line 232
  384.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お客様情報"), "html"nulltrue);
  385.             echo "
  386.                         </div>
  387.                     </li>
  388.                 ";
  389.         }
  390.         // line 236
  391.         echo "                <li class=\"ec-progress__item\">
  392.                     <div class=\"ec-progress__number\">";
  393.         // line 237
  394.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'237$this->source); })()), 237$this->source), "html"nulltrue);
  395.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'237$this->source); })()) + 1);
  396.         // line 238
  397.         echo "                    </div>
  398.                     <div class=\"ec-progress__label\">";
  399.         // line 239
  400.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文手続き"), "html"nulltrue);
  401.         echo "
  402.                     </div>
  403.                 </li>
  404.                 <li class=\"ec-progress__item\">
  405.                     <div class=\"ec-progress__number\">";
  406.         // line 243
  407.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'243$this->source); })()), 243$this->source), "html"nulltrue);
  408.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'243$this->source); })()) + 1);
  409.         // line 244
  410.         echo "                    </div>
  411.                     <div class=\"ec-progress__label\">";
  412.         // line 245
  413.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文内容確認"), "html"nulltrue);
  414.         echo "
  415.                     </div>
  416.                 </li>
  417.                 <li class=\"ec-progress__item\">
  418.                     <div class=\"ec-progress__number\">";
  419.         // line 249
  420.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'249$this->source); })()), 249$this->source), "html"nulltrue);
  421.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'249$this->source); })()) + 1);
  422.         // line 250
  423.         echo "                    </div>
  424.                     <div class=\"ec-progress__label\">";
  425.         // line 251
  426.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("完了"), "html"nulltrue);
  427.         echo "
  428.                     </div>
  429.                 </li>
  430.             </ul>
  431.         </div>
  432.         ";
  433.         // line 256
  434.         $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.'256$this->source); })()), "session", [], "any"falsefalsetrue256), "flashbag", [], "any"falsefalsetrue256), "get", [=> "eccube.front.request.product"], "method"falsefalsetrue256);
  435.         // line 257
  436.         echo "        ";
  437.         $context['_parent'] = $context;
  438.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'257$this->source); })()), "session", [], "any"falsefalsetrue257), "flashbag", [], "any"falsefalsetrue257), "get", [=> "eccube.front.request.error"], "method"falsefalsetrue257));
  439.         $context['loop'] = [
  440.           'parent' => $context['_parent'],
  441.           'index0' => 0,
  442.           'index'  => 1,
  443.           'first'  => true,
  444.         ];
  445.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  446.             $length count($context['_seq']);
  447.             $context['loop']['revindex0'] = $length 1;
  448.             $context['loop']['revindex'] = $length;
  449.             $context['loop']['length'] = $length;
  450.             $context['loop']['last'] = === $length;
  451.         }
  452.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  453.             // line 258
  454.             echo "            ";
  455.             $context["idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue258);
  456.             // line 259
  457.             echo "            <div class=\"ec-cartRole__error\">
  458.                 <div class=\"ec-alert-warning\">
  459.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  460.             // line 261
  461.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  462.             echo "\"></div>
  463.                     <div class=\"ec-alert-warning__text\">
  464.                         ";
  465.             // line 263
  466.             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.'263$this->source); })()), [], "array"truetruetrue263)) {
  467.                 // line 264
  468.                 echo "                            ";
  469.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 264$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.'264$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'264$this->source); })()), [], "array"falsefalsetrue264)]), "html"nulltrue));
  470.                 echo "
  471.                         ";
  472.             } else {
  473.                 // line 266
  474.                 echo "                            ";
  475.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 266$this->source)), "html"nulltrue));
  476.                 echo "
  477.                         ";
  478.             }
  479.             // line 268
  480.             echo "                    </div>
  481.                 </div>
  482.             </div>
  483.         ";
  484.             ++$context['loop']['index0'];
  485.             ++$context['loop']['index'];
  486.             $context['loop']['first'] = false;
  487.             if (isset($context['loop']['length'])) {
  488.                 --$context['loop']['revindex0'];
  489.                 --$context['loop']['revindex'];
  490.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  491.             }
  492.         }
  493.         $_parent $context['_parent'];
  494.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  495.         $context array_intersect_key($context$_parent) + $_parent;
  496.         // line 272
  497.         echo "        ";
  498.         $context['_parent'] = $context;
  499.         $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.'272$this->source); })()), "session", [], "any"falsefalsetrue272), "flashbag", [], "any"falsefalsetrue272), "get", [=> "eccube.front.cart.error"], "method"falsefalsetrue272));
  500.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  501.             // line 273
  502.             echo "            <div class=\"ec-cartRole__error\">
  503.                 <div class=\"ec-alert-warning\">
  504.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  505.             // line 275
  506.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  507.             echo "\"></div>
  508.                     <div class=\"ec-alert-warning__text\">
  509.                         ";
  510.             // line 277
  511.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 277$this->source)), "html"nulltrue));
  512.             echo "
  513.                     </div>
  514.                 </div>
  515.             </div>
  516.         ";
  517.         }
  518.         $_parent $context['_parent'];
  519.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  520.         $context array_intersect_key($context$_parent) + $_parent;
  521.         // line 282
  522.         echo "        ";
  523.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'282$this->source); })()) > 0)) {
  524.             // line 283
  525.             echo "            <!--<div class=\"ec-cartRole__totalText\">
  526.                 <p>
  527.                     ";
  528.             // line 285
  529.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品の合計金額は「<strong>%price%</strong>」です。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed((isset($context["totalPrice"]) || array_key_exists("totalPrice"$context) ? $context["totalPrice"] : (function () { throw new RuntimeError('Variable "totalPrice" does not exist.'285$this->source); })()), 285$this->source))]);
  530.             echo "
  531.                 </p>
  532.             </div>-->
  533.             ";
  534.             // line 288
  535.             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.'288$this->source); })())) > 1)) {
  536.                 // line 289
  537.                 echo "                <div class=\"ec-cartRole__error\">
  538.                     <div class=\"ec-alert-warning\">
  539.                         <div class=\"ec-alert-warning__text\">
  540.                             ";
  541.                 // line 292
  542.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html"nulltrue));
  543.                 echo "
  544.                         </div>
  545.                     </div>
  546.                 </div>
  547.             ";
  548.             }
  549.             // line 297
  550.             echo "
  551.             ";
  552.             // line 299
  553.             echo "            <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
  554.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_add_option");
  555.             echo "\">
  556.                 <div class=\"cartitems\" data-prototype=\"";
  557.             // line 300
  558.             echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'300$this->source); })()), "data", [], "any"falsefalsetrue300), "vars", [], "any"falsefalsetrue300), "prototype", [], "any"falsefalsetrue300), 300$this->source), 'widget'), "html_attr");
  559.             echo "\" data-index=0></div>
  560.                         
  561.                 ";
  562.             // line 302
  563.             $context['_parent'] = $context;
  564.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'302$this->source); })()));
  565.             $context['loop'] = [
  566.               'parent' => $context['_parent'],
  567.               'index0' => 0,
  568.               'index'  => 1,
  569.               'first'  => true,
  570.             ];
  571.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  572.                 $length count($context['_seq']);
  573.                 $context['loop']['revindex0'] = $length 1;
  574.                 $context['loop']['revindex'] = $length;
  575.                 $context['loop']['length'] = $length;
  576.                 $context['loop']['last'] = === $length;
  577.             }
  578.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  579.                 // line 303
  580.                 echo "                    ";
  581.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue303);
  582.                 // line 304
  583.                 echo "                    <span id=\"ck_";
  584.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue304), 304$this->source), "html"nulltrue);
  585.                 echo "\" class=\"d-none\">";
  586.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'304$this->source); })()), 304$this->source), "html"nulltrue);
  587.                 echo "</span>
  588.                     
  589.                     ";
  590.                 // line 306
  591.                 $context['_parent'] = $context;
  592.                 $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.'306$this->source); })()), "session", [], "any"falsefalsetrue306), "flashbag", [], "any"falsefalsetrue306), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'306$this->source); })())) . ".request.error")], "method"falsefalsetrue306));
  593.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  594.                     // line 307
  595.                     echo "                        <div class=\"ec-cartRole__error\">
  596.                             <div class=\"ec-alert-warning\">
  597.                                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  598.                     // line 309
  599.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  600.                     echo "\"></div>
  601.                                 <div class=\"ec-alert-warning__text\">
  602.                                     ";
  603.                     // line 311
  604.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 311$this->source)), "html"nulltrue));
  605.                     echo "
  606.                                 </div>
  607.                             </div>
  608.                         </div>
  609.                     ";
  610.                 }
  611.                 $_parent $context['_parent'];
  612.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  613.                 $context array_intersect_key($context$_parent) + $_parent;
  614.                 // line 316
  615.                 echo "
  616.                     <div class=\"ec-cartRole__cart\">
  617.                         <!--<div class=\"ec-cartTable\">
  618.                             <ol class=\"ec-cartHeader\">
  619.                                 <li class=\"ec-cartHeader__label\">";
  620.                 // line 320
  621.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("削除"), "html"nulltrue);
  622.                 echo "</li>
  623.                                 <li class=\"ec-cartHeader__label\">";
  624.                 // line 321
  625.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品内容"), "html"nulltrue);
  626.                 echo "</li>
  627.                                 <li class=\"ec-cartHeader__label\">";
  628.                 // line 322
  629.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  630.                 echo "</li>
  631.                                 <li class=\"ec-cartHeader__label\">";
  632.                 // line 323
  633.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html"nulltrue);
  634.                 echo "</li>
  635.                             </ol>-->
  636.                         ";
  637.                 // line 325
  638.                 $context["item_cnt"] = 0;
  639.                 // line 326
  640.                 echo "                        ";
  641.                 $context['_parent'] = $context;
  642.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue326));
  643.                 $context['loop'] = [
  644.                   'parent' => $context['_parent'],
  645.                   'index0' => 0,
  646.                   'index'  => 1,
  647.                   'first'  => true,
  648.                 ];
  649.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  650.                     $length count($context['_seq']);
  651.                     $context['loop']['revindex0'] = $length 1;
  652.                     $context['loop']['revindex'] = $length;
  653.                     $context['loop']['length'] = $length;
  654.                     $context['loop']['last'] = === $length;
  655.                 }
  656.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  657.                     // line 327
  658.                     echo "                            <span id=\"ciid_";
  659.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue327), 327$this->source), "html"nulltrue);
  660.                     echo "\" class=\"d-none\">";
  661.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "id", [], "any"falsefalsetrue327), 327$this->source), "html"nulltrue);
  662.                     echo "</span>
  663.                             
  664.                             ";
  665.                     // line 329
  666.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue329);
  667.                     // line 330
  668.                     echo "                            ";
  669.                     $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.'330$this->source); })()), "Product", [], "any"falsefalsetrue330);
  670.                     // line 331
  671.                     echo "                            <div class=\"ec-cartTable\">
  672.                                 ";
  673.                     // line 332
  674.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue332) == 1)) {
  675.                         // line 333
  676.                         echo "                                    <ol class=\"ec-cartHeader\">
  677.                                         <li class=\"ec-cartHeader__label\">";
  678.                         // line 334
  679.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("削除"), "html"nulltrue);
  680.                         echo "</li>
  681.                                         <li class=\"ec-cartHeader__label\">";
  682.                         // line 335
  683.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品内容"), "html"nulltrue);
  684.                         echo "</li>
  685.                                         <li class=\"ec-cartHeader__label\">";
  686.                         // line 336
  687.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  688.                         echo "</li>
  689.                                         <li class=\"ec-cartHeader__label\">";
  690.                         // line 337
  691.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html"nulltrue);
  692.                         echo "</li>
  693.                                     </ol>
  694.                                 ";
  695.                     }
  696.                     // line 340
  697.                     echo "                                
  698.                                 <ul class=\"ec-cartRow cartitem cartitem_";
  699.                     // line 341
  700.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["item_cnt"]) || array_key_exists("item_cnt"$context) ? $context["item_cnt"] : (function () { throw new RuntimeError('Variable "item_cnt" does not exist.'341$this->source); })()), 341$this->source), "html"nulltrue);
  701.                     echo "\">
  702.                                     <li class=\"ec-cartRow__delColumn\">
  703.                                         ";
  704.                     // line 344
  705.                     echo "                                        <a href=\"";
  706.                     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$context["CartItem"], "id", [], "any"falsefalsetrue344)]), "html"nulltrue);
  707.                     echo "\" ";
  708.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  709.                     echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  710.                                             <img src=\"";
  711.                     // line 345
  712.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html"nulltrue);
  713.                     echo "\" alt=\"delete\">
  714.                                         </a>
  715.                                     </li>
  716.                                     <li class=\"ec-cartRow__contentColumn\">
  717.                                         <div class=\"ec-cartRow__img\">
  718.                                             <a target=\"_blank\" href=\"";
  719.                     // line 350
  720.                     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.'350$this->source); })()), "id", [], "any"falsefalsetrue350)]), "html"nulltrue);
  721.                     echo "\">
  722.                                                 <img src=\"";
  723.                     // line 351
  724.                     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.'351$this->source); })()), "MainListImage", [], "any"falsefalsetrue351), 351$this->source)), "save_image"), "html"nulltrue);
  725.                     echo "\" alt=\"";
  726.                     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.'351$this->source); })()), "name", [], "any"falsefalsetrue351), 351$this->source), "html"nulltrue);
  727.                     echo "\"/>
  728.                                             </a>
  729.                                         </div>
  730.                                         <div class=\"ec-cartRow__summary\">
  731.                                             <div class=\"ec-cartRow__name\">
  732.                                                 <a target=\"_blank\" href=\"";
  733.                     // line 356
  734.                     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.'356$this->source); })()), "id", [], "any"falsefalsetrue356)]), "html"nulltrue);
  735.                     echo "\">";
  736.                     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.'356$this->source); })()), "name", [], "any"falsefalsetrue356), 356$this->source), "html"nulltrue);
  737.                     echo "</a>
  738.                                                 ";
  739.                     // line 357
  740.                     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.'357$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue357) && 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.'357$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue357), "id", [], "any"falsefalsetrue357))) {
  741.                         // line 358
  742.                         echo "                                                    ";
  743.                         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.'358$this->source); })()), "id", [], "any"falsefalsetrue358) != 119)) {
  744.                             // line 359
  745.                             echo "                                                        <br>";
  746.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'359$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue359), "ClassName", [], "any"falsefalsetrue359), "name", [], "any"falsefalsetrue359), 359$this->source), "html"nulltrue);
  747.                             echo ":";
  748.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'359$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue359), 359$this->source), "html"nulltrue);
  749.                             echo "
  750.                                                     ";
  751.                         }
  752.                         // line 361
  753.                         echo "                                                ";
  754.                     }
  755.                     // line 362
  756.                     echo "                                                ";
  757.                     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.'362$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue362) && 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.'362$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue362), "id", [], "any"falsefalsetrue362))) {
  758.                         // line 363
  759.                         echo "                                                    <br>";
  760.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'363$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue363), "ClassName", [], "any"falsefalsetrue363), "name", [], "any"falsefalsetrue363), 363$this->source), "html"nulltrue);
  761.                         echo ":";
  762.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'363$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue363), 363$this->source), "html"nulltrue);
  763.                         echo "
  764.                                                 ";
  765.                     }
  766.                     // line 365
  767.                     echo "                                                ";
  768.                     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.'365$this->source); })()), "id", [], "any"falsefalsetrue365) != 119)) {
  769.                         // line 366
  770.                         echo "                                                    ";
  771.                         if (twig_get_attribute($this->env$this->source$context["CartItem"], "size", [], "any"falsefalsetrue366)) {
  772.                             echo "&emsp;サイズ:";
  773.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "size", [], "any"falsefalsetrue366), 366$this->source), "html"nulltrue);
  774.                             echo "号";
  775.                         }
  776.                         // line 367
  777.                         echo "                                                ";
  778.                     }
  779.                     // line 368
  780.                     echo "                                            </div>
  781.                                             <!--<div class=\"ec-cartRow__unitPrice\">";
  782.                     // line 369
  783.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "price", [], "any"falsefalsetrue369), 369$this->source)), "html"nulltrue);
  784.                     echo "</div>-->
  785.                                             ";
  786.                     // line 370
  787.                     $context["sum"] = (twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsetrue370) + twig_get_attribute($this->env$this->source$context["CartItem"], "size_price", [], "any"falsefalsetrue370));
  788.                     // line 371
  789.                     echo "                                            <div class=\"ec-cartRow__sutbtotalSP\">";
  790.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計:"), "html"nulltrue);
  791.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed((isset($context["sum"]) || array_key_exists("sum"$context) ? $context["sum"] : (function () { throw new RuntimeError('Variable "sum" does not exist.'371$this->source); })()), 371$this->source)), "html"nulltrue);
  792.                     echo "</div>
  793.                                         </div>
  794.                                     </li>
  795.                                     <li class=\"ec-cartRow__amountColumn\">
  796.                                         <div class=\"ec-cartRow__amount\">";
  797.                     // line 375
  798.                     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"falsefalsetrue375), 375$this->source)), "html"nulltrue);
  799.                     echo "</div>
  800.                                         <div class=\"ec-cartRow__amountSP\">";
  801.                     // line 376
  802.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量:"), "html"nulltrue);
  803.                     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"falsefalsetrue376), 376$this->source)), "html"nulltrue);
  804.                     echo "</div>
  805.                                         <div class=\"ec-cartRow__amountUpDown\">
  806.                                             ";
  807.                     // line 390
  808.                     echo "                                        </div>
  809.                                     </li>
  810.                                     <li class=\"ec-cartRow__subtotalColumn\">
  811.                                         <div class=\"ec-cartRow__sutbtotal\">";
  812.                     // line 393
  813.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed((isset($context["sum"]) || array_key_exists("sum"$context) ? $context["sum"] : (function () { throw new RuntimeError('Variable "sum" does not exist.'393$this->source); })()), 393$this->source)), "html"nulltrue);
  814.                     echo "<small>(税込)</small></div>
  815.                                     </li>
  816.                                 </ul>
  817.                             </div>
  818.                             ";
  819.                     // line 397
  820.                     $context["category"] = 0;
  821.                     // line 398
  822.                     echo "                            ";
  823.                     $context['_parent'] = $context;
  824.                     $context['_seq'] = twig_ensure_traversable(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.'398$this->source); })()), "ProductCategories", [], "any"falsefalsetrue398));
  825.                     foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  826.                         // line 399
  827.                         echo "                                ";
  828.                         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsetrue399), "id", [], "any"falsefalsetrue399) == 1)) {
  829.                             // line 400
  830.                             echo "                                    ";
  831.                             // line 401
  832.                             echo "                                    ";
  833.                             $context["category"] = 1;
  834.                             // line 402
  835.                             echo "                                ";
  836.                         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsetrue402), "id", [], "any"falsefalsetrue402) == 2)) {
  837.                             // line 403
  838.                             echo "                                    ";
  839.                             // line 404
  840.                             echo "                                    ";
  841.                             $context["category"] = 2;
  842.                             // line 405
  843.                             echo "                                ";
  844.                         }
  845.                         // line 406
  846.                         echo "                            ";
  847.                     }
  848.                     $_parent $context['_parent'];
  849.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  850.                     $context array_intersect_key($context$_parent) + $_parent;
  851.                     // line 407
  852.                     echo "                            <a href=\"#\" class=\"add_option add_option_";
  853.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["item_cnt"]) || array_key_exists("item_cnt"$context) ? $context["item_cnt"] : (function () { throw new RuntimeError('Variable "item_cnt" does not exist.'407$this->source); })()), 407$this->source), "html"nulltrue);
  854.                     echo " itemid_";
  855.                     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.'407$this->source); })()), "id", [], "any"falsefalsetrue407), 407$this->source), "html"nulltrue);
  856.                     echo " itemcat_";
  857.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'407$this->source); })()), 407$this->source), "html"nulltrue);
  858.                     echo " d-none\"></a>
  859.                             ";
  860.                     // line 408
  861.                     $context["item_cnt"] = ((isset($context["item_cnt"]) || array_key_exists("item_cnt"$context) ? $context["item_cnt"] : (function () { throw new RuntimeError('Variable "item_cnt" does not exist.'408$this->source); })()) + 1);
  862.                     // line 409
  863.                     echo "                        ";
  864.                     ++$context['loop']['index0'];
  865.                     ++$context['loop']['index'];
  866.                     $context['loop']['first'] = false;
  867.                     if (isset($context['loop']['length'])) {
  868.                         --$context['loop']['revindex0'];
  869.                         --$context['loop']['revindex'];
  870.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  871.                     }
  872.                 }
  873.                 $_parent $context['_parent'];
  874.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  875.                 $context array_intersect_key($context$_parent) + $_parent;
  876.                 // line 410
  877.                 echo "                    </div>
  878.                     
  879.                     <div class=\"ec-cartRole__progress\">
  880.                         ";
  881.                 // line 413
  882.                 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.'413$this->source); })()), "delivery_free_amount", [], "any"falsefalsetrue413) && 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.'413$this->source); })()), "delivery_free_quantity", [], "any"falsefalsetrue413))) {
  883.                     // line 414
  884.                     echo "                            <br/>
  885.                             ";
  886.                     // line 415
  887.                     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.'415$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'415$this->source); })()), [], "array"falsefalsetrue415)) {
  888.                         // line 416
  889.                         echo "                                ";
  890.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在日本国内は送料無料です。"), "html"nulltrue);
  891.                         echo "
  892.                             ";
  893.                     } else {
  894.                         // line 418
  895.                         echo "                                ";
  896.                         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($this->sandbox->ensureToStringAllowed(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.'418$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'418$this->source); })()), [], "array"falsefalsetrue418), 418$this->source)), "%quantity%" => twig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'418$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'418$this->source); })()), [], "array"falsefalsetrue418), 418$this->source))]);
  897.                         echo "
  898.                             ";
  899.                     }
  900.                     // line 420
  901.                     echo "                        ";
  902.                 } 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.'420$this->source); })()), "delivery_free_amount", [], "any"falsefalsetrue420)) {
  903.                     // line 421
  904.                     echo "                            <br/>
  905.                             ";
  906.                     // line 422
  907.                     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.'422$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'422$this->source); })()), [], "array"falsefalsetrue422)) {
  908.                         // line 423
  909.                         echo "                                ";
  910.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在日本国内は送料無料です。"), "html"nulltrue);
  911.                         echo "
  912.                             ";
  913.                     } else {
  914.                         // line 425
  915.                         echo "                                ";
  916.                         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($this->sandbox->ensureToStringAllowed(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.'425$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'425$this->source); })()), [], "array"falsefalsetrue425), 425$this->source))]);
  917.                         echo "
  918.                             ";
  919.                     }
  920.                     // line 427
  921.                     echo "                        ";
  922.                 } 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.'427$this->source); })()), "delivery_free_quantity", [], "any"falsefalsetrue427)) {
  923.                     // line 428
  924.                     echo "                            <br/>
  925.                             ";
  926.                     // line 429
  927.                     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.'429$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'429$this->source); })()), [], "array"falsefalsetrue429)) {
  928.                         // line 430
  929.                         echo "                                ";
  930.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在日本国内は送料無料です。"), "html"nulltrue);
  931.                         echo "
  932.                             ";
  933.                     } else {
  934.                         // line 432
  935.                         echo "                                ";
  936.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。", ["%quantity%" => twig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'432$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'432$this->source); })()), [], "array"falsefalsetrue432), 432$this->source))]);
  937.                         echo "
  938.                             ";
  939.                     }
  940.                     // line 434
  941.                     echo "                        ";
  942.                 }
  943.                 // line 435
  944.                 echo "                    </div>
  945.                     ";
  946.                 // line 438
  947.                 echo "                    ";
  948.                 $context["size_price_total"] = 0;
  949.                 // line 439
  950.                 echo "                    ";
  951.                 $context['_parent'] = $context;
  952.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue439));
  953.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  954.                     // line 440
  955.                     echo "                        ";
  956.                     $context["size_price_total"] = ((isset($context["size_price_total"]) || array_key_exists("size_price_total"$context) ? $context["size_price_total"] : (function () { throw new RuntimeError('Variable "size_price_total" does not exist.'440$this->source); })()) + twig_get_attribute($this->env$this->source$context["CartItem"], "size_price", [], "any"falsefalsetrue440));
  957.                     // line 441
  958.                     echo "                    ";
  959.                 }
  960.                 $_parent $context['_parent'];
  961.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  962.                 $context array_intersect_key($context$_parent) + $_parent;
  963.                 // line 442
  964.                 echo "                    ";
  965.                 $context["price_total"] = (twig_get_attribute($this->env$this->source$context["Cart"], "totalPrice", [], "any"falsefalsetrue442) + (isset($context["size_price_total"]) || array_key_exists("size_price_total"$context) ? $context["size_price_total"] : (function () { throw new RuntimeError('Variable "size_price_total" does not exist.'442$this->source); })()));
  966.                 // line 443
  967.                 echo "                    <span id=\"price_total_tmp\" class=\"d-none\">";
  968.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["price_total"]) || array_key_exists("price_total"$context) ? $context["price_total"] : (function () { throw new RuntimeError('Variable "price_total" does not exist.'443$this->source); })()), 443$this->source), "html"nulltrue);
  969.                 echo "</span>
  970.                     
  971.                     <div class=\"ec-cartRole__actions\">
  972.                         <div>";
  973.                 // line 446
  974.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("オプション計:"), "html"nulltrue);
  975.                 echo "<span id=\"option_total\">";
  976.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(0), "html"nulltrue);
  977.                 echo "</span><small>(税込)</small></div>
  978.                         <div class=\"ec-cartRole__total\">";
  979.                 // line 447
  980.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("合計:"), "html"nulltrue);
  981.                 echo "<span id=\"cart_total\" class=\"ec-cartRole__totalAmount\">";
  982.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed((isset($context["price_total"]) || array_key_exists("price_total"$context) ? $context["price_total"] : (function () { throw new RuntimeError('Variable "price_total" does not exist.'447$this->source); })()), 447$this->source)), "html"nulltrue);
  983.                 echo "</span><small>(税込)</small>
  984.                         </div>
  985.                         ";
  986.                 // line 450
  987.                 echo "                        <span class=\"action_btn_wrapper\"><button class=\"ec-blockBtn--action text-white\">";
  988.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レジに進む"), "html"nulltrue);
  989.                 echo "</button></span>
  990.                         ";
  991.                 // line 451
  992.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue451)) {
  993.                     // line 452
  994.                     echo "                            <a class=\"ec-blockBtn--cancel\" href=\"";
  995.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  996.                     echo "\">";
  997.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  998.                     echo "</a>
  999.                         ";
  1000.                 }
  1001.                 // line 454
  1002.                 echo "                    </div>
  1003.                 ";
  1004.                 ++$context['loop']['index0'];
  1005.                 ++$context['loop']['index'];
  1006.                 $context['loop']['first'] = false;
  1007.                 if (isset($context['loop']['length'])) {
  1008.                     --$context['loop']['revindex0'];
  1009.                     --$context['loop']['revindex'];
  1010.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  1011.                 }
  1012.             }
  1013.             $_parent $context['_parent'];
  1014.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  1015.             $context array_intersect_key($context$_parent) + $_parent;
  1016.             // line 456
  1017.             echo "            </form>
  1018.         ";
  1019.         } else {
  1020.             // line 458
  1021.             echo "            ";
  1022.             $context['_parent'] = $context;
  1023.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'458$this->source); })()));
  1024.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  1025.                 // line 459
  1026.                 echo "                ";
  1027.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue459);
  1028.                 // line 460
  1029.                 echo "                ";
  1030.                 $context['_parent'] = $context;
  1031.                 $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.'460$this->source); })()), "session", [], "any"falsefalsetrue460), "flashbag", [], "any"falsefalsetrue460), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'460$this->source); })())) . ".request.error")], "method"falsefalsetrue460));
  1032.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  1033.                     // line 461
  1034.                     echo "                    <div class=\"ec-cartRole__error\">
  1035.                         <div class=\"ec-alert-warning\">
  1036.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  1037.                     // line 463
  1038.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  1039.                     echo "\"></div>
  1040.                             <div class=\"ec-alert-warning__text\">
  1041.                                 ";
  1042.                     // line 465
  1043.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 465$this->source)), "html"nulltrue));
  1044.                     echo "
  1045.                             </div>
  1046.                         </div>
  1047.                     </div>
  1048.                 ";
  1049.                 }
  1050.                 $_parent $context['_parent'];
  1051.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  1052.                 $context array_intersect_key($context$_parent) + $_parent;
  1053.                 // line 470
  1054.                 echo "            ";
  1055.             }
  1056.             $_parent $context['_parent'];
  1057.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  1058.             $context array_intersect_key($context$_parent) + $_parent;
  1059.             // line 471
  1060.             echo "            <div class=\"ec-role\">
  1061.                 <div class=\"ec-off3Grid\">
  1062.                     <div class=\"ec-off3Grid__cell\">
  1063.                         <div class=\"ec-alert-warning\">
  1064.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  1065.             // line 475
  1066.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  1067.             echo "\"></div>
  1068.                             <div class=\"ec-alert-warning__text\">";
  1069.             // line 476
  1070.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在カート内に商品はございません。"), "html"nulltrue);
  1071.             echo "</div>
  1072.                         </div>
  1073.                     </div>
  1074.                 </div>
  1075.             </div>
  1076.         ";
  1077.         }
  1078.         // line 482
  1079.         echo "    </div>
  1080. ";
  1081.         
  1082.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1083.         
  1084.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1085.     }
  1086.     public function getTemplateName()
  1087.     {
  1088.         return "Cart/index.twig";
  1089.     }
  1090.     public function isTraitable()
  1091.     {
  1092.         return false;
  1093.     }
  1094.     public function getDebugInfo()
  1095.     {
  1096.         return array (  1101 => 482,  1092 => 476,  1088 => 475,  1082 => 471,  1076 => 470,  1065 => 465,  1060 => 463,  1056 => 461,  1051 => 460,  1048 => 459,  1043 => 458,  1039 => 456,  1024 => 454,  1016 => 452,  1014 => 451,  1009 => 450,  1002 => 447,  996 => 446,  989 => 443,  986 => 442,  980 => 441,  977 => 440,  972 => 439,  969 => 438,  965 => 435,  962 => 434,  956 => 432,  950 => 430,  948 => 429,  945 => 428,  942 => 427,  936 => 425,  930 => 423,  928 => 422,  925 => 421,  922 => 420,  916 => 418,  910 => 416,  908 => 415,  905 => 414,  903 => 413,  898 => 410,  884 => 409,  882 => 408,  873 => 407,  867 => 406,  864 => 405,  861 => 404,  859 => 403,  856 => 402,  853 => 401,  851 => 400,  848 => 399,  843 => 398,  841 => 397,  834 => 393,  829 => 390,  823 => 376,  819 => 375,  810 => 371,  808 => 370,  804 => 369,  801 => 368,  798 => 367,  791 => 366,  788 => 365,  780 => 363,  777 => 362,  774 => 361,  766 => 359,  763 => 358,  761 => 357,  755 => 356,  745 => 351,  741 => 350,  733 => 345,  726 => 344,  721 => 341,  718 => 340,  712 => 337,  708 => 336,  704 => 335,  700 => 334,  697 => 333,  695 => 332,  692 => 331,  689 => 330,  687 => 329,  679 => 327,  661 => 326,  659 => 325,  654 => 323,  650 => 322,  646 => 321,  642 => 320,  636 => 316,  625 => 311,  620 => 309,  616 => 307,  612 => 306,  604 => 304,  601 => 303,  584 => 302,  579 => 300,  574 => 299,  571 => 297,  563 => 292,  558 => 289,  556 => 288,  550 => 285,  546 => 283,  543 => 282,  532 => 277,  527 => 275,  523 => 273,  518 => 272,  501 => 268,  495 => 266,  489 => 264,  487 => 263,  482 => 261,  478 => 259,  475 => 258,  457 => 257,  455 => 256,  447 => 251,  444 => 250,  441 => 249,  434 => 245,  431 => 244,  428 => 243,  421 => 239,  418 => 238,  415 => 237,  412 => 236,  405 => 232,  402 => 231,  399 => 230,  396 => 229,  394 => 228,  388 => 225,  385 => 224,  382 => 223,  379 => 222,  377 => 221,  367 => 214,  363 => 212,  353 => 211,  206 => 72,  200 => 71,  186 => 70,  178 => 68,  175 => 67,  167 => 65,  164 => 64,  156 => 62,  153 => 61,  148 => 59,  144 => 58,  139 => 57,  136 => 56,  118 => 55,  114 => 54,  74 => 16,  64 => 15,  53 => 11,  51 => 13,  38 => 11,);
  1097.     }
  1098.     public function getSourceContext()
  1099.     {
  1100.         return new Source("{#
  1101. This file is part of EC-CUBE
  1102. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1103. http://www.ec-cube.co.jp/
  1104. For the full copyright and license information, please view the LICENSE
  1105. file that was distributed with this source code.
  1106. #}
  1107. {% extends 'default_frame.twig' %}
  1108. {% set body_class = 'cart_page' %}
  1109. {% block javascript %}
  1110.     <script>
  1111.         \$(function() {
  1112.             var cnt = \$('.ec-cartRow').length;
  1113.             for (let i = 0; i < cnt; i++){
  1114.                 // Get the data-prototype explained earlier
  1115.                 var prototype = \$('.cartitems').data('prototype');
  1116.                 // get the new index
  1117.                 var index = \$('.cartitems').data('index');
  1118.                 // Replace '__name__' in the prototype's HTML to
  1119.                 // instead be a number based on how many items we have
  1120.                 var newForm = '<div class=\"mt-3 pb-0 d-flex flex-wrap justify-content-between\"><span>オプションを選択してください。</span><span>オプション小計:<span><span class=\"item_option_price_' + index + '\">¥0</span></span><small>(税込)</small></span></div>';
  1121.                 newForm += '<div class=\"mt-2 mb-3 p-3 bg-white cart_option\" id=\"cart_option_' + index + '\">';
  1122.                 newForm += prototype.replace(/__name__/g, index);
  1123.                 newForm += '<div class=\"d-flex flex-column flex-md-row\"><span class=\"w_120\"></span><span>インサイド石は、刻印がある場合は刻印の直後にセッティングさせていただきます。<br>';
  1124.                 newForm += '石の位置の変更をご希望の場合は購入手続き画面のお問い合わせ欄にご記入ください。</span></p>';
  1125.                 newForm += '</div>';
  1126.                 // increase the index with one for the next item
  1127.                 \$('.cartitems').data('index', index + 1);
  1128.                 // Display the form in the page before the \"new\" link
  1129.                 //\$(this).before(newForm);
  1130.                 var add = \".add_option_\" + i;
  1131.                 // ID119の商品はオプションを表示しない
  1132.                 // 結婚指輪でも婚約指輪でもない場合はオプションを表示しない
  1133.                 if (\$(add).hasClass('itemid_119') || \$(add).hasClass('itemcat_0')) {
  1134.                     newForm = '<hr><div class=\"d-none\">' + newForm + '</div>';
  1135.                 }
  1136.                 
  1137.                 \$(add).before(newForm);
  1138.             }
  1139.             
  1140.             // 刻印文字数の注意書き追加
  1141.             \$('input[id\$=\"engraving_text\"]').each(function () {
  1142.                 \$(this).parent().addClass('flex-wrap');
  1143.                 \$(this).after('<p class=\"w-100 engraving_text_notice\">刻印できる文字数は最大19文字です。</p>')
  1144.             });
  1145.             
  1146.             // 読み込み時 すでに値があったら表示する
  1147.             {% for CartIndex,Cart in Carts %}
  1148.                 {% for CartItem in Cart.CartItems %}
  1149.                     {% if CartItem.engraving == \"あり\" %}
  1150.                         \$('input[name=\"form[data][' + {{ loop.index0 }} + '][engraving]\"]').val([\"あり\"]);
  1151.                         \$('#form_data_' + {{ loop.index0 }} + ' > div').css('display','flex');
  1152.                         \$('#form_data_' + {{ loop.index0 }} + ' fieldset:nth-child(2)').css('display','flex');
  1153.                     {% endif %}
  1154.                     {% if CartItem.engraving_font is not null %}
  1155.                         \$('input[name=\"form[data][' + {{ loop.index0 }} + '][engraving_font]\"]').val([\"{{ CartItem.engraving_font }}\"]);
  1156.                     {% endif %}
  1157.                     {% if CartItem.engraving_text is not null %}
  1158.                         \$('input[name=\"form[data][' + {{ loop.index0 }} + '][engraving_text]\"]').val(\"{{ CartItem.engraving_text }}\");
  1159.                     {% endif %}
  1160.                     {% if CartItem.stone != \"なし\" and CartItem.stone is not null %}
  1161.                         \$('input[name=\"form[data][' + {{ loop.index0 }} + '][stone]\"]').val([\"{{ CartItem.stone }}\"]);
  1162.                     {% endif %}
  1163.                 {% endfor %}
  1164.             {% endfor %}
  1165.             var cnt = \$('.ec-cartRow').length;
  1166.             for (let i = 0; i < cnt; i++) {
  1167.                 var cart_option = document.getElementById(\"cart_option_\" + i);
  1168.                 if (cart_option === null) {
  1169.                 } else {
  1170.                     if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"あり\") { // 刻印あり
  1171.                         \$('#form_data_' + i + ' > div').css('display','flex');
  1172.                         \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','flex');
  1173.                         if (\$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').val() == null) {
  1174.                             \$('.action_btn_wrapper').addClass('not_available');
  1175.                             go = false;
  1176.                         } else if (!\$('input[name=\"form[data][' + i + '][engraving_text]\"]').val()) {
  1177.                             \$('.action_btn_wrapper').addClass('not_available');
  1178.                             go = false;
  1179.                         }
  1180.                     } else if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"なし\") {
  1181.                         \$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').prop('checked', false);
  1182.                         \$('#form_data_' + i + ' > div').css('display','none');
  1183.                         \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','none');
  1184.                     }
  1185.                 }
  1186.             }
  1187.             
  1188.             checkEngraving();
  1189.             calcTotal();
  1190.             // cart_key と cart_id をセット
  1191.             var cnt = \$('.ec-cartRow').length;
  1192.             for (let i = 0; i < cnt; i++) {
  1193.                 \$('input[name=\"form[data][' + i + '][cart_key]\"]').val(\$('#ck_0').text()); // cartkey は同じカートなら同じ
  1194.                 \$('input[name=\"form[data][' + i + '][cart_item_id]\"]').val(\$('#ciid_' + i).text());
  1195.             }
  1196.             
  1197.             \$('.form-check-input').on('change', function(event) {
  1198.                 checkEngraving();
  1199.                 calcTotal();
  1200.             });
  1201.             \$('input[id\$=\"engraving_text\"]').on('keyup', function(event) {
  1202.                 let count = \$(this).val().length;
  1203.                 if (count > 19){
  1204.                     if (!\$(this).parent().prev().hasClass('text_count_message')) {
  1205.                         \$(this).parent().before('<p class=\"mb-2 text_count_message text-danger\">※刻印は19文字までです</p>');
  1206.                         \$('.action_btn_wrapper').addClass('not_available');
  1207.                     }
  1208.                 } else {
  1209.                     if (\$(this).parent().prev().hasClass('text_count_message')) {
  1210.                         \$(this).parent().prev('.text_count_message').remove();
  1211.                     }
  1212.                 }
  1213.             });
  1214.             \$('.form-control').on('change', function(event) {
  1215.                 checkEngraving();
  1216.             });
  1217.             
  1218.             function checkEngraving() {
  1219.                 var cnt = \$('.ec-cartRow').length;
  1220.                 var go = true;
  1221.                 for (let i = 0; i < cnt; i++) {
  1222.                     var cart_option = document.getElementById(\"cart_option_\" + i);
  1223.                     if (cart_option === null) {
  1224.                     } else {
  1225.                         if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"あり\") { // 刻印あり
  1226.                             \$('#form_data_' + i + ' > div').css('display','flex');
  1227.                             \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','flex');
  1228.                             if (\$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').val() == null) {
  1229.                                 \$('.action_btn_wrapper').addClass('not_available');
  1230.                                 go = false;
  1231.                             } else if (!\$('input[name=\"form[data][' + i + '][engraving_text]\"]').val()) {
  1232.                                 \$('.action_btn_wrapper').addClass('not_available');
  1233.                                 go = false;
  1234.                             }
  1235.                         } else if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"なし\") {
  1236.                             \$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').prop('checked', false);
  1237.                             \$('#form_data_' + i + ' > div').css('display','none');
  1238.                             \$('#form_data_' + i + ' fieldset:nth-child(2)').css('display','none');
  1239.                         }
  1240.                     }
  1241.                 }
  1242.                 if (go) {
  1243.                     \$('.action_btn_wrapper').removeClass('not_available');
  1244.                 }
  1245.             }
  1246.             
  1247.             function calcTotal() {
  1248.                 var cnt = \$('.ec-cartRow').length;
  1249.                 var option_total = 0;
  1250.                 for (let i = 0; i < cnt; i++) {
  1251.                     var item_option_price = 0;
  1252.                     var cart_option = document.getElementById(\"cart_option_\" + i);
  1253.                     if (cart_option === null) {
  1254.                     } else {
  1255.                         if (\$('input[name=\"form[data][' + i + '][engraving]\"]:checked').val() == \"あり\") {
  1256.                             //item_option_price += 5500;
  1257.                         }
  1258.                         switch (\$('input[name=\"form[data][' + i + '][engraving_font]\"]:checked').val()) {
  1259.                             case \"有料書体1\":
  1260.                             case \"有料書体2\":
  1261.                             case \"有料書体3\":
  1262.                             case \"有料書体4\":
  1263.                             case \"有料書体5\":
  1264.                             case \"有料書体6\":
  1265.                             case \"有料書体7\":
  1266.                             case \"有料書体8\":
  1267.                             case \"有料書体9\":
  1268.                             case \"有料書体10\":
  1269.                                 item_option_price += 5500;
  1270.                                 break;
  1271.                             default:
  1272.                         }
  1273.                         switch (\$('input[name=\"form[data][' + i + '][stone]\"]:checked').val()) {
  1274.                             case \"なし\":
  1275.                                 break;
  1276.                             default:
  1277.                                 // 一律料金?
  1278.                                 item_option_price += 5500;
  1279.                         }
  1280.                     }
  1281.                     var item_option_total_price = String(item_option_price).replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, '\$1,');
  1282.                     \$('.item_option_price_' + i).text(\"¥\" + item_option_total_price);
  1283.                     \$('input[name=\"form[data][' + i + '][option_total_price]\"]').val(item_option_price);
  1284.                     option_total += item_option_price; 
  1285.                 }
  1286.                 var option_total_price = String(option_total).replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, '\$1,');
  1287.                 \$('#option_total').text(\"¥\" + option_total_price);
  1288.                 
  1289.                 // 総合計更新
  1290.                 var total_price = \$('#price_total_tmp').text();
  1291.                 total_price = total_price * 1; //number
  1292.                 total_price += option_total;
  1293.                 var cart_total_price = String(total_price).replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, '\$1,');
  1294.                 \$('#cart_total').text(\"¥\" + cart_total_price);
  1295.             }
  1296.             
  1297.             \$('.ec-blockBtn--action').on('click', function(event) { 
  1298.                 calcTotal();
  1299.             });
  1300.         });
  1301.     </script>
  1302. {% endblock %}
  1303. {% block main %}
  1304.     <div class=\"ec-role\">
  1305.         <div class=\"ec-pageHeader\">
  1306.             <h1>{{ 'ショッピングカート'|trans }}</h1>
  1307.         </div>
  1308.     </div>
  1309.     <div class=\"ec-cartRole\">
  1310.         <div class=\"ec-cartRole__progress\">
  1311.             <ul class=\"ec-progress\">
  1312.                 {% set step = 1 %}
  1313.                 <li class=\"ec-progress__item is-complete\">
  1314.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  1315.                     </div>
  1316.                     <div class=\"ec-progress__label\">{{ 'カートの商品'|trans }}
  1317.                     </div>
  1318.                 </li>
  1319.                 {% if is_granted('ROLE_USER') == false %}
  1320.                     <li class=\"ec-progress__item\">
  1321.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  1322.                         </div>
  1323.                         <div class=\"ec-progress__label\">{{ 'お客様情報'|trans }}
  1324.                         </div>
  1325.                     </li>
  1326.                 {% endif %}
  1327.                 <li class=\"ec-progress__item\">
  1328.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  1329.                     </div>
  1330.                     <div class=\"ec-progress__label\">{{ 'ご注文手続き'|trans }}
  1331.                     </div>
  1332.                 </li>
  1333.                 <li class=\"ec-progress__item\">
  1334.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  1335.                     </div>
  1336.                     <div class=\"ec-progress__label\">{{ 'ご注文内容確認'|trans }}
  1337.                     </div>
  1338.                 </li>
  1339.                 <li class=\"ec-progress__item\">
  1340.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  1341.                     </div>
  1342.                     <div class=\"ec-progress__label\">{{ '完了'|trans }}
  1343.                     </div>
  1344.                 </li>
  1345.             </ul>
  1346.         </div>
  1347.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  1348.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  1349.             {% set idx = loop.index0 %}
  1350.             <div class=\"ec-cartRole__error\">
  1351.                 <div class=\"ec-alert-warning\">
  1352.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1353.                     <div class=\"ec-alert-warning__text\">
  1354.                         {% if productStr[idx] is defined %}
  1355.                             {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  1356.                         {% else %}
  1357.                             {{ error|trans|nl2br }}
  1358.                         {% endif %}
  1359.                     </div>
  1360.                 </div>
  1361.             </div>
  1362.         {% endfor %}
  1363.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  1364.             <div class=\"ec-cartRole__error\">
  1365.                 <div class=\"ec-alert-warning\">
  1366.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1367.                     <div class=\"ec-alert-warning__text\">
  1368.                         {{ error|trans|nl2br }}
  1369.                     </div>
  1370.                 </div>
  1371.             </div>
  1372.         {% endfor %}
  1373.         {% if totalQuantity > 0 %}
  1374.             <!--<div class=\"ec-cartRole__totalText\">
  1375.                 <p>
  1376.                     {{ '商品の合計金額は「<strong>%price%</strong>」です。'|trans({ '%price%': totalPrice|price })|raw }}
  1377.                 </p>
  1378.             </div>-->
  1379.             {% if Carts|length > 1 %}
  1380.                 <div class=\"ec-cartRole__error\">
  1381.                     <div class=\"ec-alert-warning\">
  1382.                         <div class=\"ec-alert-warning__text\">
  1383.                             {{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}
  1384.                         </div>
  1385.                     </div>
  1386.                 </div>
  1387.             {% endif %}
  1388.             {#<form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">#}
  1389.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart_add_option') }}\">
  1390.                 <div class=\"cartitems\" data-prototype=\"{{ form_widget(form.data.vars.prototype)|e('html_attr') }}\" data-index=0></div>
  1391.                         
  1392.                 {% for CartIndex,Cart in Carts %}
  1393.                     {% set cartKey = Cart.cart_key %}
  1394.                     <span id=\"ck_{{ loop.index0  }}\" class=\"d-none\">{{ cartKey }}</span>
  1395.                     
  1396.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  1397.                         <div class=\"ec-cartRole__error\">
  1398.                             <div class=\"ec-alert-warning\">
  1399.                                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1400.                                 <div class=\"ec-alert-warning__text\">
  1401.                                     {{ error|trans|nl2br }}
  1402.                                 </div>
  1403.                             </div>
  1404.                         </div>
  1405.                     {% endfor %}
  1406.                     <div class=\"ec-cartRole__cart\">
  1407.                         <!--<div class=\"ec-cartTable\">
  1408.                             <ol class=\"ec-cartHeader\">
  1409.                                 <li class=\"ec-cartHeader__label\">{{ '削除'|trans }}</li>
  1410.                                 <li class=\"ec-cartHeader__label\">{{ '商品内容'|trans }}</li>
  1411.                                 <li class=\"ec-cartHeader__label\">{{ '数量'|trans }}</li>
  1412.                                 <li class=\"ec-cartHeader__label\">{{ '小計'|trans }}</li>
  1413.                             </ol>-->
  1414.                         {% set item_cnt = 0 %}
  1415.                         {% for CartItem in Cart.CartItems %}
  1416.                             <span id=\"ciid_{{ loop.index0  }}\" class=\"d-none\">{{ CartItem.id }}</span>
  1417.                             
  1418.                             {% set ProductClass = CartItem.ProductClass %}
  1419.                             {% set Product = ProductClass.Product %}
  1420.                             <div class=\"ec-cartTable\">
  1421.                                 {% if loop.index == 1 %}
  1422.                                     <ol class=\"ec-cartHeader\">
  1423.                                         <li class=\"ec-cartHeader__label\">{{ '削除'|trans }}</li>
  1424.                                         <li class=\"ec-cartHeader__label\">{{ '商品内容'|trans }}</li>
  1425.                                         <li class=\"ec-cartHeader__label\">{{ '数量'|trans }}</li>
  1426.                                         <li class=\"ec-cartHeader__label\">{{ '小計'|trans }}</li>
  1427.                                     </ol>
  1428.                                 {% endif %}
  1429.                                 
  1430.                                 <ul class=\"ec-cartRow cartitem cartitem_{{ item_cnt }}\">
  1431.                                     <li class=\"ec-cartRow__delColumn\">
  1432.                                         {#<a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">#}
  1433.                                         <a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': CartItem.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  1434.                                             <img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
  1435.                                         </a>
  1436.                                     </li>
  1437.                                     <li class=\"ec-cartRow__contentColumn\">
  1438.                                         <div class=\"ec-cartRow__img\">
  1439.                                             <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  1440.                                                 <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  1441.                                             </a>
  1442.                                         </div>
  1443.                                         <div class=\"ec-cartRow__summary\">
  1444.                                             <div class=\"ec-cartRow__name\">
  1445.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  1446.                                                 {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  1447.                                                     {% if Product.id != 119 %}
  1448.                                                         <br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
  1449.                                                     {% endif %}
  1450.                                                 {% endif %}
  1451.                                                 {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  1452.                                                     <br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
  1453.                                                 {% endif %}
  1454.                                                 {% if Product.id != 119 %}
  1455.                                                     {% if CartItem.size %}&emsp;サイズ:{{ CartItem.size }}号{% endif %}
  1456.                                                 {% endif %}
  1457.                                             </div>
  1458.                                             <!--<div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>-->
  1459.                                             {% set sum =  CartItem.total_price + CartItem.size_price %}
  1460.                                             <div class=\"ec-cartRow__sutbtotalSP\">{{ '小計:'|trans }}{{ sum|price }}</div>
  1461.                                         </div>
  1462.                                     </li>
  1463.                                     <li class=\"ec-cartRow__amountColumn\">
  1464.                                         <div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
  1465.                                         <div class=\"ec-cartRow__amountSP\">{{ '数量:'|trans }}{{ CartItem.quantity|number_format }}</div>
  1466.                                         <div class=\"ec-cartRow__amountUpDown\">
  1467.                                             {#{% if CartItem.quantity > 1 %}
  1468.                                                 <a href=\"{{ url('cart_handle_item', {'operation': 'down', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  1469.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
  1470.                                                 </a>
  1471.                                             {% else %}
  1472.                                                 <div class=\"ec-cartRow__amountDownButtonDisabled\">
  1473.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
  1474.                                                 </div>
  1475.                                             {% endif %}
  1476.                                             <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\">
  1477.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
  1478.                                             </a>#}
  1479.                                         </div>
  1480.                                     </li>
  1481.                                     <li class=\"ec-cartRow__subtotalColumn\">
  1482.                                         <div class=\"ec-cartRow__sutbtotal\">{{ sum|price }}<small>(税込)</small></div>
  1483.                                     </li>
  1484.                                 </ul>
  1485.                             </div>
  1486.                             {% set category = 0 %}
  1487.                             {% for ProductCategory in Product.ProductCategories %}
  1488.                                 {% if ProductCategory.Category.id == 1 %}
  1489.                                     {# 結婚指輪 #}
  1490.                                     {% set category = 1 %}
  1491.                                 {% elseif ProductCategory.Category.id == 2 %}
  1492.                                     {# 婚約指輪 #}
  1493.                                     {% set category = 2 %}
  1494.                                 {% endif %}
  1495.                             {% endfor %}
  1496.                             <a href=\"#\" class=\"add_option add_option_{{ item_cnt }} itemid_{{ Product.id }} itemcat_{{ category }} d-none\"></a>
  1497.                             {% set item_cnt = item_cnt + 1 %}
  1498.                         {% endfor %}
  1499.                     </div>
  1500.                     
  1501.                     <div class=\"ec-cartRole__progress\">
  1502.                         {% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
  1503.                             <br/>
  1504.                             {% if is_delivery_free[cartKey] %}
  1505.                                 {{ '現在日本国内は送料無料です。'|trans }}
  1506.                             {% else %}
  1507.                                 {{ 'あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
  1508.                             {% endif %}
  1509.                         {% elseif BaseInfo.delivery_free_amount %}
  1510.                             <br/>
  1511.                             {% if is_delivery_free[cartKey] %}
  1512.                                 {{ '現在日本国内は送料無料です。'|trans }}
  1513.                             {% else %}
  1514.                                 {{ 'あと「<strong>%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price })|raw }}
  1515.                             {% endif %}
  1516.                         {% elseif BaseInfo.delivery_free_quantity %}
  1517.                             <br/>
  1518.                             {% if is_delivery_free[cartKey] %}
  1519.                                 {{ '現在日本国内は送料無料です。'|trans }}
  1520.                             {% else %}
  1521.                                 {{ 'あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
  1522.                             {% endif %}
  1523.                         {% endif %}
  1524.                     </div>
  1525.                     {# カート合計金額にサイズ割増料金を加算 #}
  1526.                     {% set size_price_total = 0 %}
  1527.                     {% for CartItem in Cart.CartItems %}
  1528.                         {% set size_price_total = size_price_total + CartItem.size_price %}
  1529.                     {% endfor %}
  1530.                     {% set price_total = Cart.totalPrice + size_price_total %}
  1531.                     <span id=\"price_total_tmp\" class=\"d-none\">{{ price_total }}</span>
  1532.                     
  1533.                     <div class=\"ec-cartRole__actions\">
  1534.                         <div>{{ 'オプション計:'|trans }}<span id=\"option_total\">{{ 0|price }}</span><small>(税込)</small></div>
  1535.                         <div class=\"ec-cartRole__total\">{{ '合計:'|trans }}<span id=\"cart_total\" class=\"ec-cartRole__totalAmount\">{{ price_total|price }}</span><small>(税込)</small>
  1536.                         </div>
  1537.                         {#<span class=\"action_btn_wrapper\"><a class=\"ec-blockBtn--action text-white\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'レジに進む'|trans }}</a></span>#}
  1538.                         <span class=\"action_btn_wrapper\"><button class=\"ec-blockBtn--action text-white\">{{ 'レジに進む'|trans }}</button></span>
  1539.                         {% if loop.last %}
  1540.                             <a class=\"ec-blockBtn--cancel\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  1541.                         {% endif %}
  1542.                     </div>
  1543.                 {% endfor %}
  1544.             </form>
  1545.         {% else %}
  1546.             {% for CartIndex,Cart in Carts %}
  1547.                 {% set cartKey = Cart.cart_key %}
  1548.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  1549.                     <div class=\"ec-cartRole__error\">
  1550.                         <div class=\"ec-alert-warning\">
  1551.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1552.                             <div class=\"ec-alert-warning__text\">
  1553.                                 {{ error|trans|nl2br }}
  1554.                             </div>
  1555.                         </div>
  1556.                     </div>
  1557.                 {% endfor %}
  1558.             {% endfor %}
  1559.             <div class=\"ec-role\">
  1560.                 <div class=\"ec-off3Grid\">
  1561.                     <div class=\"ec-off3Grid__cell\">
  1562.                         <div class=\"ec-alert-warning\">
  1563.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  1564.                             <div class=\"ec-alert-warning__text\">{{ '現在カート内に商品はございません。'|trans }}</div>
  1565.                         </div>
  1566.                     </div>
  1567.                 </div>
  1568.             </div>
  1569.         {% endif %}
  1570.     </div>
  1571. {% endblock %}""Cart/index.twig""/home/apteq5/apteq5x.com/public_html/tanzoec/app/template/tanzo/Cart/index.twig");
  1572.     }
  1573.     
  1574.     public function checkSecurity()
  1575.     {
  1576.         static $tags = array("set" => 13"for" => 54"if" => 56);
  1577.         static $filters = array("escape" => 57"trans" => 214"nl2br" => 264"raw" => 285"price" => 285"length" => 288"e" => 300"no_image_product" => 351"number_format" => 375);
  1578.         static $functions = array("is_granted" => 228"asset" => 261"url" => 299"form_widget" => 300"csrf_token_for_anchor" => 344"path" => 452);
  1579.         try {
  1580.             $this->sandbox->checkSecurity(
  1581.                 ['set''for''if'],
  1582.                 ['escape''trans''nl2br''raw''price''length''e''no_image_product''number_format'],
  1583.                 ['is_granted''asset''url''form_widget''csrf_token_for_anchor''path']
  1584.             );
  1585.         } catch (SecurityError $e) {
  1586.             $e->setSourceContext($this->source);
  1587.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1588.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1589.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1590.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1591.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1592.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1593.             }
  1594.             throw $e;
  1595.         }
  1596.     }
  1597. }