app/template/kaorime/Product/detail.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'product_page' %}
  10. {% block stylesheet %}
  11.     <style>
  12.         .slick-slider {
  13.             margin-bottom: 30px;
  14.         }
  15.         .slick-dots {
  16.             position: absolute;
  17.             bottom: -45px;
  18.             display: block;
  19.             width: 100%;
  20.             padding: 0;
  21.             list-style: none;
  22.             text-align: center;
  23.         }
  24.         .slick-dots li {
  25.             position: relative;
  26.             display: inline-block;
  27.             width: 20px;
  28.             height: 20px;
  29.             margin: 0 5px;
  30.             padding: 0;
  31.             cursor: pointer;
  32.         }
  33.         .slick-dots li button {
  34.             font-size: 0;
  35.             line-height: 0;
  36.             display: block;
  37.             width: 20px;
  38.             height: 20px;
  39.             padding: 5px;
  40.             cursor: pointer;
  41.             color: transparent;
  42.             border: 0;
  43.             outline: none;
  44.             background: transparent;
  45.         }
  46.         .slick-dots li button:hover,
  47.         .slick-dots li button:focus {
  48.             outline: none;
  49.         }
  50.         .slick-dots li button:hover:before,
  51.         .slick-dots li button:focus:before {
  52.             opacity: 1;
  53.         }
  54.         .slick-dots li button:before {
  55.             content: " ";
  56.             line-height: 20px;
  57.             position: absolute;
  58.             top: 0;
  59.             left: 0;
  60.             width: 12px;
  61.             height: 12px;
  62.             text-align: center;
  63.             opacity: .25;
  64.             background-color: black;
  65.             border-radius: 50%;
  66.         }
  67.         .slick-dots li.slick-active button:before {
  68.             opacity: .75;
  69.             background-color: black;
  70.         }
  71.         .slick-dots li button.thumbnail img {
  72.             width: 0;
  73.             height: 0;
  74.         }
  75.     </style>
  76. {% endblock %}
  77. {% block javascript %}
  78.     <script>
  79.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  80.         // 規格2に選択肢を割り当てる。
  81.         function fnSetClassCategories(form, classcat_id2_selected) {
  82.             var $form = $(form);
  83.             var product_id = $form.find('input[name=product_id]').val();
  84.             var $sele1 = $form.find('select[name=classcategory_id1]');
  85.             var $sele2 = $form.find('select[name=classcategory_id2]');
  86.             eccube.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
  87.         }
  88.         {% if form.classcategory_id2 is defined %}
  89.         fnSetClassCategories(
  90.             $('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  91.         );
  92.         {% elseif form.classcategory_id1 is defined %}
  93.         eccube.checkStock($('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  94.         {% endif %}
  95.     </script>
  96.     <script>
  97.         $(function() {
  98.             // bfcache無効化
  99.             $(window).bind('pageshow', function(event) {
  100.                 if (event.originalEvent.persisted) {
  101.                     location.reload(true);
  102.                 }
  103.             });
  104.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  105.             // img タグに width, height が付与されている.
  106.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  107.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  108.             $('.ec-grid2__cell').hide();
  109.             var removeSize = function () {
  110.                 $('.slide-item').height('');
  111.                 $('.slide-item img')
  112.                     .removeAttr('width')
  113.                     .removeAttr('height')
  114.                     .removeAttr('style');
  115.             };
  116.             var slickInitial = function(slick) {
  117.                 $('.ec-grid2__cell').fadeIn(1500);
  118.                 var baseHeight = $(slick.target).height();
  119.                 var baseWidth = $(slick.target).width();
  120.                 var rate = baseWidth / baseHeight;
  121.                 $('.slide-item').height(baseHeight * rate); // 余白を削除する
  122.                 // transform を使用することでCLSの影響を受けないようにする
  123.                 $('.slide-item img')
  124.                     .css(
  125.                         {
  126.                             'transform-origin': 'top left',
  127.                             'transform': 'scaleY(' + rate + ')',
  128.                             'transition': 'transform .1s'
  129.                         }
  130.                     );
  131.                 // 正しいサイズに近くなったら属性を解除する
  132.                 setTimeout(removeSize, 500);
  133.             };
  134.             $('.item_visual').on('init', slickInitial);
  135.             // リサイズ時は CLS の影響を受けないため属性を解除する
  136.             $(window).resize(removeSize);
  137.             $('.item_visual').slick({
  138.                 dots: false,
  139.                 arrows: false,
  140.                 responsive: [{
  141.                     breakpoint: 768,
  142.                     settings: {
  143.                         dots: true
  144.                     }
  145.                 }]
  146.             });
  147.             $('.slideThumb').on('click', function() {
  148.                 var index = $(this).attr('data-index');
  149.                 $('.item_visual').slick('slickGoTo', index, false);
  150.             })
  151.         });
  152.     </script>
  153.     <script>
  154.         $(function() {
  155.             $('.add-cart').on('click', function(event) {
  156.                 {% if form.classcategory_id1 is defined %}
  157.                 // 規格1フォームの必須チェック
  158.                 if ($('#classcategory_id1').val() == '__unselected' || $('#classcategory_id1').val() == '') {
  159.                     $('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  160.                     return true;
  161.                 } else {
  162.                     $('#classcategory_id1')[0].setCustomValidity('');
  163.                 }
  164.                 {% endif %}
  165.                 {% if form.classcategory_id2 is defined %}
  166.                 // 規格2フォームの必須チェック
  167.                 if ($('#classcategory_id2').val() == '__unselected' || $('#classcategory_id2').val() == '') {
  168.                     $('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  169.                     return true;
  170.                 } else {
  171.                     $('#classcategory_id2')[0].setCustomValidity('');
  172.                 }
  173.                 {% endif %}
  174.                 // 個数フォームのチェック
  175.                 if ($('#quantity').val() < 1) {
  176.                     $('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  177.                     return true;
  178.                 } else {
  179.                     $('#quantity')[0].setCustomValidity('');
  180.                 }
  181.                 event.preventDefault();
  182.                 $form = $('#form1');
  183.                 $.ajax({
  184.                     url: $form.attr('action'),
  185.                     type: $form.attr('method'),
  186.                     data: $form.serialize(),
  187.                     dataType: 'json',
  188.                     beforeSend: function(xhr, settings) {
  189.                         // Buttonを無効にする
  190.                         $('.add-cart').prop('disabled', true);
  191.                     }
  192.                 }).done(function(data) {
  193.                     // レスポンス内のメッセージをalertで表示
  194.                     $.each(data.messages, function() {
  195.                         $('#ec-modal-header').text(this);
  196.                     });
  197.                     $('.ec-modal').show()
  198.                     // カートブロックを更新する
  199.                     $.ajax({
  200.                         url: "{{ url('block_cart') }}",
  201.                         type: 'GET',
  202.                         dataType: 'html'
  203.                     }).done(function(html) {
  204.                         $('.ec-headerRole__cart').html(html);
  205.                     });
  206.                 }).fail(function(data) {
  207.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  208.                 }).always(function(data) {
  209.                     // Buttonを有効にする
  210.                     $('.add-cart').prop('disabled', false);
  211.                 });
  212.             });
  213.         });
  214.         $('.ec-modal-wrap').on('click', function(e) {
  215.             // モーダル内の処理は外側にバブリングさせない
  216.             e.stopPropagation();
  217.         });
  218.         $('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  219.             $('.ec-modal').hide()
  220.         });
  221.     </script>
  222.     <script type="application/ld+json">
  223.     {
  224.         "@context": "https://schema.org/",
  225.         "@type": "Product",
  226.         "name": "{{ Product.name }}",
  227.         "image": [
  228.             {% for img in Product.ProductImage %}
  229.                 "{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
  230.             {% else %}
  231.                 "{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}"
  232.             {% endfor %}
  233.         ],
  234.         "description": "{{ Product.description_list | default(Product.description_detail) | replace({'\n': '', '\r': ''}) | slice(0,300) }}",
  235.         {% if Product.code_min %}
  236.         "sku": "{{ Product.code_min }}",
  237.         {% endif %}
  238.         "offers": {
  239.             "@type": "Offer",
  240.             "url": "{{ url('product_detail', {'id': Product.id}) }}",
  241.             "priceCurrency": "{{ eccube_config.currency }}",
  242.             "price": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  243.             "availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
  244.         }
  245.     }
  246.     </script>
  247. {% endblock %}
  248. {% block main %}
  249.     <!-- PAGE CONTENTS -->
  250.     <div class="products productsWakamefurikake productsSingle">
  251.         <section class="sub-container">
  252.         
  253.             {# 広告流入かそれ以外かの条件分岐 #}
  254.             {% if Product.id is same as(59) %}
  255.             <div class="ad">
  256.             <section class="ad-kvArea">
  257.               <div class="ad-kvArea__inner">
  258.                 <h1 class="dn">しそ入ひじきふりかけ</h1>
  259.                 <img src="{{ asset('assets/img/product-ad/kv.png')}}" class="imgFit dn-sp__ad kv__ad">
  260.                 <img src="{{ asset('assets/img/product-ad/kv-sp.png')}}" class="imgAd dn-pcTab__ad">
  261.               </div>
  262.             </section>
  263.             <section class="ad-timeArea">
  264.               <div class="ad-timeArea__inner">
  265.                 <h2><span class="hl-red">うま味と甘味</span>の絶妙なバランスが<br><span class="hl-big">様々な場面で<br class="dn-pc__ad"><span class="hl-red">大活躍!</span></h2>
  266.                 <div class="ad-timeArea__contents">
  267.                   <section class="ad-timeArea__contents-time">
  268.                     <div class="ad-timeArea__contents-time__left">
  269.                       <h3>時短×簡単</h3>
  270.                       <p>
  271.                         おにぎりが簡単に絶品に!<br>
  272.                         忙しい朝やお弁当作りにも時短で便利。<br>
  273.                         <br>
  274.                         パパッとひとふりで、お茶漬けが本格的な味に。<br>
  275.                         しその風味豊かなひじきふりかけで
  276.                         <span class="timeTxt">時短料理<span class="black">を</span>実現!</span>
  277.                       </p>
  278.                     </div>
  279.                     <div class="ad-timeArea__contents-time__right">
  280.                       <img src="{{ asset('assets/img/product-ad/furikake_img.png')}}" class="dn-mobile">
  281.                       <img src="{{ asset('assets/img/product-ad/furikake_img-sp.png')}}" class="dn-pc__ad">
  282.                     </div>
  283.                   </section>
  284.                   <section class="ad-timeArea__contents-arrangement">
  285.                     <div class="ad-timeArea__contents-arrangement__heading">
  286.                       <h3>アレンジは多種多様<span>いつもの料理が手軽に<br class="dn-pc__ad">美味しく健康的に!</span></h3>
  287.                     </div>
  288.                     <div class="ad-timeArea__contents-arrangement__items">
  289.                       <div class="ad-timeArea__contents-arrangement__item">
  290.                           <img src="{{ asset('assets/img/product-ad/cooki_img01.png')}}" class="imgFit">
  291.                           <p>チャーハンに!</p>
  292.                         </div>
  293.                         <div class="ad-timeArea__contents-arrangement__item">
  294.                           <img src="{{ asset('assets/img/product-ad/cooki_img02.png')}}" class="imgFit">
  295.                           <p>浅漬けに!</p>
  296.                         </div>
  297.                         <div class="ad-timeArea__contents-arrangement__item">
  298.                           <img src="{{ asset('assets/img/product-ad/cooki_img03.png')}}" class="imgFit">
  299.                           <p>トーストにも!</p>
  300.                         </div>
  301.                     </div>
  302.                   </section>
  303.                 </div>
  304.               </div>
  305.             </section>
  306.             <section class="ad-healthyArea">
  307.               <div class="ad-healthyArea__inner">
  308.                 <h2><span>食物繊維</span>と<br class="dn-pcTab__ad"><span>ミネラル</span>たっぷり!</h2>
  309.                 <div class="ad-healthyArea__inner__inner">
  310.                   <div class="ad-healthyArea__txt">
  311.                     <p class="top-txt">
  312.                       海藻類の中でも特に<br>
  313.                       <span>栄養価の高い</span>ひじき。
  314.                     </p>
  315.                     <p class="bottom-txt">
  316.                       カルシウム、食物繊維、マグネシウムが<br>
  317.                       豊富に含まれます。<br>
  318.                       その他にも、ビタミンBや鉄分なども含ま<br>
  319.                       れ、しかも低カロリー。
  320.                     </p>
  321.                   </div>
  322.                   <div  class="ad-healthyArea__img dn-pc__ad">
  323.                     <img src="{{ asset('assets/img/product-ad/healthy-sp.png')}}" class="imgFit">
  324.                   </div>
  325.                 </div>
  326.               </div>
  327.             </section>
  328.             <section class="ad-voiceArea">
  329.               <div class="ad-voiceArea__inner">
  330.                 <div class="ad-voiceArea__content">
  331.                   <div class="ad-voiceArea__heading">
  332.                     <h2><span>いつも沢山のお声<br class="dn-pc__ad">ありがとうございます!</span><br class="dn-mobile">ご利用いただいた<br class="dn-pc">お客様からのお声</h2>
  333.                   </div>
  334.                   <div class="ad-voiceArea__items">
  335.                     <div class="ad-voiceArea__item">
  336.                       <div class="ad-voiceArea__item-left">VOICE<br>01</div>
  337.                       <div class="ad-voiceArea__item-right">
  338.                         <p><span>とても美味しい</span>ひじきふりかけです。<br>
  339.                         しっとりしていて食べやすく、<span>ホカホカご飯にもお弁当にも最適</span>です。</p>
  340.                       </div>
  341.                     </div>
  342.                     <div class="ad-voiceArea__item">
  343.                       <div class="ad-voiceArea__item-left">VOICE<br>02</div>
  344.                       <div class="ad-voiceArea__item-right">
  345.                         <p>しっとりとしたヒジキがほんのりしそ風味で<span>すごく好きな味です。</span><br>
  346.                           <span>もう一袋買えば良かった、</span>と後悔してます。</p>
  347.                       </div>
  348.                     </div>
  349.                     <div class="ad-voiceArea__item">
  350.                       <div class="ad-voiceArea__item-left">VOICE<br>03</div>
  351.                       <div class="ad-voiceArea__item-right">
  352.                         <p>毎朝食べてます。美味しいし、<span>手軽にひじきが食べれてとても満足</span>です。<br>
  353.                           いつも塩分無視してたっぷりかけてるので、<span>無くなったらリピ</span>します。</p>
  354.                       </div>
  355.                     </div>
  356.                     <div class="ad-voiceArea__item">
  357.                       <div class="ad-voiceArea__item-left">VOICE<br>04</div>
  358.                       <div class="ad-voiceArea__item-right">
  359.                         <p>おにぎりに使うのがお気に入りで<span>幼稚園児のお弁当や食事に栄養をプラス</span><br class="dn-mobile">
  360.                           するのに活用させてもらってます!</p>
  361.                       </div>
  362.                     </div>
  363.                   </div>
  364.                 </div>
  365.               </div>
  366.             </section>
  367.             <section class="ad-aboutArea">
  368.               <div class="ad-aboutArea__inner">
  369.                 <h2>30年以上の<br class="dn-pcTab__ad"><span>「おいしさの追求」</span>で<br>多くのファンに<br class="dn-pcTab__ad">ご支持いただく</h2>
  370.                 <div class="ad-aboutArea__content">
  371.                   <div class="ad-aboutArea__content-kv">
  372.                     <img src="{{ asset('assets/img/product-ad/history1.png')}}" class="imgFit">
  373.                   </div>
  374.                   <div class="ad-aboutArea__content-items">
  375.                     <div class="ad-aboutArea__content-items__left">
  376.                       <h3>大正10年(1921年)創業<br>100年の歴史と革新</h3>
  377.                       <p>
  378.                         1921年に山陰特産品の板わかめ問屋として創業。<br>
  379.                         <br>
  380.                         「ひじきふりかけ」の先駆者<br>
  381.                         30年以上の「おいしさの追求」で、<br>
  382.                         多くのファンに支持されてきました。<br>
  383.                         <br>
  384.                         忙しくても、自分や大切な人の健康を支えたい<br class="dn-mobile">
  385.                         あなたへ。<br>
  386.                         栄養豊富な海の幸を、食卓と健康を大切にする<br class="dn-mobile">
  387.                         すべての方のためにお届けします。<br>
  388.                       </p>
  389.                     </div>
  390.                     <div class="ad-aboutArea__content-items__right">
  391.                       <div class="ad-aboutArea__content-items__right-top">
  392.                         <img src="{{ asset('assets/img/product-ad/history2.png')}}" class="imgFit">
  393.                       </div>
  394.                       <div class="ad-aboutArea__content-items__right-bottom">
  395.                         <img src="{{ asset('assets/img/product-ad/history3.png')}}" class="imgFit">
  396.                       </div>
  397.                     </div>
  398.                   </div>
  399.                 </div>
  400.               </div>
  401.             </section>
  402.             <div class="ad-cart">
  403.               <a href="#cart__area">
  404.                 <div>
  405.                   <div>
  406.                     <img src="{{ asset('assets/img/product-ad/icon-cart.png')}}" class="imgFit dn-sp__ad">
  407.                     <img src="{{ asset('assets/img/product-ad/icon-cart-sp.png')}}" class="imgFit dn-pcTab__ad">
  408.                   </div>
  409.                   <p>
  410.                     商品をカートに<br class="dn-sp__ad">追加する
  411.                   </p>
  412.                 </div>
  413.               </a>
  414.             </div>
  415.           </div>
  416.             {% else %}
  417.             <!-- H1 商品カテゴリーの見出し -->
  418.             <div class="sub-h1--products">
  419.                 <h1 class="itemTitle">
  420.                     {{ Product.name }}
  421.                 </h1>
  422.                 <div class="itemImg">
  423.                     <div class="itemImgInner">
  424.                         <img src="{{ asset('assets/img/products/wf_h1_01.jpg') }}" alt="" class="imgObjectFitCover">
  425.                     </div>
  426.                 </div>
  427.             </div>
  428.             <!-- /H1 -->
  429.             {% endif %}
  430.             <!-- CONTENTS -->
  431.             <div class="l-container l-2ColumnContainer">
  432.                 <!-- MAIN-CONTENTS -->
  433.                 <div class="l-main">
  434.                     <!-- BREAD CRUMBS -->
  435.                     <div class="sub-breadcrumbsWrap">
  436.                         <ul class="sub-breadcrumbs">
  437.                             <li><a href="/">TOP</a></li>
  438.                             <li><a href="/products/list">商品一覧</a></li>
  439.                             <li>{{ Product.name }}</li>
  440.                         </ul>
  441.                     </div>
  442.                     <!-- /BREAD CRUMBS -->
  443.                     <!-- MAIN CONTENTS -->
  444.                     <section class="products-sgContent">
  445.                         <!-- PRODUCTS PHOTO -->
  446.                         <div class="products-sgContent__pPhoto">
  447.                             <div class="productsPhotoSlide">
  448.                                 <ul id="categorySingleSlider" class="main clearfix">
  449.                                     {% for ProductImage in Product.ProductImage %}
  450.                                         <li><span class="imgWrap">
  451.                                                 <img src="{{ asset(ProductImage, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" alt=""
  452.                                                                        class="imgObjectFitCover" {% if loop.index > 1 %} loading="lazy"{% endif %}>
  453.                                             </span>
  454.                                         </li>
  455.                                     {% else %}
  456.                                         <li>
  457.                                             <span class="imgWrap">
  458.                                                 <img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}"
  459.                                                                        class="imgObjectFitCover">
  460.                                             </span>
  461.                                         </li>
  462.                                     {% endfor %}
  463.                                 </ul>
  464.                                 <ul id="categorySingleSliderNav" class="sub clearfix">
  465.                                     {% for ProductImage in Product.ProductImage %}
  466.                                         <li data-index="{{ loop.index0 }}">
  467.                                             <span class="imgWrap">
  468.                                                 <img src="{{ asset(ProductImage, 'save_image') }}" alt=""
  469.                                                      class="imgObjectFitCover" loading="lazy">
  470.                                             </span>
  471.                                         </li>
  472.                                     {% endfor %}
  473.                                 </ul>
  474.                             </div>
  475.                         </div>
  476.                         <!-- /PRODUCTS PHOTO -->
  477.                         <!-- PRODUCTS DATA -->
  478.                         <div class="products-sgContent__pData" id="cart__area">
  479.                             <div class="titleWrap">
  480.                                 <h2 class="itemPName">{{ Product.name }}</h2>
  481.                                 {% if Product.hasProductClass -%}
  482.                                     {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  483.                                         <p class="itemPrice">
  484.                                             {{ Product.getPrice02IncTaxMin|price }}
  485.                                             <span class="tax">{{ '(税込)'|trans }}</span>
  486.                                         </p>
  487.                                     {% else %}
  488.                                         <p class="itemPrice">
  489.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  490.                                             <span class="tax">{{ '(税込)'|trans }}</span>
  491.                                         </p>
  492.                                     {% endif %}
  493.                                 {% else %}
  494.                                         <p class="itemPrice">
  495.                                             {{ Product.getPrice02IncTaxMin|price }}
  496.                                             <span class="tax">{{ '(税込)'|trans }}</span>
  497.                                         </p>
  498.                                 {% endif %}
  499.                             </div>
  500.                             <form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form1" name="form1">
  501.                                 {% if Product.stock_find %}
  502.                                     <div class="ec-productRole__actions">
  503.                                         {% if form.classcategory_id1 is defined %}
  504.                                             <div class="ec-select">
  505.                                                 {{ form_row(form.classcategory_id1) }}
  506.                                                 {{ form_errors(form.classcategory_id1) }}
  507.                                             </div>
  508.                                             {% if form.classcategory_id2 is defined %}
  509.                                                 <div class="ec-select">
  510.                                                     {{ form_row(form.classcategory_id2) }}
  511.                                                     {{ form_errors(form.classcategory_id2) }}
  512.                                                 </div>
  513.                                             {% endif %}
  514.                                         {% endif %}
  515.                                         <div class="quantityWrap">
  516.                                             <span>数量</span>
  517.                                             <div class="quantityWrapInner">
  518.                                                 <div class="item-select">
  519.                                                     {{ form_widget(form.quantity) }}
  520.                                                     {{ form_errors(form.quantity) }}
  521.                                                 </div>
  522.                                                 <div class="product-single-quantityBtnBlock">
  523.                                                     <div class="quantityBtn quantityBtn__plus"><span class="btnInner">+</span></div>
  524.                                                     <div class="quantityBtn quantityBtn__minus"><span class="btnInner">-</span></div>
  525.                                                 </div>
  526.                                             </div>
  527.                                         </div>
  528.                                     </div>
  529.                                     <div class="cartBtnWrap">
  530.                                         <button type="submit" class="ec-blockBtn--action add-cart mod-btn-02 cartBtn">
  531.                                             {{ 'カートに入れる'|trans }}
  532.                                         </button>
  533.                                     </div>
  534.                                 {% else %}
  535.                                     <div class="ec-productRole__btn">
  536.                                         <button type="button" class="ec-blockBtn--action" disabled="disabled">
  537.                                             {{ 'ただいま品切れ中です。'|trans }}
  538.                                         </button>
  539.                                     </div>
  540.                                 {% endif %}
  541.                                 <div class="ec-modal">
  542.                                     <div class="ec-modal-overlay">
  543.                                         <div class="ec-modal-wrap">
  544.                                             <span class="ec-modal-close"><span class="ec-icon"><img src="{{ asset('assets/icon/cross-dark.svg') }}" alt=""/></span></span>
  545.                                             <div id="ec-modal-header" class="text-center">{{ 'カートに追加しました。'|trans }}</div>
  546.                                             <div class="ec-modal-box">
  547.                                                 <div class="ec-role">
  548.                                                     <span class="ec-inlineBtn--cancel">{{ 'お買い物を続ける'|trans }}</span>
  549.                                                     <a href="{{ url('cart') }}" class="ec-inlineBtn--action">{{ 'カートへ進む'|trans }}</a>
  550.                                                 </div>
  551.                                             </div>
  552.                                         </div>
  553.                                     </div>
  554.                                 </div>
  555.                                 {{ form_rest(form) }}
  556.                             </form>
  557.                             {% if BaseInfo.option_favorite_product %}
  558.                                 <form action="{{ url('product_add_favorite', {id:Product.id}) }}" method="post">
  559.                                     <div class="favoriteBtnWrap">
  560.                                     {% if is_favorite == false %}
  561.                                         <button type="submit" id="favorite" class="ec-blockBtn--cancel mod-btn-02 favoriteBtn">お気に入りに追加</button>
  562.                                     {% else %}
  563.                                         <button type="submit" id="favorite" class="ec-blockBtn--cancel mod-btn-02 favoriteBtn"
  564.                                                 disabled="disabled">{{ 'お気に入りに追加済です。'|trans }}
  565.                                         </button>
  566.                                     {% endif %}
  567.                                     </div>
  568.                                 </form>
  569.                             {% endif %}
  570.                             <div class="itemInfoWrap">
  571.                                 <p>
  572.                                     {{ Product.description_detail|raw|nl2br }}
  573.                                 </p>
  574.                             </div>
  575.                             {% if Product.freearea %}
  576.                                 <div class="ec-productRole__description">
  577.                                     {{ include(template_from_string(Product.freearea), sandboxed = true) }}
  578.                                 </div>
  579.                             {% endif %}
  580.                         </div>
  581.                         <!-- /PRODUCTS DATA -->
  582.                     </section>
  583.                     <!-- /MAIN CONTENTS -->
  584.                     <div class="marginTop30">
  585.                     {% if plugin_snippets is defined %}
  586.                         {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  587.                     {% endif %}
  588.                     </div>
  589.                     {% if Layout.MainBottom %}
  590.                         {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  591.                     {% endif %}
  592.                     {% if Layout.ContentsBottom %}
  593.                         <div class="ec-layoutRole__contentBottom">
  594.                             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  595.                         </div>
  596.                     {% endif %}
  597.                 </div>
  598.                 <!-- /MAIN-CONTENTS -->
  599.                 <!-- SIDE-CONTENTS -->
  600.                 {{ include('Block/side_menu.twig') }}
  601.                 <!-- /SIDE-CONTENTS -->
  602.             </div>
  603.             <!-- /CONTENTS -->
  604.         </section>
  605.     </div>
  606.     <!-- /PAGE CONTENTS -->
  607. {% endblock %}