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

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% set body_class = 'product_page' %}
  3. {% block stylesheet %}
  4.   <link rel="stylesheet" href="/test/sm.css?v=9" media="screen and (max-width:640px)"/>
  5.   <link rel="stylesheet" href="/test/pc.css?v=9" media="screen and (min-width:641px)"/>
  6.   <link rel="stylesheet" href="/common4/css/product_detail.css"/>
  7.   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" />
  8.   <style>/* Fancybox全体を最前面に */
  9.     .fancybox__container   { z-index: 2147483640 !important; }
  10.     #syousai_img .none{
  11.       display: none;
  12.     }
  13.     /* 再入荷通知ボタン */
  14.     .btns.restock a {
  15.       background-color: #ff6b6b !important;
  16.       border-color: #ff6b6b !important;
  17.       color: #fff !important;
  18.     }
  19.     .btns.restock a:hover {
  20.       background-color: #ee5a5a !important;
  21.       border-color: #ee5a5a !important;
  22.     }
  23.     .btns.restock-registered a {
  24.       background-color: #6c757d !important;
  25.       border-color: #6c757d !important;
  26.       color: #fff !important;
  27.     }
  28.     .btns.restock-registered a:hover {
  29.       background-color: #5a6268 !important;
  30.       border-color: #545b62 !important;
  31.     }
  32.   </style>
  33. {% endblock %}
  34. {% block javascript %}
  35. <script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script>
  36. <script>
  37.   eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  38.       // 規格2に選択肢を割り当てる。
  39.       function fnSetClassCategories(form, classcat_id2_selected) {
  40.           var $form = $(form);
  41.           var product_id = $form.find('input[name=product_id]').val();
  42.           var $sele1 = $form.find('select[name=classcategory_id1]');
  43.           var $sele2 = $form.find('select[name=classcategory_id2]');
  44.           eccube.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
  45.       }
  46.       {% if form.classcategory_id2 is defined %}
  47.       fnSetClassCategories(
  48.           $('#form1'),{{ form.classcategory_id2.vars.value|json_encode|raw }}
  49.       );
  50.       {% elseif form.classcategory_id1 is defined %}
  51.       eccube.checkStock($('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  52.       {% endif %}
  53.   </script>
  54.   <script>
  55.       $(function () {
  56.           // bfcache無効化
  57.           $(window).bind('pageshow', function (event) {
  58.               if (event.originalEvent.persisted) {
  59.                   location.reload(true);
  60.               }
  61.           });
  62.           // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  63.           // img タグに width, height が付与されている.
  64.           // 630px 未満の画面サイズでは縦横比が壊れるための対策
  65.           // see https://github.com/EC-CUBE/ec-cube/pull/5023
  66.           $('.ec-grid2__cell').hide();
  67.           var removeSize = function () {
  68.               $('.slide-item').height('');
  69.               $('.slide-item img')
  70.                   .removeAttr('width')
  71.                   .removeAttr('height')
  72.                   .removeAttr('style');
  73.           };
  74.           var slickInitial = function (slick) {
  75.               $('.ec-grid2__cell').fadeIn(1500);
  76.               var baseHeight = $(slick.target).height();
  77.               var baseWidth = $(slick.target).width();
  78.               var rate = baseWidth / baseHeight;
  79.               $('.slide-item').height(baseHeight * rate); // 余白を削除する
  80.               // transform を使用することでCLSの影響を受けないようにする
  81.               $('.slide-item img')
  82.                   .css(
  83.                       {
  84.                           'transform-origin': 'top left',
  85.                           'transform': 'scaleY(' + rate + ')',
  86.                           'transition': 'transform .1s'
  87.                       }
  88.                   );
  89.               // 正しいサイズに近くなったら属性を解除する
  90.               setTimeout(removeSize, 500);
  91.           };
  92.           $('.item_visual').on('init', slickInitial);
  93.           // リサイズ時は CLS の影響を受けないため属性を解除する
  94.           $(window).resize(removeSize);
  95.           $('.item_visual').slick({
  96.               dots: false,
  97.               arrows: false,
  98.               responsive: [{
  99.                   breakpoint: 768,
  100.                   settings: {
  101.                       dots: true
  102.                   }
  103.               }]
  104.           });
  105.           $('.slideThumb').on('click', function () {
  106.               var index = $(this).attr('data-index');
  107.               $('.item_visual').slick('slickGoTo', index, false);
  108.           })
  109.       });
  110.   </script>
  111.   <script>
  112.       $(function () {
  113.           $('.add-cart').on('click', function (event) {
  114.             {% if form.classcategory_id1 is defined %}
  115.               // 規格1フォームの必須チェック
  116.               if ($('#classcategory_id1').val() == '__unselected' || $('#classcategory_id1').val() == '') {
  117.                   $('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  118.                   return true;
  119.               } else {
  120.                   $('#classcategory_id1')[0].setCustomValidity('');
  121.               }
  122.             {% endif %}
  123.             {% if form.classcategory_id2 is defined %}
  124.               // 規格2フォームの必須チェック
  125.               if ($('#classcategory_id2').val() == '__unselected' || $('#classcategory_id2').val() == '') {
  126.                   $('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  127.                   return true;
  128.               } else {
  129.                   $('#classcategory_id2')[0].setCustomValidity('');
  130.               }
  131.             {% endif %}
  132.               // 個数フォームのチェック
  133.               if ($('#quantity').val() < 1) {
  134.                   $('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  135.                   return true;
  136.               } else {
  137.                   $('#quantity')[0].setCustomValidity('');
  138.               }
  139.               event.preventDefault();
  140.               $form = $('#form1');
  141.               $.ajax({
  142.                   url: $form.attr('action'),
  143.                   type: $form.attr('method'),
  144.                   data: $form.serialize(),
  145.                   dataType: 'json',
  146.                   beforeSend: function (xhr, settings) {
  147.                       // Buttonを無効にする
  148.                       $('.add-cart').prop('disabled', true);
  149.                   }
  150.               }).done(function (data) {
  151.                   // レスポンス内のメッセージをalertで表示
  152.                   $.each(data.messages, function () {
  153.                       $('#ec-modal-header').text(this);
  154.                   });
  155.                   $('.ec-modal').show()
  156.                   // カートブロックを更新する
  157.                   $.ajax({
  158.                       url: "{{ url('block_cart') }}",
  159.                       type: 'GET',
  160.                       dataType: 'html'
  161.                   }).done(function (html) {
  162.                       $('.ec-headerRole__cart').html(html);
  163.                   });
  164.               }).fail(function (data) {
  165.                   alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  166.               }).always(function (data) {
  167.                   // Buttonを有効にする
  168.                   $('.add-cart').prop('disabled', false);
  169.               });
  170.           });
  171.       });
  172.       $('.ec-modal-wrap').on('click', function (e) {
  173.           // モーダル内の処理は外側にバブリングさせない
  174.           e.stopPropagation();
  175.       });
  176.       $('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function () {
  177.           $('.ec-modal').hide()
  178.       });
  179.   </script>
  180.   <script type="application/ld+json">
  181.     {
  182.     "@context": "https://schema.org/",
  183.     "@type": "Product",
  184.     "name": "{{ Product.name }}",
  185.     "image": [
  186.     {% for img in Product.ProductImage %}
  187.       "{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
  188.     {% else %}
  189.       "{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}"
  190.     {% endfor %}
  191.     ],
  192.     "description": "{{ Product.description_list | default(Product.description_detail) | replace({'\n': '', '\r': ''}) | slice(0,300) }}
  193.     ",
  194.     {% if Product.code_min %}
  195.       "sku": "{{ Product.code_min }}",
  196.     {% endif %}
  197.     "offers": {
  198.     "@type": "Offer",
  199.     "url": "{{ url('product_detail', {'id': Product.id}) }}",
  200.     "priceCurrency": "{{ eccube_config.currency }}",
  201.     "price": "{{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0 }}",
  202.     "availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
  203.     }
  204.     }
  205.   </script>
  206.   <script>
  207.       $(function () {
  208.           $("#syosuai_wrap dl dt#syousai_img p img").on("click", function () {
  209.               let src = $(this).attr("src");
  210.               $("#main_img").attr("src", src);
  211.           });
  212.       });
  213.       function doSubmit() {
  214.           $("#form1").submit();
  215.       }
  216.       function doFavorite() {
  217.           $("#form2").submit();
  218.       }
  219.       $(function () {
  220.         $('.ec-layoutRole__mainBottom').insertAfter('.syousai_txt');
  221.       });
  222.       function do_contact_product(){
  223.         $("#contact_product").submit();
  224.       }
  225.       function changeImage(src){
  226.         $("#main_img").attr("src", src);
  227.       }
  228.       // 再入荷通知の登録・解除
  229.       function handleRestockAction(productId, type) {
  230.         var action = type === 1 ? "登録" : "解除";
  231.         if (confirm("再入荷通知を" + action + "しますか?")) {
  232.           location.href = "{{ url('product_restock', {'id': 0}) }}".replace('/0', '/' + productId) + "?type=" + type;
  233.         }
  234.       }
  235.       // 数量変更時にリクエスト予約フォームに反映
  236.       $(function(){
  237.         $("#quantity").on("change", function(){
  238.           var val = $(this).val();
  239.           $("#reserve_num").val(val);
  240.         });
  241.       });
  242.   </script>
  243.   
  244.     <script>
  245.     //カート固定
  246.     (function () {
  247.       const cart = document.getElementById('cartfix');
  248.       const cartbox = document.getElementById('cartbox');
  249.       const wrap = document.querySelector('.ec-layoutRole__contents');
  250.     
  251.       function syncCartboxHeight() {
  252.         cartbox.style.height = wrap.offsetHeight + 'px';
  253.       }
  254.     
  255.       function onScroll() {
  256.         const screenWidth = window.innerWidth;
  257.         const distanceFromBottom =
  258.           wrap.offsetHeight - window.scrollY - cart.offsetHeight;
  259.     
  260.         syncCartboxHeight();
  261.     
  262.         if (screenWidth > 640) {
  263.           if (window.scrollY < 60) {
  264.             cart.style.position = 'sticky';
  265.             cart.style.top = '214px';
  266.             cart.style.bottom = 'auto';
  267.             cart.style.padding = '20px';
  268.           } 
  269.           else if (distanceFromBottom <= 60) {
  270.             cart.style.position = 'absolute';
  271.             cart.style.top = 'auto';
  272.             cart.style.bottom = '68px';
  273.             cart.style.padding = '20px';
  274.           } 
  275.           else {
  276.             cart.style.position = 'sticky';
  277.             cart.style.top = '214px';
  278.             cart.style.bottom = 'auto';
  279.             cart.style.padding = '20px';
  280.           }
  281.         } 
  282.         else {
  283.           cart.style.position = 'relative';
  284.           cart.style.top = 'auto';
  285.           cart.style.bottom = 'auto';
  286.           cartbox.style.height = 'auto';
  287.         }
  288.       }
  289.     
  290.       syncCartboxHeight();
  291.       window.addEventListener('scroll', onScroll);
  292.       window.addEventListener('resize', syncCartboxHeight);
  293.     })();
  294.     </script>
  295. <link rel="stylesheet" href="/common/css/slider-pro.min.css" media="screen"/>
  296. <script src="/common/js/jquery.sliderPro.js"></script>
  297. <script type="text/javascript">
  298.   $(function(){
  299.     doSlider();
  300.   });
  301.   function doSlider(){
  302.     $('#palace_img_area').sliderPro({
  303.       width:850,
  304.       height: 850,
  305.       thumbnailWidth :80,
  306.       thumbnailHeight:80,
  307.       thumbnailPointer :true,
  308.       fade: true,
  309.       arrows: true,
  310.       fadeArrows:false,
  311.       thumbnailArrows:true,
  312.       fadeThumbnailArrows:false,
  313.       buttons: false,
  314.       fullScreen: false,
  315.       thumbnailArrows: true,
  316.       autoHeight: true,
  317.       autoplay: false
  318.     });
  319.   }
  320.   </script>
  321. {% endblock %}
  322. {% block main %}
  323.   {% set id = Product.id %}
  324.     <div id="syosuai_wrap">
  325.       <dl>
  326.         <dt id="syousai_img">
  327.           <!--//商品画像-->
  328.           <div id="palace_img_area" class="slider-pro">
  329.             <div class="sp-slides">
  330.               {% for ProductImage in Product.ProductImage %}
  331.                 <div class="sp-slide">
  332.                   <a href="{{ asset(ProductImage, 'save_image') }}" data-fancybox="gallery">
  333.                     <img src="{{ asset(ProductImage, 'save_image') }}" loading="lazy" alt="#"></a>
  334.                 </div>
  335.               {% endfor %}
  336.             </div>
  337.             <div class="sp-thumbnails">
  338.               {% for ProductImage in Product.ProductImage %}
  339.                 <img class="sp-thumbnail" src="{{ asset(ProductImage, 'save_image') }}" alt="#"/>
  340.               {% endfor %}
  341.             </div>
  342.           </div>
  343.           <!--//商品画像-->
  344.         </dt>
  345.         <dd id="syousai_txt">
  346.           <h1>{{ Product.name }}</h1>
  347.           {% if (htEx[1] is defined and htEx[1]) or
  348.             (htEx[50] is defined and htEx[50]) or
  349.             (htEx[3] is defined and htEx[3]) or
  350.             (htEx[28] is defined and htEx[28])
  351.           %}
  352.             <h2>
  353.               {% if htEx[1] is defined and htEx[1] %}
  354.                 {% if htEx[1] == "未鑑定" %}
  355.                   <span>未鑑定</span>
  356.                 {% else %}
  357.                   <span>{{ htEx[1] }}</span>
  358.                 {% endif %}
  359.               {% endif %}
  360.               {% if htEx[50] is defined and htEx[50] %}<span>{{ htEx[50] }}</span>{% endif %}
  361.               {% if htEx[3] is defined and htEx[3] and htEx[3] != "---" %}<span>グレード:{{ htEx[3] }}</span>{% endif %}
  362.               {% if htEx[28] is defined and htEx[28] == "有り" %}<span>専用BOX付き</span>{% endif %}
  363.             </h2>
  364.           {% endif %}
  365.           <p class="clear"></p>
  366.           <table border="0" cellspacing="0" cellpadding="0" class="item_spec_table">
  367.             <tbody>
  368.             <tr>
  369.               <th>品番</th>
  370.               <td>{{ Product.id }}</td>
  371.             </tr>
  372.             {% if htEx[1] is defined and htEx[1] and htEx[2] is defined and htEx[2] %}
  373.               <tr>
  374.                 <th>鑑定番号</th>
  375.                 <td>
  376.                   {% if htEx[1] == "PCGS" %}
  377.                     <img src="/common/img/pcgslogo.png" class="type_logo" alt="PCGS">
  378.                     <a href="https://www.pcgsasia.com/cert/{{ htEx[2] }}?l=ja"
  379.                        target="_blank">{{ htEx[2] }}</a>
  380.                   {% elseif htEx[1] == "NGC" and htEx[3] is defined %}
  381.                     <img src="/common/img/ngc.jpg" class="type_logo" alt="NGC">
  382.                     <a href="https://www.ngccoin.com/certlookup/{{ htEx[2] }}/{{ htEx[3]|replace({' ': ''}) }}/"
  383.                        target="_blank">{{ htEx[2] }}</a>
  384.                   {% endif %}
  385.                 </td>
  386.               </tr>
  387.             {% endif %}
  388.             {% if htEx[3] is defined and htEx[3] and htEx[3] != "---" %}
  389.               <tr>
  390.                 <th>グレード数</th>
  391.                 <td>{{ htEx[3] }}</td>
  392.               </tr>
  393.             {% endif %}
  394.             {% if htEx[20] is defined and htEx[20] %}
  395.               <tr>
  396.                 <th>タイプ</th>
  397.                 <td>{{ htEx[20] }}</td>
  398.               </tr>
  399.             {% endif %}
  400.             {% if htEx[34] is defined and htEx[34] %}
  401.               <tr>
  402.                 <th>発行限定数</th>
  403.                 <td>{{ htEx[34] }}</td>
  404.               </tr>
  405.             {% endif %}
  406.             {% if htEx[51] is defined and htEx[51] %}
  407.               <tr>
  408.                 <th>最大発行数</th>
  409.                 <td>{{ htEx[51] }}</td>
  410.               </tr>
  411.             {% endif %}
  412.             {% if htEx[45] is defined and htEx[45] %}
  413.               <tr>
  414.                 <th>世界現存数</th>
  415.                 <td>{{ htEx[45] }}</td>
  416.               </tr>
  417.             {% endif %}
  418.             {% if htEx[35] is defined and htEx[35] %}
  419.               <tr>
  420.                 <th>重量</th>
  421.                 <td>{{ htEx[35] }}</td>
  422.               </tr>
  423.             {% endif %}
  424.             {% if htEx[36] is defined and htEx[36] %}
  425.               <tr>
  426.                 <th>直径</th>
  427.                 <td>{{ htEx[36] }}</td>
  428.               </tr>
  429.             {% endif %}
  430.             {% if htEx[50] is defined and htEx[50] %}
  431.               <tr>
  432.                 <th>品位</th>
  433.                 <td>{{ htEx[50] }}</td>
  434.               </tr>
  435.             {% endif %}
  436.             {% if htEx[37] is defined and htEx[37] %}
  437.               <tr>
  438.                 <th>表面</th>
  439.                 <td>{{ htEx[37] }}</td>
  440.               </tr>
  441.             {% endif %}
  442.             {% if htEx[38] is defined and htEx[38] %}
  443.               <tr>
  444.                 <th>表面</th>
  445.                 <td>{{ htEx[38] }}</td>
  446.               </tr>
  447.             {% endif %}
  448.             {% if htEx[39] is defined and htEx[39] %}
  449.               <tr>
  450.                 <th>エッジの刻銘</th>
  451.                 <td>{{ htEx[39] }}</td>
  452.               </tr>
  453.             {% endif %}
  454.             {% if htEx[46] is defined and htEx[46] %}
  455.               <tr>
  456.                 <th>発送元</th>
  457.                 <td>{{ htEx[46] }}</td>
  458.               </tr>
  459.             {% endif %}
  460.             <tr>
  461.               <th>納期</th>
  462.               <td>
  463.                 {% if htEx[47] is defined and htEx[47] %}
  464.                   {{ htEx[47] }}
  465.                 {% else %}
  466.                   <a href="javascript:do_contact_product()">お問い合わせ</a>ください
  467.                 {% endif %}
  468.               </td>
  469.             </tr>
  470.             </tbody>
  471.           </table>
  472.           {% if htEx[60] is defined and htEx[60] %}
  473.             <div id="shop_voice">
  474.               <div class="voice_area">{{ htEx[60] }}</div>
  475.             </div>
  476.           {% endif %}
  477.         </dd>
  478.         <dt id="cartbox">
  479.           <div id="cartfix">
  480.               {% set s_name = Product.Status.name %}
  481.               {% if Product.stock_find %}
  482.                 {% if s_name == "非公開" %}
  483.                   <ul id="zaiko">
  484.                     <li>在庫有り</li>
  485.                     <li></li>
  486.                   </ul>
  487.                 {% elseif s_name == "予約品(公開)" %}
  488.                 <p class="yoyaku"><span>予約品</span></p>
  489.                 {% if htEx[55] is defined and htEx[55] %}
  490.                   <p class="meyasu_price"><span>目安価格:</span><b>{{ htEx[55]|number_format }}<em>円(税込)</em></b></p>
  491.                 {% endif %}
  492.                   {% elseif s_name == "取り置き(公開)" %}
  493.                   <p class="meyasu">一般価格:<s>¥ {{ Product.getPrice02IncTaxMin|number_format }}</s><em>(税込)</em></p>
  494.                   {% if member_price %}
  495.                   <p class="meyasu red">会員価格:</p>
  496.                   <p class="yen noto-sans red"><span>¥</span>{{ member_price|number_format }} <em>(税込)</em></p>
  497.                   {% endif %}
  498.                   <p id="item_tag"><span id="torioki">取り置き中</span>
  499.                     {% if product_disp_date is defined %}
  500.                     <b>{{ product_disp_date }}</b>
  501.                     {% endif %}
  502.                   </p>
  503.                   <p id="yoyaku_txt">取り置き中です<br>お問い合わせ下さい</p>
  504.                   {% elseif Product.getPrice02IncTaxMin == 0 %}
  505.                   <p id="item_tag"><b>誠にお手数ですが、お問合せお願い申し上げます。<br>こちらの商品は現在価格が確定しておりませんので、確定次第ご案内申し上げます。</b>
  506.                   </p>
  507.                   <p id="yoyaku_txt"></p>
  508.                 {% else %}
  509.                   <p class="meyasu">一般価格:<s>¥ {{ Product.getPrice02IncTaxMin|number_format }}</s><em>(税込)</em></p>
  510.                   {% if member_price %}
  511.                   <p class="meyasu red">会員価格:</p>
  512.                   <p class="yen noto-sans red"><span>¥</span>{{ member_price|number_format }} <em>(税込)</em></p>
  513.                   {% endif %}
  514.                   {% if jigane_flg %}
  515.                   <ul id="zaiko"><li>在庫有り</li>
  516.                     <li>{% if Product.getStockFind == true %}残り {{ Product.getStockMax }}点{% endif %}
  517.                       {% if htEx[64] is defined and htEx[64] == "117" %}
  518.                         <small>(入荷予定あり)</small>
  519.                       {% endif %}
  520.                     </li>
  521.                   </ul>
  522.                   {% endif %}
  523.                 {% endif %}
  524.               {% else %}
  525.                 {% if s_name == "取り置き(公開)" %}
  526.                   <p class="meyasu">一般価格:<s>¥ {{ Product.getPrice02IncTaxMin|number_format }}</s><em>(税込)</em></p>
  527.                   {% if member_price %}
  528.                     <p class="meyasu red">会員価格:</p>
  529.                     <p class="yen noto-sans red"><span>¥</span>{{ member_price|number_format }} <em>(税込)</em></p>
  530.                   {% endif %}
  531.                 {% endif %}
  532.               {% endif %}
  533.             <form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form1" name="form1">
  534.               {% if form.quantity is defined %}
  535.                 {% if s_name == "非売品" %}
  536.                 {% elseif s_name == "取り置き(公開)"  %}
  537.                 {% elseif s_name == "予約品(公開)" %}
  538.                   <div id="quantity_area">
  539.                     <table border="0" cellspacing="0" cellpadding="0">
  540.                       <tbody>
  541.                       <tr>
  542.                         <th>数量:</th>
  543.                         <td>
  544.                           {{ form_widget(form.quantity) }}
  545.                           {{ form_errors(form.quantity) }}
  546.                         </td>
  547.                       </tr>
  548.                       </tbody>
  549.                     </table>
  550.                   </div>
  551.                 {% elseif Product.getPrice02IncTaxMin == 0 %}
  552.                 {% else %}
  553.                   <div id="quantity_area">
  554.                     <table border="0" cellspacing="0" cellpadding="0">
  555.                       <tbody>
  556.                       <tr>
  557.                         <th>数量:</th>
  558.                         <td>
  559.                           {{ form_widget(form.quantity) }}
  560.                           {{ form_errors(form.quantity) }}
  561.                         </td>
  562.                       </tr>
  563.                       </tbody>
  564.                     </table>
  565.                   </div>
  566.                 {% endif %}
  567.               {% endif %}
  568.               {% if Product.stock_find %}
  569.                 <div class="ec-productRole__actions">
  570.                   {% if form.classcategory_id1 is defined %}
  571.                     <div class="ec-select">
  572.                       {{ form_row(form.classcategory_id1) }}
  573.                       {{ form_errors(form.classcategory_id1) }}
  574.                     </div>
  575.                     {% if form.classcategory_id2 is defined %}
  576.                       <div class="ec-select">
  577.                         {{ form_row(form.classcategory_id2) }}
  578.                         {{ form_errors(form.classcategory_id2) }}
  579.                       </div>
  580.                     {% endif %}
  581.                   {% endif %}
  582.                 </div>
  583.                 {% if s_name == "非売品" %}
  584.                 {% elseif s_name == "取り置き(公開)" %}
  585.                 {% elseif s_name == "予約品(公開)" %}
  586.                   {# リクエスト予約ボタン(カートボタンの代わり) #}
  587.                 {% elseif Product.getPrice02IncTaxMin == 0 %}
  588.                 {% else %}
  589.                   <p class="btns ye"><a href="javascript:void(0)" onclick="doSubmit()">
  590.                       <i class="fa-solid fa-cart-shopping"></i> カートに入れる</a></p>
  591.                 {% endif %}
  592.               {% else %}
  593.                 <p class="btns ye"><a href="javascript:void(0)" disabled="disabled"><i
  594.                       class="fa-solid fa-cart-shopping"></i> ただいま品切れ中です。</a></p>
  595.                 {# 再入荷通知ボタン #}
  596.                 {% if restock_disp_flg is defined and restock_disp_flg == 1 %}
  597.                   {% if restock_regist_flg is defined and restock_regist_flg == 1 %}
  598.                     <p class="btns restock-registered"><a href="javascript:void(0)" onclick="handleRestockAction({{ Product.id }}, 2)"><i class="fa-solid fa-bell-slash"></i> 再入荷通知を解除</a></p>
  599.                   {% else %}
  600.                     <p class="btns restock"><a href="javascript:void(0)" onclick="handleRestockAction({{ Product.id }}, 1)"><i class="fa-solid fa-bell"></i> 再入荷通知を登録</a></p>
  601.                   {% endif %}
  602.                 {% endif %}
  603.               {% endif %}
  604.               {% if BaseInfo.option_favorite_product %}
  605.                 {% if is_favorite == false %}
  606.                   <p class="btns or"><a href="javascript:void(0)" onclick="doFavorite()"><i
  607.                         class="fa-solid fa-star"></i> お気に入りに追加</a></p>
  608.                 {% else %}
  609.                   <p class="btns or"><a href="javascript:void(0)" disabled="disabled"><i
  610.                         class="fa-solid fa-star"></i>
  611.                       お気に入りに追加済みです。</a></p>
  612.                 {% endif %}
  613.               {% endif %}
  614.               {{ form_rest(form) }}
  615.             </form>
  616.             {% if s_name == "予約品(公開)" %}
  617.               {# リクエスト予約フォーム #}
  618.               <form name="product_reserve" id="product_reserve" action="{{ url('plugin_pia_product_reserve') }}" method="post">
  619.                 <input type="hidden" name="id" value="{{ Product.id }}">
  620.                 <input type="hidden" id="reserve_num" name="num" value="1">
  621.                 <p class="btns ye"><button type="submit"><i class="fa-solid fa-calendar-check"></i> リクエスト予約</button></p>
  622.               </form>
  623.             {% endif %}
  624.             <form name="contact_product" id="contact_product" action="/product_contact" method="post">
  625.               <input type="hidden" name="id" value="{{ Product.id }}">
  626.               <div class="btn_area">
  627.                 <ul class="row">
  628.                   <li><button type="submit" id="item-mail">商品についてのお問い合わせ</button></li>
  629.                 </ul>
  630.               </div>
  631.             </form>
  632.               <p class="btm_txt"><a href="/user_data/delivery">配送・送料・返品について</a></p>
  633.             {% if s_name == "予約品(公開)" %}
  634.               <div class="can kaigai">
  635.                 <p>海外受注生産の為、ご注文後のキャンセルができません。<br>
  636.                   また、ご注文確定後でも入手が確約できない場合がございますので、何卒ご了承の程お願い申し上げます。
  637.                 </p></div>
  638.               <div class="yoyaku_txt2">
  639.                 ご予約後、価格や納期についてご連絡申し上げます。
  640.                 数に限りがございますので、ご連絡時点で予約が終了している可能性があることを予めご了承ください。
  641.               </div>
  642.             {% endif %}
  643.             <div class="ec-modal">
  644.               <div class="ec-modal-overlay">
  645.                 <div class="ec-modal-wrap">
  646.                 <span class="ec-modal-close"><span class="ec-icon"><img src="{{ asset('assets/icon/cross-dark.svg') }}"
  647.                                                                         alt=""/></span></span>
  648.                   <div id="ec-modal-header"
  649.                        class="text-center">{{ 'カートに追加しました。'|trans }}</div>
  650.                   <div class="ec-modal-box">
  651.                     <div class="ec-role">
  652.                       <span class="ec-inlineBtn--cancel">{{ 'お買い物を続ける'|trans }}</span>
  653.                       <a href="{{ url('cart') }}"
  654.                          class="ec-inlineBtn--action">{{ 'カートへ進む'|trans }}</a>
  655.                     </div>
  656.                   </div>
  657.                 </div>
  658.               </div>
  659.             </div>
  660.             {% if BaseInfo.option_favorite_product %}
  661.               <form action="{{ url('product_add_favorite', {id:Product.id}) }}" id="form2"
  662.                     method="post"></form>
  663.             {% endif %}
  664.           </div><!-- cartfix -->
  665.         </dt>
  666.       </dl>
  667.     </div><!-- syosuai_wrap -->
  668.     <div id="syousai_btm">
  669.       <dl>
  670.         <dt id="left">
  671.           <div class="syousai_txt">
  672.             <dl>
  673.               <dt><h3>商品詳細</h3></dt>
  674.               <dd>
  675.                 {{ Product.description_detail|raw }}
  676.               </dd>
  677.             </dl>
  678.           </div><!-- syousai_txt -->
  679.         </dt><!-- left -->
  680.         <dd></dd>
  681.       </dl>
  682.     </div><!-- syousai_btm -->
  683. {% endblock %}