var/cache/dev/twig/ed/ed8427b4a2bd6a162230b2f7c2bf236b92ad1f32b2397259e8a7c0ac78d93d38.php line 53

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. /* Product/detail.twig */
  14. class __TwigTemplate_45e7dc29dc2cbbcc0a07b12d6337c5003f04628b5f76a225e6edfce1bc79d517 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/detail.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "    <style>
  60.         /*モーダル本体の指定 + モーダル外側の背景の指定*/
  61.         .modal-container{
  62.           position: fixed;
  63.           top: 0;
  64.           left: 0;
  65.           width: 100%;
  66.           height: 100%;
  67.           text-align: center;
  68.           background: rgba(0,0,0,50%);
  69.           padding: 40px 20px;
  70.           overflow: auto;
  71.           opacity: 0;
  72.           visibility: hidden;
  73.           transition: .3s;
  74.             box-sizing: border-box;
  75.         }
  76.         /*モーダル本体の擬似要素の指定*/
  77.         .modal-container:before{
  78.           content: \"\";
  79.           display: inline-block;
  80.           vertical-align: middle;
  81.           height: 100%;
  82.         }
  83.         /*モーダル本体に「active」クラス付与した時のスタイル*/
  84.         .modal-container.active{
  85.           opacity: 1;
  86.           visibility: visible;
  87.         }
  88.         /*モーダル枠の指定*/
  89.         .modal-body{
  90.           position: relative;
  91.           display: inline-block;
  92.           vertical-align: middle;
  93.           max-width: 500px;
  94.           width: 90%;
  95.         }
  96.         /*モーダルを閉じるボタンの指定*/
  97.         .modal-close{
  98.           position: absolute;
  99.           display: flex;
  100.             align-items: center;
  101.             justify-content: center;
  102.           top: -40px;
  103.           right: -40px;
  104.           width: 40px;
  105.           height: 40px;
  106.           font-size: 40px;
  107.           color: #fff;
  108.           cursor: pointer;
  109.         }
  110.         /*モーダル内のコンテンツの指定*/
  111.         .modal-content{
  112.           background: #fff;
  113.           text-align: left;
  114.           padding: 30px;
  115.         }
  116.         .slide-item:not(.slick-slide) {
  117.           text-align:center;
  118.         }
  119.         .slide-item:not(.slick-slide) img {
  120.           width: auto;
  121.           height: auto;
  122.           max-width: 100%;
  123.           max-height: 100%;
  124.         }
  125.     </style>
  126. ";
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.     }
  132.     // line 89
  133.     public function block_javascript($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  140.         // line 90
  141.         echo "    <script>
  142.         eccube.classCategories = ";
  143.         // line 91
  144.         echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'91$this->source); })()));
  145.         echo ";
  146.         // 規格2に選択肢を割り当てる。
  147.         function fnSetClassCategories(form, classcat_id2_selected) {
  148.             var \$form = \$(form);
  149.             var product_id = \$form.find('input[name=product_id]').val();
  150.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  151.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  152.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  153.         }
  154.         ";
  155.         // line 102
  156.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse102)) {
  157.             // line 103
  158.             echo "        fnSetClassCategories(
  159.             \$('#form1'), ";
  160.             // line 104
  161.             echo json_encode(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.'104$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse104), "vars", [], "any"falsefalsefalse104), "value", [], "any"falsefalsefalse104));
  162.             echo "
  163.         );
  164.         ";
  165.         } elseif (twig_get_attribute($this->env$this->source,         // line 106
  166. ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse106)) {
  167.             // line 107
  168.             echo "        eccube.checkStock(\$('#form1'), ";
  169.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'107$this->source); })()), "id", [], "any"falsefalsefalse107), "html"nulltrue);
  170.             echo ", ";
  171.             echo json_encode(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.'107$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse107), "vars", [], "any"falsefalsefalse107), "value", [], "any"falsefalsefalse107));
  172.             echo ", null);
  173.         ";
  174.         }
  175.         // line 109
  176.         echo "    </script>
  177.     <script>
  178.         \$(function() {
  179.             // bfcache無効化
  180.             \$(window).bind('pageshow', function(event) {
  181.                 if (event.originalEvent.persisted) {
  182.                     location.reload(true);
  183.                 }
  184.             });
  185.         });
  186.     </script>
  187.     <script>
  188.         \$(function() {
  189.             \$('.add-cart').on('click', function(event) {
  190.                 ";
  191.         // line 123
  192.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse123)) {
  193.             // line 124
  194.             echo "                // 規格1フォームの必須チェック
  195.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  196.                     \$('#classcategory_id1')[0].setCustomValidity('";
  197.             // line 126
  198.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html"nulltrue);
  199.             echo "');
  200.                     return true;
  201.                 } else {
  202.                     \$('#classcategory_id1')[0].setCustomValidity('');
  203.                 }
  204.                 ";
  205.         }
  206.         // line 132
  207.         echo "
  208.                 ";
  209.         // line 133
  210.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse133)) {
  211.             // line 134
  212.             echo "                // 規格2フォームの必須チェック
  213.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  214.                     \$('#classcategory_id2')[0].setCustomValidity('";
  215.             // line 136
  216.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html"nulltrue);
  217.             echo "');
  218.                     return true;
  219.                 } else {
  220.                     \$('#classcategory_id2')[0].setCustomValidity('');
  221.                 }
  222.                 ";
  223.         }
  224.         // line 142
  225.         echo "
  226.                 // 個数フォームのチェック
  227.                 if (\$('#quantity').val() < 1) {
  228.                     \$('#quantity')[0].setCustomValidity('";
  229.         // line 145
  230.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.invalid_quantity"), "html"nulltrue);
  231.         echo "');
  232.                     return true;
  233.                 } else {
  234.                     \$('#quantity')[0].setCustomValidity('');
  235.                 }
  236.                 event.preventDefault();
  237.                 \$form = \$('#form1');
  238.                 \$.ajax({
  239.                     url: \$form.attr('action'),
  240.                     type: \$form.attr('method'),
  241.                     data: \$form.serialize(),
  242.                     dataType: 'json',
  243.                     beforeSend: function(xhr, settings) {
  244.                         // Buttonを無効にする
  245.                         \$('.add-cart').prop('disabled', true);
  246.                     }
  247.                 }).done(function(data) {
  248.                     // レスポンス内のメッセージをalertで表示
  249.                     \$.each(data.messages, function() {
  250.                         \$('#ec-modal-header').html(this);
  251.                     });
  252.                     \$('.ec-modal').show()
  253.                     // カートブロックを更新する
  254.                     \$.ajax({
  255.                         url: \"";
  256.         // line 172
  257.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  258.         echo "\",
  259.                         type: 'GET',
  260.                         dataType: 'html'
  261.                     }).done(function(html) {
  262.                         \$('.ec-headerRole__cart').html(html);
  263.                     });
  264.                 }).fail(function(data) {
  265.                     alert('";
  266.         // line 179
  267.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "html"nulltrue);
  268.         echo "');
  269.                 }).always(function(data) {
  270.                     // Buttonを有効にする
  271.                     \$('.add-cart').prop('disabled', false);
  272.                 });
  273.             });
  274.             var cat = \$(\".hide_class_category1 select,.hide_class_category2 select\");
  275.             \$.each(cat, function(){
  276.                 var select = \$(this);
  277.                 select.val(select.find(\"option:last\").val());
  278.                 select.trigger(\"change\");
  279.             });
  280.         });
  281.         \$('.ec-modal-wrap').on('click', function(e) {
  282.             // モーダル内の処理は外側にバブリングさせない
  283.             e.stopPropagation();
  284.         });
  285.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  286.             \$('.ec-modal').hide()
  287.         });
  288.     </script>
  289.     <script type=\"application/ld+json\">
  290.     {
  291.         \"@context\": \"https://schema.org/\",
  292.         \"@type\": \"Product\",
  293.         \"name\": \"";
  294.         // line 206
  295.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'206$this->source); })()), "name", [], "any"falsefalsefalse206), "html"nulltrue);
  296.         echo "\",
  297.         \"image\": [
  298.             ";
  299.         // line 208
  300.         $context['_parent'] = $context;
  301.         $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.'208$this->source); })()), "ProductImage", [], "any"falsefalsefalse208));
  302.         $context['_iterated'] = false;
  303.         $context['loop'] = [
  304.           'parent' => $context['_parent'],
  305.           'index0' => 0,
  306.           'index'  => 1,
  307.           'first'  => true,
  308.         ];
  309.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  310.             $length count($context['_seq']);
  311.             $context['loop']['revindex0'] = $length 1;
  312.             $context['loop']['revindex'] = $length;
  313.             $context['loop']['length'] = $length;
  314.             $context['loop']['last'] = === $length;
  315.         }
  316.         foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
  317.             // line 209
  318.             echo "                \"";
  319.             echo twig_escape_filter($this->envtwig_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.'209$this->source); })()), "request", [], "any"falsefalsefalse209), "schemeAndHttpHost", [], "any"falsefalsefalse209), "html"nulltrue);
  320.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"], "save_image"), "html"nulltrue);
  321.             echo "\"";
  322.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse209)) {
  323.                 echo ",";
  324.             }
  325.             // line 210
  326.             echo "
  327.             ";
  328.             $context['_iterated'] = true;
  329.             ++$context['loop']['index0'];
  330.             ++$context['loop']['index'];
  331.             $context['loop']['first'] = false;
  332.             if (isset($context['loop']['length'])) {
  333.                 --$context['loop']['revindex0'];
  334.                 --$context['loop']['revindex'];
  335.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  336.             }
  337.         }
  338.         if (!$context['_iterated']) {
  339.             // line 212
  340.             echo "                \"";
  341.             echo twig_escape_filter($this->envtwig_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.'212$this->source); })()), "request", [], "any"falsefalsefalse212), "schemeAndHttpHost", [], "any"falsefalsefalse212), "html"nulltrue);
  342.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  343.             echo "\"
  344.             ";
  345.         }
  346.         $_parent $context['_parent'];
  347.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
  348.         $context array_intersect_key($context$_parent) + $_parent;
  349.         // line 214
  350.         echo "        ],
  351.         \"description\": \"";
  352.         // line 215
  353.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_replace_filter(((twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"truetruefalse215)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"falsefalsefalse215), 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.'215$this->source); })()), "description_detail", [], "any"falsefalsefalse215))) : (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.'215$this->source); })()), "description_detail", [], "any"falsefalsefalse215))), ["
  354. => """ " => ""]), 0300), "html"nulltrue);
  355.         echo "\",
  356.         ";
  357.         // line 216
  358.         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.'216$this->source); })()), "code_min", [], "any"falsefalsefalse216)) {
  359.             // line 217
  360.             echo "        \"sku\": \"";
  361.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'217$this->source); })()), "code_min", [], "any"falsefalsefalse217), "html"nulltrue);
  362.             echo "\",
  363.         ";
  364.         }
  365.         // line 219
  366.         echo "        \"offers\": {
  367.             \"@type\": \"Offer\",
  368.             \"url\": \"";
  369.         // line 221
  370.         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.'221$this->source); })()), "id", [], "any"falsefalsefalse221)]), "html"nulltrue);
  371.         echo "\",
  372.             \"priceCurrency\": \"";
  373.         // line 222
  374.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'222$this->source); })()), "currency", [], "any"falsefalsefalse222), "html"nulltrue);
  375.         echo "\",
  376.             \"price\": ";
  377.         // line 223
  378.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'223$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse223), "html"nulltrue);
  379.         echo ",
  380.             \"availability\": \"";
  381.         // line 224
  382.         echo ((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.'224$this->source); })()), "stock_find", [], "any"falsefalsefalse224)) ? ("InStock") : ("OutOfStock"));
  383.         echo "\"
  384.         }
  385.     }
  386.     </script>
  387.     <script>
  388.     \$(function(){
  389.       // 変数に要素を入れる
  390.       var open = \$('.modal-open'),
  391.         close = \$('.modal-close'),
  392.         container = \$('.modal-container');
  393.       //開くボタンをクリックしたらモーダルを表示する
  394.       open.on('click',function(){
  395.         container.addClass('active');
  396.         return false;
  397.       });
  398.       //閉じるボタンをクリックしたらモーダルを閉じる
  399.       close.on('click',function(){
  400.         container.removeClass('active');
  401.       });
  402.       //モーダルの外側をクリックしたらモーダルを閉じる
  403.       \$(document).on('click',function(e) {
  404.         if(!\$(e.target).closest('.modal-body').length) {
  405.           container.removeClass('active');
  406.         }
  407.       });
  408.     });
  409.     </script>
  410.     <script>
  411.         \$(function() {
  412.             var w = window.innerWidth;
  413.             \$('.slide-thumb').each(function () {
  414.               \$(this).appendTo('.item_visual_thumb');
  415.             });
  416.             if( \$('.item_visual_main .slide-item').length < 2 ){
  417.               \$('.item_visual_thumb').hide();
  418.               return;
  419.             }
  420.             if (w > 767) {
  421.               \$('.item_visual_main').not('.slick-initialized').slick({
  422.                   dots: false,
  423.                   arrows: true,
  424.                   autoplay: true,
  425.                   infinite: true,
  426.                   fade: false,
  427.                   autoplaySpeed: 3600,
  428.                   speed: 450,
  429.                   slidesToShow: 1,
  430.                   variableWidth: true,
  431.                   centerMode: true,
  432.                   centerPadding: '50px',
  433.                   lazyLoad: 'progressive',
  434.                   asNavFor: \".item_visual_thumb\"
  435.               });
  436.             } else {
  437.               \$('.item_visual_main').not('.slick-initialized').slick({
  438.                   dots: false,
  439.                   arrows: true,
  440.                   autoplay: true,
  441.                   infinite: true,
  442.                   fade: false,
  443.                   autoplaySpeed: 3600,
  444.                   speed: 450,
  445.                   slidesToShow: 1,
  446.                   variableWidth: false,
  447.                   centerMode: true,
  448.                   centerPadding: '0',
  449.                   lazyLoad: 'progressive',
  450.                   asNavFor: \".item_visual_thumb\"
  451.               });
  452.             }
  453.             if (w > 960) {
  454.                 \$('.item_visual_thumb').not('.slick-initialized').slick({
  455.                     dots: false,
  456.                     arrows: false,
  457.                     autoplay: false,
  458.                     infinite: true,
  459.                     slidesToShow: 10,
  460.                     lazyLoad: 'progressive',
  461.                     focusOnSelect: true,
  462.                     asNavFor: \".item_visual_main\"
  463.                 });
  464.             } else if (960 >= w > 639) {
  465.                 \$('.item_visual_thumb').not('.slick-initialized').slick({
  466.                     dots: false,
  467.                     arrows: false,
  468.                     autoplay: false,
  469.                     infinite: true,
  470.                     rows: 2,
  471.                     slidesToShow: 5,
  472.                     lazyLoad: 'progressive',
  473.                     focusOnSelect: true,
  474.                     asNavFor: \".item_visual_main\"
  475.                 });
  476.             } else {
  477.               \$('.item_visual_thumb').not('.slick-initialized').slick({
  478.                   dots: false,
  479.                   arrows: false,
  480.                   autoplay: false,
  481.                   infinite: true,
  482.                   rows: 3,
  483.                   slidesToShow: 3,
  484.                   lazyLoad: 'progressive',
  485.                   focusOnSelect: true,
  486.                   asNavFor: \".item_visual_main\"
  487.               });
  488.             }
  489.         });
  490.     </script>
  491. ";
  492.         
  493.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  494.         
  495.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  496.     }
  497.     // line 351
  498.     public function block_main($context, array $blocks = [])
  499.     {
  500.         $macros $this->macros;
  501.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  502.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  503.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  504.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  505.         // line 352
  506.         echo "    ";
  507.         if (($this->extensions['Customize\Twig\Extension\TwigExtension']->IsChainStore() == false)) {
  508.             // line 353
  509.             echo "        <div class=\"breadcrumb-wrapper\">
  510.             <ol class=\"breadcrumb\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  511.                 <li class=\"breadcrumb__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  512.                     <a itemprop=\"item\" href=\"";
  513.             // line 356
  514.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  515.             echo "\">
  516.                         <span itemprop=\"name\">HOME</span>
  517.                     </a>
  518.                     <meta itemprop=\"position\" content=\"1\" />
  519.                 </li>
  520.                 <li class=\"breadcrumb__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  521.                     <a itemprop=\"item\" href=\"";
  522.             // line 362
  523.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  524.             echo "\">
  525.                         <span itemprop=\"name\">ONLINE SHOP</span>
  526.                     </a>
  527.                     <meta itemprop=\"position\" content=\"2\" />
  528.                 </li>
  529.                 <li class=\"breadcrumb__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  530.                     <span itemprop=\"name\">";
  531.             // line 368
  532.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'368$this->source); })()), "name", [], "any"falsefalsefalse368), "html"nulltrue);
  533.             echo "</span>
  534.                     <meta itemprop=\"position\" content=\"3\" />
  535.                 </li>
  536.             </ol>
  537.         </div>
  538.     ";
  539.         }
  540.         // line 374
  541.         echo "
  542.     ";
  543.         // line 375
  544.         $context["hasCategory"] = 0;
  545.         // line 376
  546.         echo "    ";
  547.         $context['_parent'] = $context;
  548.         $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.'376$this->source); })()), "ProductCategories", [], "any"falsefalsefalse376));
  549.         foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  550.             // line 377
  551.             echo "          ";
  552.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse377), "id", [], "any"falsefalsefalse377) == 1)) {
  553.                 // line 378
  554.                 echo "            ";
  555.                 $context["hasCategory"] = 1;
  556.                 // line 379
  557.                 echo "          ";
  558.             }
  559.             // line 380
  560.             echo "    ";
  561.         }
  562.         $_parent $context['_parent'];
  563.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  564.         $context array_intersect_key($context$_parent) + $_parent;
  565.         // line 381
  566.         echo "    <div class=\"ec-productRole\">
  567.         ";
  568.         // line 383
  569.         echo "        <div class=\"ec-productRole__title\">
  570.             <h2 class=\"ec-headingTitle\">";
  571.         // line 384
  572.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'384$this->source); })()), "name", [], "any"falsefalsefalse384), "html"nulltrue);
  573.         echo "</h2>
  574.         </div>
  575.         <div class=\"ec-grid2\">
  576.             <div class=\"ec-grid2__column\">
  577.                 <div class=\"ec-sliderItemRole\">
  578.                     <div class=\"item_visual_main\">
  579.                         ";
  580.         // line 391
  581.         $context['_parent'] = $context;
  582.         $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.'391$this->source); })()), "ProductImage", [], "any"falsefalsefalse391));
  583.         $context['_iterated'] = false;
  584.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  585.             // line 392
  586.             echo "                            <div class=\"slide-item\"><img src=\"";
  587.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  588.             echo "\"></div>
  589.                             <div class=\"slide-thumb\"><img src=\"";
  590.             // line 393
  591.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  592.             echo "\"></div>
  593.                         ";
  594.             $context['_iterated'] = true;
  595.         }
  596.         if (!$context['_iterated']) {
  597.             // line 395
  598.             echo "                            <div class=\"slide-item\"><img src=\"";
  599.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  600.             echo "\"/></div>
  601.                             <div class=\"slide-thumb\"><img src=\"";
  602.             // line 396
  603.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  604.             echo "\"/></div>
  605.                         ";
  606.         }
  607.         $_parent $context['_parent'];
  608.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  609.         $context array_intersect_key($context$_parent) + $_parent;
  610.         // line 398
  611.         echo "                    </div>
  612.                     <div class=\"item_visual_thumb\">
  613.                     </div>
  614.                 </div>
  615.             </div>
  616.             <div class=\"ec-grid2__column\">
  617.                 <div class=\"ec-productRole__profile\">
  618.                     ";
  619.         // line 407
  620.         echo "                    <ul class=\"ec-productRole__tags\">
  621.                         ";
  622.         // line 408
  623.         $context['_parent'] = $context;
  624.         $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.'408$this->source); })()), "Tags", [], "any"falsefalsefalse408));
  625.         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  626.             // line 409
  627.             echo "                            <li class=\"ec-productRole__tag tag_";
  628.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse409), "html"nulltrue);
  629.             echo "\">";
  630.             echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  631.             echo "</li>
  632.                         ";
  633.         }
  634.         $_parent $context['_parent'];
  635.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  636.         $context array_intersect_key($context$_parent) + $_parent;
  637.         // line 411
  638.         echo "                    </ul>
  639.                     ";
  640.         // line 413
  641.         echo "                    ";
  642.         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.'413$this->source); })()), "hasProductClass", [], "any"falsefalsefalse413)) {
  643.             // line 414
  644.             echo "<div class=\"ec-productRole__priceRegular\">
  645.                             ";
  646.             // line 415
  647.             if (( !(null === 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.'415$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse415)) && (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.'415$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse415) == 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.'415$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse415)))) {
  648.                 // line 416
  649.                 echo "                                <span class=\"ec-productRole__priceRegularPrice\">";
  650.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  651.                 echo ":<span class=\"price01-default\">";
  652.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'416$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse416)), "html"nulltrue);
  653.                 echo "</span></span>
  654.                                 <span class=\"ec-productRole__priceRegularTax\">";
  655.                 // line 417
  656.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  657.                 echo "</span>
  658.                             ";
  659.             } elseif (( !(null === twig_get_attribute($this->env$this->source,             // line 418
  660. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'418$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse418)) &&  !(null === 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.'418$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse418)))) {
  661.                 // line 419
  662.                 echo "                                <span class=\"ec-productRole__priceRegularPrice\">";
  663.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  664.                 echo ":<span class=\"price01-default\">";
  665.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'419$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse419)), "html"nulltrue);
  666.                 echo "~ ";
  667.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'419$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse419)), "html"nulltrue);
  668.                 echo "</span></span>
  669.                                 <span class=\"ec-productRole__priceRegularTax\">";
  670.                 // line 420
  671.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  672.                 echo "</span>
  673.                             ";
  674.             }
  675.             // line 422
  676.             echo "                        </div>
  677.                     ";
  678.         } else {
  679.             // line 424
  680.             echo "                        ";
  681.             if ( !(null === 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.'424$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse424))) {
  682.                 // line 425
  683.                 echo "                            <span class=\"ec-productRole__priceRegularPrice\">";
  684.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  685.                 echo ":";
  686.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'425$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse425)), "html"nulltrue);
  687.                 echo "</span>
  688.                             <span class=\"ec-productRole__priceRegularTax\">";
  689.                 // line 426
  690.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  691.                 echo "</span>
  692.                         ";
  693.             }
  694.             // line 428
  695.             echo "                    ";
  696.         }
  697.         // line 429
  698.         echo "                    ";
  699.         // line 430
  700.         echo "                    <div class=\"ec-productRole__price\">
  701.                         ";
  702.         // line 431
  703.         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.'431$this->source); })()), "hasProductClass", [], "any"falsefalsefalse431)) {
  704.             // line 432
  705.             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.'432$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse432) == twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'432$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse432))) {
  706.                 // line 433
  707.                 echo "                                <div class=\"ec-price\">
  708.                                     <span class=\"ec-price__price price02-default\">";
  709.                 // line 434
  710.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'434$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse434)), "html"nulltrue);
  711.                 echo "</span>
  712.                                     <span class=\"ec-price__tax\">";
  713.                 // line 435
  714.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  715.                 echo "</span>
  716.                                 </div>
  717.                             ";
  718.             } else {
  719.                 // line 438
  720.                 echo "                                <div class=\"ec-price\">
  721.                                     <span class=\"ec-price__price price02-default\">";
  722.                 // line 439
  723.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'439$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse439)), "html"nulltrue);
  724.                 echo " ~ ";
  725.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'439$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse439)), "html"nulltrue);
  726.                 echo "</span>
  727.                                     <span class=\"ec-price__tax\">";
  728.                 // line 440
  729.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  730.                 echo "</span>
  731.                                 </div>
  732.                             ";
  733.             }
  734.             // line 443
  735.             echo "                        ";
  736.         } else {
  737.             // line 444
  738.             echo "                            <div class=\"ec-price\">
  739.                                 <span class=\"ec-price__price\">";
  740.             // line 445
  741.             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'445$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse445)), "html"nulltrue);
  742.             echo "</span>
  743.                                 <span class=\"ec-price__tax\">";
  744.             // line 446
  745.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'446$this->source); })())) ? ("incl. tax") : ("common.tax_include"))), "html"nulltrue);
  746.             echo "</span>
  747.                             </div>
  748.                         ";
  749.         }
  750.         // line 449
  751.         echo "                    </div>
  752.                     ";
  753.         // line 451
  754.         echo "                    ";
  755.         if ( !twig_test_empty(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.'451$this->source); })()), "code_min", [], "any"falsefalsefalse451))) {
  756.             // line 452
  757.             echo "                        <div class=\"ec-productRole__code\">
  758.                             ";
  759.             // line 453
  760.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'453$this->source); })())) ? ("Product code") : ("front.product.code"))), "html"nulltrue);
  761.             echo ": <span class=\"product-code-default\">";
  762.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'453$this->source); })()), "code_min", [], "any"falsefalsefalse453), "html"nulltrue);
  763.             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.'453$this->source); })()), "code_min", [], "any"falsefalsefalse453) != 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.'453$this->source); })()), "code_max", [], "any"falsefalsefalse453))) {
  764.                 echo " ~ ";
  765.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'453$this->source); })()), "code_max", [], "any"falsefalsefalse453), "html"nulltrue);
  766.             }
  767.             echo "</span>
  768.                         </div>
  769.                     ";
  770.         }
  771.         // line 456
  772.         echo "                    ";
  773.         // line 457
  774.         echo "                    ";
  775.         if ( !twig_test_empty(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.'457$this->source); })()), "ProductCategories", [], "any"falsefalsefalse457))) {
  776.             // line 458
  777.             echo "                        <div class=\"ec-productRole__category\">
  778.                             <ul class=\"ec-productRole-category-list\">
  779.                                 ";
  780.             // line 460
  781.             $context['_parent'] = $context;
  782.             $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.'460$this->source); })()), "ProductCategories", [], "any"falsefalsefalse460));
  783.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  784.                 // line 461
  785.                 echo "                                    ";
  786.                 $context["continue1"] = false;
  787.                 // line 462
  788.                 echo "                                    ";
  789.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse462), "path", [], "any"falsefalsefalse462), 0, [], "array"falsefalsefalse462), "id", [], "any"falsefalsefalse462) == 11)) {
  790.                     // line 463
  791.                     echo "                                        ";
  792.                     $context["continue1"] = true;
  793.                     // line 464
  794.                     echo "                                    ";
  795.                 }
  796.                 // line 465
  797.                 echo "                                    ";
  798.                 if ( !(isset($context["continue1"]) || array_key_exists("continue1"$context) ? $context["continue1"] : (function () { throw new RuntimeError('Variable "continue1" does not exist.'465$this->source); })())) {
  799.                     // line 466
  800.                     echo "                                        <li class=\"ec-productRole-category-list__item\">
  801.                                             ";
  802.                     // line 467
  803.                     $context['_parent'] = $context;
  804.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse467), "path", [], "any"falsefalsefalse467));
  805.                     $context['loop'] = [
  806.                       'parent' => $context['_parent'],
  807.                       'index0' => 0,
  808.                       'index'  => 1,
  809.                       'first'  => true,
  810.                     ];
  811.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  812.                         $length count($context['_seq']);
  813.                         $context['loop']['revindex0'] = $length 1;
  814.                         $context['loop']['revindex'] = $length;
  815.                         $context['loop']['length'] = $length;
  816.                         $context['loop']['last'] = === $length;
  817.                     }
  818.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  819.                         // line 468
  820.                         echo "                                                <a class=\"category-";
  821.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse468), "html"nulltrue);
  822.                         echo "\" href=\"";
  823.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  824.                         echo "?category_id=";
  825.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse468), "html"nulltrue);
  826.                         echo "\">";
  827.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse468), "html"nulltrue);
  828.                         echo "</a>";
  829.                         if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse468) == false)) {
  830.                             echo "<span>></span>";
  831.                         }
  832.                         ++$context['loop']['index0'];
  833.                         ++$context['loop']['index'];
  834.                         $context['loop']['first'] = false;
  835.                         if (isset($context['loop']['length'])) {
  836.                             --$context['loop']['revindex0'];
  837.                             --$context['loop']['revindex'];
  838.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  839.                         }
  840.                     }
  841.                     $_parent $context['_parent'];
  842.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  843.                     $context array_intersect_key($context$_parent) + $_parent;
  844.                     // line 470
  845.                     echo "                                        </li>
  846.                                     ";
  847.                 }
  848.                 // line 472
  849.                 echo "                                ";
  850.             }
  851.             $_parent $context['_parent'];
  852.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  853.             $context array_intersect_key($context$_parent) + $_parent;
  854.             // line 473
  855.             echo "                            </ul>
  856.                         </div>
  857.                     ";
  858.         }
  859.         // line 476
  860.         echo "
  861.                     <div class=\"ec-productRole__description\">";
  862.         // line 477
  863.         echo nl2br(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.'477$this->source); })()), "description_detail", [], "any"falsefalsefalse477));
  864.         echo "
  865.                     </div>
  866.                     <form action=\"";
  867.         // line 480
  868.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["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.'480$this->source); })()), "id", [], "any"falsefalsefalse480)]), "html"nulltrue);
  869.         echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  870.                         ";
  871.         // line 481
  872.         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.'481$this->source); })()), "stock_find", [], "any"falsefalsefalse481)) {
  873.             // line 482
  874.             echo "                            <div class=\"ec-productRole__actions\">
  875.                                 ";
  876.             // line 483
  877.             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse483)) {
  878.                 // line 484
  879.                 echo "                                    ";
  880.                 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.'484$this->source); })()), "hide_class_category1", [], "any"falsefalsefalse484)) {
  881.                     // line 485
  882.                     echo "                                        <div class=\"ec-select hide_class_category1\" style=\"display:none;\">
  883.                                     ";
  884.                 } else {
  885.                     // line 487
  886.                     echo "                                        <div class=\"ec-select\">
  887.                                     ";
  888.                 }
  889.                 // line 489
  890.                 echo "
  891.                                         ";
  892.                 // line 490
  893.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'490$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse490), 'widget');
  894.                 echo "
  895.                                         ";
  896.                 // line 491
  897.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'491$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse491), 'errors');
  898.                 echo "
  899.                                     </div>
  900.                                     ";
  901.                 // line 493
  902.                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse493)) {
  903.                     // line 494
  904.                     echo "                                        ";
  905.                     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.'494$this->source); })()), "hide_class_category2", [], "any"falsefalsefalse494)) {
  906.                         // line 495
  907.                         echo "                                            <div class=\"ec-select hide_class_category2\" style=\"display:none;\">
  908.                                         ";
  909.                     } else {
  910.                         // line 497
  911.                         echo "                                            <div class=\"ec-select\">
  912.                                         ";
  913.                     }
  914.                     // line 499
  915.                     echo "
  916.                                             ";
  917.                     // line 500
  918.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'500$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse500), 'widget');
  919.                     echo "
  920.                                             ";
  921.                     // line 501
  922.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'501$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse501), 'errors');
  923.                     echo "
  924.                                         </div>
  925.                                     ";
  926.                 }
  927.                 // line 504
  928.                 echo "                                ";
  929.             }
  930.             // line 505
  931.             echo "                                <div class=\"ec-numberInput\"><span>";
  932.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'505$this->source); })())) ? ("Quantity") : ("common.quantity"))), "html"nulltrue);
  933.             echo "</span>
  934.                                     ";
  935.             // line 506
  936.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'506$this->source); })()), "quantity", [], "any"falsefalsefalse506), 'widget');
  937.             echo "
  938.                                     ";
  939.             // line 507
  940.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'507$this->source); })()), "quantity", [], "any"falsefalsefalse507), 'errors');
  941.             echo "
  942.                                 </div>
  943.                             </div>
  944.                             <div class=\"ec-productRole__btn ec-productRole__btn--add\">
  945.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  946.                                     ";
  947.             // line 513
  948.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'513$this->source); })())) ? ("Add to cart") : ("front.product.add_cart"))), "html"nulltrue);
  949.             echo "
  950.                                 </button>
  951.                             </div>
  952.                         ";
  953.         } else {
  954.             // line 517
  955.             echo "                            <div class=\"ec-productRole__btn\">
  956.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  957.                                     ";
  958.             // line 519
  959.             (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'519$this->source); })())) ? (print ("Out of stock")) : (print (twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.out_of_stock"), "html"nulltrue))));
  960.             echo "
  961.                                 </button>
  962.                             </div>
  963.                         ";
  964.         }
  965.         // line 523
  966.         echo "
  967.                         ";
  968.         // line 524
  969.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'524$this->source); })()), 'rest');
  970.         echo "
  971.                     </form>
  972.                     <div class=\"ec-modal\">
  973.                         <div class=\"ec-modal-overlay\">
  974.                             <div class=\"ec-modal-wrap\">
  975.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  976.         // line 530
  977.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  978.         echo "\" alt=\"\"/></span></span>
  979.                                 ";
  980.         // line 531
  981.         if (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'531$this->source); })()) == false)) {
  982.             // line 532
  983.             echo "                                    <div id=\"ec-modal-header\" class=\"text-center\">";
  984.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_complete"), "html"nulltrue);
  985.             echo "</div>
  986.                                 ";
  987.         } else {
  988.             // line 534
  989.             echo "                                    <div class=\"text-center\">Added to cart</div>
  990.                                 ";
  991.         }
  992.         // line 536
  993.         echo "                                <div class=\"ec-modal-box\">
  994.                                     <div class=\"ec-role\">
  995.                                         <span class=\"ec-inlineBtn--cancel\">";
  996.         // line 538
  997.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'538$this->source); })())) ? ("Keep shopping") : ("front.product.continue"))), "html"nulltrue);
  998.         echo "</span>
  999.                                         <a href=\"";
  1000.         // line 539
  1001.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  1002.         echo "\" class=\"ec-inlineBtn--action\">";
  1003.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'539$this->source); })())) ? ("Go to cart") : ("common.go_to_cart"))), "html"nulltrue);
  1004.         echo "</a>
  1005.                                     </div>
  1006.                                 </div>
  1007.                             </div>
  1008.                         </div>
  1009.                     </div>
  1010.                     <div class=\"like_return-btn\">
  1011.                         ";
  1012.         // line 547
  1013.         if (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'547$this->source); })()) == false)) {
  1014.             // line 548
  1015.             echo "                            ";
  1016.             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.'548$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse548)) {
  1017.                 // line 549
  1018.                 echo "                                <form action=\"";
  1019.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'549$this->source); })()), "id", [], "any"falsefalsefalse549)]), "html"nulltrue);
  1020.                 echo "\" method=\"post\">
  1021.                                     <div class=\"ec-productRole__btn ec-productRole__btn--favorite\">
  1022.                                         ";
  1023.                 // line 551
  1024.                 if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'551$this->source); })()) == false)) {
  1025.                     // line 552
  1026.                     echo "                                            <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  1027.                                                 ";
  1028.                     // line 553
  1029.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite"), "html"nulltrue);
  1030.                     echo "
  1031.                                             </button>
  1032.                                         ";
  1033.                 } else {
  1034.                     // line 556
  1035.                     echo "                                            <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1036.                                                     disabled=\"disabled\">";
  1037.                     // line 557
  1038.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite_alrady"), "html"nulltrue);
  1039.                     echo "
  1040.                                             </button>
  1041.                                         ";
  1042.                 }
  1043.                 // line 560
  1044.                 echo "                                    </div>
  1045.                                 </form>
  1046.                             ";
  1047.             }
  1048.             // line 563
  1049.             echo "                        ";
  1050.         }
  1051.         // line 564
  1052.         echo "
  1053.                         <div class=\"ec-productRole__btn ec-productRole__btn--favorite\">
  1054.                             <a class=\"ec-blockBtn--cancel\" href=\"";
  1055.         // line 566
  1056.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  1057.         echo "\">
  1058.                               ";
  1059.         // line 567
  1060.         echo (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'567$this->source); })())) ? ("Back to product list") : ("商品一覧に戻る"));
  1061.         echo "
  1062.                             </a>
  1063.                         </div>
  1064.                     </div>
  1065.                     ";
  1066.         // line 572
  1067.         if (($this->extensions['Customize\Twig\Extension\TwigExtension']->IsChainStore() == false)) {
  1068.             // line 573
  1069.             echo "                    ";
  1070.             if (((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'573$this->source); })()) == 1)) {
  1071.                 // line 574
  1072.                 echo "                    <div class=\"ec-modal-02\">
  1073.                         <div class=\"ec-modal-02__banner modal-open\">
  1074.                             ";
  1075.                 // line 576
  1076.                 if (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'576$this->source); })()) == false)) {
  1077.                     // line 577
  1078.                     echo "                                <img src=\"";
  1079.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/product/banner_howtoeat.png"), "html"nulltrue);
  1080.                     echo "\" alt=\"おいしいお召し上がり方\">
  1081.                             ";
  1082.                 } else {
  1083.                     // line 579
  1084.                     echo "                                <img src=\"";
  1085.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/product/banner_howtoeat_en.png"), "html"nulltrue);
  1086.                     echo "\" alt=\"How to eat deliciously\">
  1087.                             ";
  1088.                 }
  1089.                 // line 581
  1090.                 echo "                        </div>
  1091.                         <div class=\"modal-container\">
  1092.                             <div class=\"modal-body\">
  1093.                                 <!-- 閉じるボタン -->
  1094.                                 <div class=\"modal-close\">×</div>
  1095.                                 <!-- モーダル内のコンテンツ -->
  1096.                                 <div class=\"modal-content\">
  1097.                                     ";
  1098.                 // line 588
  1099.                 if (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'588$this->source); })()) == false)) {
  1100.                     // line 589
  1101.                     echo "                                        <p><img src=\"";
  1102.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/product/goodtoeat.jpg"), "html"nulltrue);
  1103.                     echo "\" width=\"500\" height=\"600\" alt=\"ダシーズのおいしい食べ方\"></p>
  1104.                                     ";
  1105.                 } else {
  1106.                     // line 591
  1107.                     echo "                                        <p><img src=\"";
  1108.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/product/goodtoeat_en.jpg"), "html"nulltrue);
  1109.                     echo "\" width=\"500\" height=\"600\" alt=\"How to eat deliciously\"></p>
  1110.                                     ";
  1111.                 }
  1112.                 // line 593
  1113.                 echo "                                </div>
  1114.                             </div>
  1115.                         </div>
  1116.                     </div>
  1117.                     ";
  1118.             }
  1119.             // line 598
  1120.             echo "                    ";
  1121.         }
  1122.         // line 599
  1123.         echo "
  1124.                 </div>
  1125.             </div>
  1126.         </div>
  1127.         ";
  1128.         // line 603
  1129.         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.'603$this->source); })()), "freearea", [], "any"falsefalsefalse603)) {
  1130.             // line 604
  1131.             echo "            <div class=\"ec-productRole__description\">
  1132.                 ";
  1133.             // line 605
  1134.             echo twig_include($this->env$contexttwig_template_from_string($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'605$this->source); })()), "freearea", [], "any"falsefalsefalse605)));
  1135.             echo "
  1136.             </div>
  1137.         ";
  1138.         }
  1139.         // line 608
  1140.         echo "    </div>
  1141.     ";
  1142.         // line 610
  1143.         if (($this->extensions['Customize\Twig\Extension\TwigExtension']->IsChainStore() == false)) {
  1144.             // line 611
  1145.             echo "        ";
  1146.             if (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'611$this->source); })()) == true)) {
  1147.                 // line 612
  1148.                 echo "            ";
  1149.                 $context["NewProducts"] = $this->extensions['Customize\Twig\Extension\TwigExtension']->getCustomizeNewProduct();
  1150.                 // line 613
  1151.                 echo "            ";
  1152.                 if ((twig_length_filter($this->env, (isset($context["NewProducts"]) || array_key_exists("NewProducts"$context) ? $context["NewProducts"] : (function () { throw new RuntimeError('Variable "NewProducts" does not exist.'613$this->source); })())) > 0)) {
  1153.                     // line 614
  1154.                     echo "                <div class=\"ec-products-top-area ec-products-top-area--new-list\">
  1155.                     <div class=\"ec-product-category-title\">
  1156.                         <h2 class=\"ec-product-category-title__title\">";
  1157.                     // line 616
  1158.                     echo (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'616$this->source); })())) ? ("Recommended") : ("こちらもおすすめ"));
  1159.                     echo "</span></h2>
  1160.                     </div>
  1161.                     <div class=\"ec-shelfRole\">
  1162.                         <ul class=\"ec-shelfGrid\">
  1163.                             ";
  1164.                     // line 620
  1165.                     $context['_parent'] = $context;
  1166.                     $context['_seq'] = twig_ensure_traversable((isset($context["NewProducts"]) || array_key_exists("NewProducts"$context) ? $context["NewProducts"] : (function () { throw new RuntimeError('Variable "NewProducts" does not exist.'620$this->source); })()));
  1167.                     foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  1168.                         // line 621
  1169.                         echo "                                <li class=\"ec-shelfGrid__item\">
  1170.                                     <a href=\"";
  1171.                         // line 622
  1172.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse622)]), "html"nulltrue);
  1173.                         echo "\">
  1174.                                         <p class=\"ec-shelfGrid__item-image\">
  1175.                                             <img src=\"";
  1176.                         // line 624
  1177.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse624)), "save_image"), "html"nulltrue);
  1178.                         echo "\" alt=\"";
  1179.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse624), "html"nulltrue);
  1180.                         echo "\" loading=\"lazy\">
  1181.                                         </p>
  1182.                                         <p class=\"ec-shelfGrid__title\">";
  1183.                         // line 626
  1184.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse626), "html"nulltrue);
  1185.                         echo "</p>
  1186.                                         ";
  1187.                         // line 627
  1188.                         if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse627)) {
  1189.                             // line 628
  1190.                             echo "                                            <p class=\"ec-shelfGrid__description\">";
  1191.                             echo nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse628));
  1192.                             echo "</p>
  1193.                                         ";
  1194.                         }
  1195.                         // line 630
  1196.                         echo "                                        <p class=\"price02-default\">
  1197.                                             ";
  1198.                         // line 631
  1199.                         if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse631)) {
  1200.                             // line 632
  1201.                             echo "                                                ";
  1202.                             if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse632) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse632))) {
  1203.                                 // line 633
  1204.                                 echo "                                                    ";
  1205.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse633)), "html"nulltrue);
  1206.                                 echo "<span>";
  1207.                                 echo (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'633$this->source); })())) ? ("(incl. tax)") : ("(税込)"));
  1208.                                 echo "</span>
  1209.                                                 ";
  1210.                             } else {
  1211.                                 // line 635
  1212.                                 echo "                                                    ";
  1213.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse635)), "html"nulltrue);
  1214.                                 echo " ~ ";
  1215.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse635)), "html"nulltrue);
  1216.                                 echo "<span>";
  1217.                                 echo (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'635$this->source); })())) ? ("(incl. tax)") : ("(税込)"));
  1218.                                 echo "</span>
  1219.                                                 ";
  1220.                             }
  1221.                             // line 637
  1222.                             echo "                                            ";
  1223.                         } else {
  1224.                             // line 638
  1225.                             echo "                                                ";
  1226.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse638)), "html"nulltrue);
  1227.                             echo "<span>";
  1228.                             echo (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'638$this->source); })())) ? ("(incl. tax)") : ("(税込)"));
  1229.                             echo "</span>
  1230.                                             ";
  1231.                         }
  1232.                         // line 640
  1233.                         echo "                                        </p>
  1234.                                     </a>
  1235.                                 </li>
  1236.                             ";
  1237.                     }
  1238.                     $_parent $context['_parent'];
  1239.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  1240.                     $context array_intersect_key($context$_parent) + $_parent;
  1241.                     // line 644
  1242.                     echo "                        </ul>
  1243.                     </div>
  1244.                 </div>
  1245.             ";
  1246.                 }
  1247.                 // line 648
  1248.                 echo "        ";
  1249.             }
  1250.             // line 649
  1251.             echo "    ";
  1252.         }
  1253.         
  1254.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1255.         
  1256.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1257.     }
  1258.     public function getTemplateName()
  1259.     {
  1260.         return "Product/detail.twig";
  1261.     }
  1262.     public function isTraitable()
  1263.     {
  1264.         return false;
  1265.     }
  1266.     public function getDebugInfo()
  1267.     {
  1268.         return array (  1311 => 649,  1308 => 648,  1302 => 644,  1293 => 640,  1285 => 638,  1282 => 637,  1272 => 635,  1264 => 633,  1261 => 632,  1259 => 631,  1256 => 630,  1250 => 628,  1248 => 627,  1244 => 626,  1237 => 624,  1232 => 622,  1229 => 621,  1225 => 620,  1218 => 616,  1214 => 614,  1211 => 613,  1208 => 612,  1205 => 611,  1203 => 610,  1199 => 608,  1193 => 605,  1190 => 604,  1188 => 603,  1182 => 599,  1179 => 598,  1172 => 593,  1166 => 591,  1160 => 589,  1158 => 588,  1149 => 581,  1143 => 579,  1137 => 577,  1135 => 576,  1131 => 574,  1128 => 573,  1126 => 572,  1118 => 567,  1114 => 566,  1110 => 564,  1107 => 563,  1102 => 560,  1096 => 557,  1093 => 556,  1087 => 553,  1084 => 552,  1082 => 551,  1076 => 549,  1073 => 548,  1071 => 547,  1058 => 539,  1054 => 538,  1050 => 536,  1046 => 534,  1040 => 532,  1038 => 531,  1034 => 530,  1025 => 524,  1022 => 523,  1015 => 519,  1011 => 517,  1004 => 513,  995 => 507,  991 => 506,  986 => 505,  983 => 504,  977 => 501,  973 => 500,  970 => 499,  966 => 497,  962 => 495,  959 => 494,  957 => 493,  952 => 491,  948 => 490,  945 => 489,  941 => 487,  937 => 485,  934 => 484,  932 => 483,  929 => 482,  927 => 481,  923 => 480,  917 => 477,  914 => 476,  909 => 473,  903 => 472,  899 => 470,  874 => 468,  857 => 467,  854 => 466,  851 => 465,  848 => 464,  845 => 463,  842 => 462,  839 => 461,  835 => 460,  831 => 458,  828 => 457,  826 => 456,  814 => 453,  811 => 452,  808 => 451,  805 => 449,  799 => 446,  795 => 445,  792 => 444,  789 => 443,  783 => 440,  777 => 439,  774 => 438,  768 => 435,  764 => 434,  761 => 433,  759 => 432,  757 => 431,  754 => 430,  752 => 429,  749 => 428,  744 => 426,  737 => 425,  734 => 424,  730 => 422,  725 => 420,  716 => 419,  714 => 418,  710 => 417,  703 => 416,  701 => 415,  698 => 414,  695 => 413,  692 => 411,  681 => 409,  677 => 408,  674 => 407,  664 => 398,  656 => 396,  651 => 395,  644 => 393,  639 => 392,  634 => 391,  624 => 384,  621 => 383,  618 => 381,  612 => 380,  609 => 379,  606 => 378,  603 => 377,  598 => 376,  596 => 375,  593 => 374,  584 => 368,  575 => 362,  566 => 356,  561 => 353,  558 => 352,  548 => 351,  412 => 224,  408 => 223,  404 => 222,  400 => 221,  396 => 219,  390 => 217,  388 => 216,  383 => 215,  380 => 214,  370 => 212,  356 => 210,  348 => 209,  330 => 208,  325 => 206,  295 => 179,  285 => 172,  255 => 145,  250 => 142,  241 => 136,  237 => 134,  235 => 133,  232 => 132,  223 => 126,  219 => 124,  217 => 123,  201 => 109,  193 => 107,  191 => 106,  186 => 104,  183 => 103,  181 => 102,  167 => 91,  164 => 90,  154 => 89,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  1269.     }
  1270.     public function getSourceContext()
  1271.     {
  1272.         return new Source("{#
  1273. This file is part of EC-CUBE
  1274. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1275. http://www.ec-cube.co.jp/
  1276. For the full copyright and license information, please view the LICENSE
  1277. file that was distributed with this source code.
  1278. #}
  1279. {% extends 'default_frame.twig' %}
  1280. {% set body_class = 'product_page' %}
  1281. {% block stylesheet %}
  1282.     <style>
  1283.         /*モーダル本体の指定 + モーダル外側の背景の指定*/
  1284.         .modal-container{
  1285.           position: fixed;
  1286.           top: 0;
  1287.           left: 0;
  1288.           width: 100%;
  1289.           height: 100%;
  1290.           text-align: center;
  1291.           background: rgba(0,0,0,50%);
  1292.           padding: 40px 20px;
  1293.           overflow: auto;
  1294.           opacity: 0;
  1295.           visibility: hidden;
  1296.           transition: .3s;
  1297.             box-sizing: border-box;
  1298.         }
  1299.         /*モーダル本体の擬似要素の指定*/
  1300.         .modal-container:before{
  1301.           content: \"\";
  1302.           display: inline-block;
  1303.           vertical-align: middle;
  1304.           height: 100%;
  1305.         }
  1306.         /*モーダル本体に「active」クラス付与した時のスタイル*/
  1307.         .modal-container.active{
  1308.           opacity: 1;
  1309.           visibility: visible;
  1310.         }
  1311.         /*モーダル枠の指定*/
  1312.         .modal-body{
  1313.           position: relative;
  1314.           display: inline-block;
  1315.           vertical-align: middle;
  1316.           max-width: 500px;
  1317.           width: 90%;
  1318.         }
  1319.         /*モーダルを閉じるボタンの指定*/
  1320.         .modal-close{
  1321.           position: absolute;
  1322.           display: flex;
  1323.             align-items: center;
  1324.             justify-content: center;
  1325.           top: -40px;
  1326.           right: -40px;
  1327.           width: 40px;
  1328.           height: 40px;
  1329.           font-size: 40px;
  1330.           color: #fff;
  1331.           cursor: pointer;
  1332.         }
  1333.         /*モーダル内のコンテンツの指定*/
  1334.         .modal-content{
  1335.           background: #fff;
  1336.           text-align: left;
  1337.           padding: 30px;
  1338.         }
  1339.         .slide-item:not(.slick-slide) {
  1340.           text-align:center;
  1341.         }
  1342.         .slide-item:not(.slick-slide) img {
  1343.           width: auto;
  1344.           height: auto;
  1345.           max-width: 100%;
  1346.           max-height: 100%;
  1347.         }
  1348.     </style>
  1349. {% endblock %}
  1350. {% block javascript %}
  1351.     <script>
  1352.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  1353.         // 規格2に選択肢を割り当てる。
  1354.         function fnSetClassCategories(form, classcat_id2_selected) {
  1355.             var \$form = \$(form);
  1356.             var product_id = \$form.find('input[name=product_id]').val();
  1357.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  1358.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  1359.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  1360.         }
  1361.         {% if form.classcategory_id2 is defined %}
  1362.         fnSetClassCategories(
  1363.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  1364.         );
  1365.         {% elseif form.classcategory_id1 is defined %}
  1366.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  1367.         {% endif %}
  1368.     </script>
  1369.     <script>
  1370.         \$(function() {
  1371.             // bfcache無効化
  1372.             \$(window).bind('pageshow', function(event) {
  1373.                 if (event.originalEvent.persisted) {
  1374.                     location.reload(true);
  1375.                 }
  1376.             });
  1377.         });
  1378.     </script>
  1379.     <script>
  1380.         \$(function() {
  1381.             \$('.add-cart').on('click', function(event) {
  1382.                 {% if form.classcategory_id1 is defined %}
  1383.                 // 規格1フォームの必須チェック
  1384.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  1385.                     \$('#classcategory_id1')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
  1386.                     return true;
  1387.                 } else {
  1388.                     \$('#classcategory_id1')[0].setCustomValidity('');
  1389.                 }
  1390.                 {% endif %}
  1391.                 {% if form.classcategory_id2 is defined %}
  1392.                 // 規格2フォームの必須チェック
  1393.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  1394.                     \$('#classcategory_id2')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
  1395.                     return true;
  1396.                 } else {
  1397.                     \$('#classcategory_id2')[0].setCustomValidity('');
  1398.                 }
  1399.                 {% endif %}
  1400.                 // 個数フォームのチェック
  1401.                 if (\$('#quantity').val() < 1) {
  1402.                     \$('#quantity')[0].setCustomValidity('{{ 'front.product.invalid_quantity'|trans }}');
  1403.                     return true;
  1404.                 } else {
  1405.                     \$('#quantity')[0].setCustomValidity('');
  1406.                 }
  1407.                 event.preventDefault();
  1408.                 \$form = \$('#form1');
  1409.                 \$.ajax({
  1410.                     url: \$form.attr('action'),
  1411.                     type: \$form.attr('method'),
  1412.                     data: \$form.serialize(),
  1413.                     dataType: 'json',
  1414.                     beforeSend: function(xhr, settings) {
  1415.                         // Buttonを無効にする
  1416.                         \$('.add-cart').prop('disabled', true);
  1417.                     }
  1418.                 }).done(function(data) {
  1419.                     // レスポンス内のメッセージをalertで表示
  1420.                     \$.each(data.messages, function() {
  1421.                         \$('#ec-modal-header').html(this);
  1422.                     });
  1423.                     \$('.ec-modal').show()
  1424.                     // カートブロックを更新する
  1425.                     \$.ajax({
  1426.                         url: \"{{ url('block_cart') }}\",
  1427.                         type: 'GET',
  1428.                         dataType: 'html'
  1429.                     }).done(function(html) {
  1430.                         \$('.ec-headerRole__cart').html(html);
  1431.                     });
  1432.                 }).fail(function(data) {
  1433.                     alert('{{ 'front.product.add_cart_error'|trans }}');
  1434.                 }).always(function(data) {
  1435.                     // Buttonを有効にする
  1436.                     \$('.add-cart').prop('disabled', false);
  1437.                 });
  1438.             });
  1439.             var cat = \$(\".hide_class_category1 select,.hide_class_category2 select\");
  1440.             \$.each(cat, function(){
  1441.                 var select = \$(this);
  1442.                 select.val(select.find(\"option:last\").val());
  1443.                 select.trigger(\"change\");
  1444.             });
  1445.         });
  1446.         \$('.ec-modal-wrap').on('click', function(e) {
  1447.             // モーダル内の処理は外側にバブリングさせない
  1448.             e.stopPropagation();
  1449.         });
  1450.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1451.             \$('.ec-modal').hide()
  1452.         });
  1453.     </script>
  1454.     <script type=\"application/ld+json\">
  1455.     {
  1456.         \"@context\": \"https://schema.org/\",
  1457.         \"@type\": \"Product\",
  1458.         \"name\": \"{{ Product.name }}\",
  1459.         \"image\": [
  1460.             {% for img in Product.ProductImage %}
  1461.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  1462.             {% else %}
  1463.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  1464.             {% endfor %}
  1465.         ],
  1466.         \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  1467.         {% if Product.code_min %}
  1468.         \"sku\": \"{{ Product.code_min }}\",
  1469.         {% endif %}
  1470.         \"offers\": {
  1471.             \"@type\": \"Offer\",
  1472.             \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
  1473.             \"priceCurrency\": \"{{ eccube_config.currency }}\",
  1474.             \"price\": {{ Product.getPrice02IncTaxMin }},
  1475.             \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  1476.         }
  1477.     }
  1478.     </script>
  1479.     <script>
  1480.     \$(function(){
  1481.       // 変数に要素を入れる
  1482.       var open = \$('.modal-open'),
  1483.         close = \$('.modal-close'),
  1484.         container = \$('.modal-container');
  1485.       //開くボタンをクリックしたらモーダルを表示する
  1486.       open.on('click',function(){
  1487.         container.addClass('active');
  1488.         return false;
  1489.       });
  1490.       //閉じるボタンをクリックしたらモーダルを閉じる
  1491.       close.on('click',function(){
  1492.         container.removeClass('active');
  1493.       });
  1494.       //モーダルの外側をクリックしたらモーダルを閉じる
  1495.       \$(document).on('click',function(e) {
  1496.         if(!\$(e.target).closest('.modal-body').length) {
  1497.           container.removeClass('active');
  1498.         }
  1499.       });
  1500.     });
  1501.     </script>
  1502.     <script>
  1503.         \$(function() {
  1504.             var w = window.innerWidth;
  1505.             \$('.slide-thumb').each(function () {
  1506.               \$(this).appendTo('.item_visual_thumb');
  1507.             });
  1508.             if( \$('.item_visual_main .slide-item').length < 2 ){
  1509.               \$('.item_visual_thumb').hide();
  1510.               return;
  1511.             }
  1512.             if (w > 767) {
  1513.               \$('.item_visual_main').not('.slick-initialized').slick({
  1514.                   dots: false,
  1515.                   arrows: true,
  1516.                   autoplay: true,
  1517.                   infinite: true,
  1518.                   fade: false,
  1519.                   autoplaySpeed: 3600,
  1520.                   speed: 450,
  1521.                   slidesToShow: 1,
  1522.                   variableWidth: true,
  1523.                   centerMode: true,
  1524.                   centerPadding: '50px',
  1525.                   lazyLoad: 'progressive',
  1526.                   asNavFor: \".item_visual_thumb\"
  1527.               });
  1528.             } else {
  1529.               \$('.item_visual_main').not('.slick-initialized').slick({
  1530.                   dots: false,
  1531.                   arrows: true,
  1532.                   autoplay: true,
  1533.                   infinite: true,
  1534.                   fade: false,
  1535.                   autoplaySpeed: 3600,
  1536.                   speed: 450,
  1537.                   slidesToShow: 1,
  1538.                   variableWidth: false,
  1539.                   centerMode: true,
  1540.                   centerPadding: '0',
  1541.                   lazyLoad: 'progressive',
  1542.                   asNavFor: \".item_visual_thumb\"
  1543.               });
  1544.             }
  1545.             if (w > 960) {
  1546.                 \$('.item_visual_thumb').not('.slick-initialized').slick({
  1547.                     dots: false,
  1548.                     arrows: false,
  1549.                     autoplay: false,
  1550.                     infinite: true,
  1551.                     slidesToShow: 10,
  1552.                     lazyLoad: 'progressive',
  1553.                     focusOnSelect: true,
  1554.                     asNavFor: \".item_visual_main\"
  1555.                 });
  1556.             } else if (960 >= w > 639) {
  1557.                 \$('.item_visual_thumb').not('.slick-initialized').slick({
  1558.                     dots: false,
  1559.                     arrows: false,
  1560.                     autoplay: false,
  1561.                     infinite: true,
  1562.                     rows: 2,
  1563.                     slidesToShow: 5,
  1564.                     lazyLoad: 'progressive',
  1565.                     focusOnSelect: true,
  1566.                     asNavFor: \".item_visual_main\"
  1567.                 });
  1568.             } else {
  1569.               \$('.item_visual_thumb').not('.slick-initialized').slick({
  1570.                   dots: false,
  1571.                   arrows: false,
  1572.                   autoplay: false,
  1573.                   infinite: true,
  1574.                   rows: 3,
  1575.                   slidesToShow: 3,
  1576.                   lazyLoad: 'progressive',
  1577.                   focusOnSelect: true,
  1578.                   asNavFor: \".item_visual_main\"
  1579.               });
  1580.             }
  1581.         });
  1582.     </script>
  1583. {% endblock %}
  1584. {% block main %}
  1585.     {% if IsChainStore() == false %}
  1586.         <div class=\"breadcrumb-wrapper\">
  1587.             <ol class=\"breadcrumb\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  1588.                 <li class=\"breadcrumb__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  1589.                     <a itemprop=\"item\" href=\"{{ url('homepage') }}\">
  1590.                         <span itemprop=\"name\">HOME</span>
  1591.                     </a>
  1592.                     <meta itemprop=\"position\" content=\"1\" />
  1593.                 </li>
  1594.                 <li class=\"breadcrumb__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  1595.                     <a itemprop=\"item\" href=\"{{ url('product_list') }}\">
  1596.                         <span itemprop=\"name\">ONLINE SHOP</span>
  1597.                     </a>
  1598.                     <meta itemprop=\"position\" content=\"2\" />
  1599.                 </li>
  1600.                 <li class=\"breadcrumb__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  1601.                     <span itemprop=\"name\">{{ Product.name }}</span>
  1602.                     <meta itemprop=\"position\" content=\"3\" />
  1603.                 </li>
  1604.             </ol>
  1605.         </div>
  1606.     {% endif %}
  1607.     {% set hasCategory = 0 %}
  1608.     {% for ProductCategory in Product.ProductCategories %}
  1609.           {% if ProductCategory.Category.id == 1 %}
  1610.             {% set hasCategory = 1 %}
  1611.           {% endif %}
  1612.     {% endfor %}
  1613.     <div class=\"ec-productRole\">
  1614.         {# 商品名 #}
  1615.         <div class=\"ec-productRole__title\">
  1616.             <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  1617.         </div>
  1618.         <div class=\"ec-grid2\">
  1619.             <div class=\"ec-grid2__column\">
  1620.                 <div class=\"ec-sliderItemRole\">
  1621.                     <div class=\"item_visual_main\">
  1622.                         {% for ProductImage in Product.ProductImage %}
  1623.                             <div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\"></div>
  1624.                             <div class=\"slide-thumb\"><img src=\"{{ asset(ProductImage, 'save_image') }}\"></div>
  1625.                         {% else %}
  1626.                             <div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/></div>
  1627.                             <div class=\"slide-thumb\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/></div>
  1628.                         {% endfor %}
  1629.                     </div>
  1630.                     <div class=\"item_visual_thumb\">
  1631.                     </div>
  1632.                 </div>
  1633.             </div>
  1634.             <div class=\"ec-grid2__column\">
  1635.                 <div class=\"ec-productRole__profile\">
  1636.                     {# タグ #}
  1637.                     <ul class=\"ec-productRole__tags\">
  1638.                         {% for Tag in Product.Tags %}
  1639.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  1640.                         {% endfor %}
  1641.                     </ul>
  1642.                     {# 通常価格 #}
  1643.                     {% if Product.hasProductClass -%}
  1644.                         <div class=\"ec-productRole__priceRegular\">
  1645.                             {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  1646.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
  1647.                                 <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1648.                             {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  1649.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
  1650.                                 <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1651.                             {% endif %}
  1652.                         </div>
  1653.                     {% else %}
  1654.                         {% if Product.getPrice01Max is not null %}
  1655.                             <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
  1656.                             <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1657.                         {% endif %}
  1658.                     {% endif %}
  1659.                     {# 販売価格 #}
  1660.                     <div class=\"ec-productRole__price\">
  1661.                         {% if Product.hasProductClass -%}
  1662.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1663.                                 <div class=\"ec-price\">
  1664.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1665.                                     <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1666.                                 </div>
  1667.                             {% else %}
  1668.                                 <div class=\"ec-price\">
  1669.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  1670.                                     <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1671.                                 </div>
  1672.                             {% endif %}
  1673.                         {% else %}
  1674.                             <div class=\"ec-price\">
  1675.                                 <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1676.                                 <span class=\"ec-price__tax\">{{ (EnUser ? 'incl. tax' : 'common.tax_include')|trans }}</span>
  1677.                             </div>
  1678.                         {% endif %}
  1679.                     </div>
  1680.                     {# 商品コード #}
  1681.                     {% if Product.code_min is not empty %}
  1682.                         <div class=\"ec-productRole__code\">
  1683.                             {{ (EnUser ? 'Product code' : 'front.product.code')|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  1684.                         </div>
  1685.                     {% endif %}
  1686.                     {# 関連カテゴリ #}
  1687.                     {% if Product.ProductCategories is not empty %}
  1688.                         <div class=\"ec-productRole__category\">
  1689.                             <ul class=\"ec-productRole-category-list\">
  1690.                                 {% for ProductCategory in Product.ProductCategories %}
  1691.                                     {% set continue1 = false %}
  1692.                                     {% if ProductCategory.Category.path[0].id == 11 %}
  1693.                                         {% set continue1 = true %}
  1694.                                     {% endif %}
  1695.                                     {% if not continue1 %}
  1696.                                         <li class=\"ec-productRole-category-list__item\">
  1697.                                             {% for Category in ProductCategory.Category.path %}
  1698.                                                 <a class=\"category-{{ Category.id }}\" href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a>{%- if loop.last == false %}<span>></span>{% endif -%}
  1699.                                             {% endfor %}
  1700.                                         </li>
  1701.                                     {% endif %}
  1702.                                 {% endfor %}
  1703.                             </ul>
  1704.                         </div>
  1705.                     {% endif %}
  1706.                     <div class=\"ec-productRole__description\">{{ Product.description_detail|raw|nl2br }}
  1707.                     </div>
  1708.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  1709.                         {% if Product.stock_find %}
  1710.                             <div class=\"ec-productRole__actions\">
  1711.                                 {% if form.classcategory_id1 is defined %}
  1712.                                     {% if Product.hide_class_category1 %}
  1713.                                         <div class=\"ec-select hide_class_category1\" style=\"display:none;\">
  1714.                                     {% else %}
  1715.                                         <div class=\"ec-select\">
  1716.                                     {% endif %}
  1717.                                         {{ form_widget(form.classcategory_id1) }}
  1718.                                         {{ form_errors(form.classcategory_id1) }}
  1719.                                     </div>
  1720.                                     {% if form.classcategory_id2 is defined %}
  1721.                                         {% if Product.hide_class_category2 %}
  1722.                                             <div class=\"ec-select hide_class_category2\" style=\"display:none;\">
  1723.                                         {% else %}
  1724.                                             <div class=\"ec-select\">
  1725.                                         {% endif %}
  1726.                                             {{ form_widget(form.classcategory_id2) }}
  1727.                                             {{ form_errors(form.classcategory_id2) }}
  1728.                                         </div>
  1729.                                     {% endif %}
  1730.                                 {% endif %}
  1731.                                 <div class=\"ec-numberInput\"><span>{{ (EnUser ? 'Quantity' : 'common.quantity')|trans }}</span>
  1732.                                     {{ form_widget(form.quantity) }}
  1733.                                     {{ form_errors(form.quantity) }}
  1734.                                 </div>
  1735.                             </div>
  1736.                             <div class=\"ec-productRole__btn ec-productRole__btn--add\">
  1737.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1738.                                     {{ (EnUser ? 'Add to cart' : 'front.product.add_cart')|trans }}
  1739.                                 </button>
  1740.                             </div>
  1741.                         {% else %}
  1742.                             <div class=\"ec-productRole__btn\">
  1743.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1744.                                     {{ (EnUser ? 'Out of stock' : 'front.product.out_of_stock'|trans) }}
  1745.                                 </button>
  1746.                             </div>
  1747.                         {% endif %}
  1748.                         {{ form_rest(form) }}
  1749.                     </form>
  1750.                     <div class=\"ec-modal\">
  1751.                         <div class=\"ec-modal-overlay\">
  1752.                             <div class=\"ec-modal-wrap\">
  1753.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1754.                                 {% if EnUser == false %}
  1755.                                     <div id=\"ec-modal-header\" class=\"text-center\">{{ 'front.product.add_cart_complete'|trans }}</div>
  1756.                                 {% else %}
  1757.                                     <div class=\"text-center\">Added to cart</div>
  1758.                                 {% endif %}
  1759.                                 <div class=\"ec-modal-box\">
  1760.                                     <div class=\"ec-role\">
  1761.                                         <span class=\"ec-inlineBtn--cancel\">{{ (EnUser ? 'Keep shopping' : 'front.product.continue')|trans }}</span>
  1762.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ (EnUser ? 'Go to cart' : 'common.go_to_cart')|trans }}</a>
  1763.                                     </div>
  1764.                                 </div>
  1765.                             </div>
  1766.                         </div>
  1767.                     </div>
  1768.                     <div class=\"like_return-btn\">
  1769.                         {% if EnUser == false %}
  1770.                             {% if BaseInfo.option_favorite_product %}
  1771.                                 <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  1772.                                     <div class=\"ec-productRole__btn ec-productRole__btn--favorite\">
  1773.                                         {% if is_favorite == false %}
  1774.                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  1775.                                                 {{ 'front.product.add_favorite'|trans }}
  1776.                                             </button>
  1777.                                         {% else %}
  1778.                                             <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1779.                                                     disabled=\"disabled\">{{ 'front.product.add_favorite_alrady'|trans }}
  1780.                                             </button>
  1781.                                         {% endif %}
  1782.                                     </div>
  1783.                                 </form>
  1784.                             {% endif %}
  1785.                         {% endif %}
  1786.                         <div class=\"ec-productRole__btn ec-productRole__btn--favorite\">
  1787.                             <a class=\"ec-blockBtn--cancel\" href=\"{{ url('product_list') }}\">
  1788.                               {{ EnUser ? 'Back to product list' : '商品一覧に戻る' }}
  1789.                             </a>
  1790.                         </div>
  1791.                     </div>
  1792.                     {% if IsChainStore() == false %}
  1793.                     {% if hasCategory == 1 %}
  1794.                     <div class=\"ec-modal-02\">
  1795.                         <div class=\"ec-modal-02__banner modal-open\">
  1796.                             {% if EnUser == false %}
  1797.                                 <img src=\"{{ asset('assets/img/product/banner_howtoeat.png') }}\" alt=\"おいしいお召し上がり方\">
  1798.                             {% else %}
  1799.                                 <img src=\"{{ asset('assets/img/product/banner_howtoeat_en.png') }}\" alt=\"How to eat deliciously\">
  1800.                             {% endif %}
  1801.                         </div>
  1802.                         <div class=\"modal-container\">
  1803.                             <div class=\"modal-body\">
  1804.                                 <!-- 閉じるボタン -->
  1805.                                 <div class=\"modal-close\">×</div>
  1806.                                 <!-- モーダル内のコンテンツ -->
  1807.                                 <div class=\"modal-content\">
  1808.                                     {% if EnUser == false %}
  1809.                                         <p><img src=\"{{ asset('assets/img/product/goodtoeat.jpg') }}\" width=\"500\" height=\"600\" alt=\"ダシーズのおいしい食べ方\"></p>
  1810.                                     {% else %}
  1811.                                         <p><img src=\"{{ asset('assets/img/product/goodtoeat_en.jpg') }}\" width=\"500\" height=\"600\" alt=\"How to eat deliciously\"></p>
  1812.                                     {% endif %}
  1813.                                 </div>
  1814.                             </div>
  1815.                         </div>
  1816.                     </div>
  1817.                     {% endif %}
  1818.                     {% endif %}
  1819.                 </div>
  1820.             </div>
  1821.         </div>
  1822.         {% if Product.freearea %}
  1823.             <div class=\"ec-productRole__description\">
  1824.                 {{ include(template_from_string(Product.freearea)) }}
  1825.             </div>
  1826.         {% endif %}
  1827.     </div>
  1828.     {% if IsChainStore() == false %}
  1829.         {% if EnUser == true %}
  1830.             {% set NewProducts = CustomizeNewProduct() %}
  1831.             {% if NewProducts|length > 0 %}
  1832.                 <div class=\"ec-products-top-area ec-products-top-area--new-list\">
  1833.                     <div class=\"ec-product-category-title\">
  1834.                         <h2 class=\"ec-product-category-title__title\">{{ EnUser ? 'Recommended' : 'こちらもおすすめ' }}</span></h2>
  1835.                     </div>
  1836.                     <div class=\"ec-shelfRole\">
  1837.                         <ul class=\"ec-shelfGrid\">
  1838.                             {% for Product in NewProducts %}
  1839.                                 <li class=\"ec-shelfGrid__item\">
  1840.                                     <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1841.                                         <p class=\"ec-shelfGrid__item-image\">
  1842.                                             <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" loading=\"lazy\">
  1843.                                         </p>
  1844.                                         <p class=\"ec-shelfGrid__title\">{{ Product.name }}</p>
  1845.                                         {% if Product.description_list %}
  1846.                                             <p class=\"ec-shelfGrid__description\">{{ Product.description_list|raw|nl2br }}</p>
  1847.                                         {% endif %}
  1848.                                         <p class=\"price02-default\">
  1849.                                             {% if Product.hasProductClass %}
  1850.                                                 {% if Product.getPrice02Min == Product.getPrice02Max %}
  1851.                                                     {{ Product.getPrice02IncTaxMin|price }}<span>{{ EnUser ? '(incl. tax)' : '(税込)' }}</span>
  1852.                                                 {% else %}
  1853.                                                     {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}<span>{{ EnUser ? '(incl. tax)' : '(税込)' }}</span>
  1854.                                                 {% endif %}
  1855.                                             {% else %}
  1856.                                                 {{ Product.getPrice02IncTaxMin|price }}<span>{{ EnUser ? '(incl. tax)' : '(税込)' }}</span>
  1857.                                             {% endif %}
  1858.                                         </p>
  1859.                                     </a>
  1860.                                 </li>
  1861.                             {% endfor %}
  1862.                         </ul>
  1863.                     </div>
  1864.                 </div>
  1865.             {% endif %}
  1866.         {% endif %}
  1867.     {% endif %}
  1868. {% endblock %}
  1869. ""Product/detail.twig""/home/offshore2022/test-darcys-factory.xyz/public_html/app/template/default/Product/detail.twig");
  1870.     }
  1871. }