app/template/airconwork/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. {% endblock %}
  12. {% block javascript %}
  13. <!--
  14.     <script>
  15.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  16.         // 規格2に選択肢を割り当てる。
  17.         function fnSetClassCategories(form, classcat_id2_selected) {
  18.             var $form = $(form);
  19.             var product_id = $form.find('input[name=product_id]').val();
  20.             var $sele1 = $form.find('select[name=classcategory_id1]');
  21.             var $sele2 = $form.find('select[name=classcategory_id2]');
  22.             eccube.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
  23.         }
  24.         {% if form.classcategory_id2 is defined %}
  25.         fnSetClassCategories(
  26.             $('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  27.         );
  28.         {% elseif form.classcategory_id1 is defined %}
  29.         eccube.checkStock($('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  30.         {% endif %}
  31.     </script>
  32. -->
  33.     <script>
  34.         $(function() {
  35.             // bfcache無効化
  36.             $(window).bind('pageshow', function(event) {
  37.                 if (event.originalEvent.persisted) {
  38.                     location.reload(true);
  39.                 }
  40.             });
  41.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  42.             // img タグに width, height が付与されている.
  43.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  44.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  45.             $('.ec-grid2__cell').hide();
  46.             var removeSize = function () {
  47.                 $('.slide-item').height('');
  48.                 $('.slide-item img')
  49.                     .removeAttr('width')
  50.                     .removeAttr('height')
  51.                     .removeAttr('style');
  52.             };
  53.             var slickInitial = function(slick) {
  54.                 $('.ec-grid2__cell').fadeIn(1500);
  55.                 var baseHeight = $(slick.target).height();
  56.                 var baseWidth = $(slick.target).width();
  57.                 var rate = baseWidth / baseHeight;
  58.                 $('.slide-item').height(baseHeight * rate); // 余白を削除する
  59.                 // transform を使用することでCLSの影響を受けないようにする
  60.                 $('.slide-item img')
  61.                     .css(
  62.                         {
  63.                             'transform-origin': 'top left',
  64.                             'transform': 'scaleY(' + rate + ')',
  65.                             'transition': 'transform .1s'
  66.                         }
  67.                     );
  68.                 // 正しいサイズに近くなったら属性を解除する
  69.                 setTimeout(removeSize, 500);
  70.             };
  71.             $('.item_visual').on('init', slickInitial);
  72.             // リサイズ時は CLS の影響を受けないため属性を解除する
  73.             $(window).resize(removeSize);
  74.             $('.item_visual').slick({
  75.                 dots: false,
  76.                 arrows: false,
  77.                 responsive: [{
  78.                     breakpoint: 768,
  79.                     settings: {
  80.                         dots: true
  81.                     }
  82.                 }]
  83.             });
  84.             $('.slideThumb').on('click', function() {
  85.                 var index = $(this).attr('data-index');
  86.                 $('.item_visual').slick('slickGoTo', index, false);
  87.             })
  88.         });
  89.     </script>
  90.     <script>
  91.         $(function() {
  92.             $('.add-cart').on('click', function(event) {
  93.                 {% if form.classcategory_id1 is defined %}
  94.                 // 規格1フォームの必須チェック
  95.                 if ($('#classcategory_id1').val() == '__unselected' || $('#classcategory_id1').val() == '') {
  96.                     $('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  97.                     return true;
  98.                 } else {
  99.                     $('#classcategory_id1')[0].setCustomValidity('');
  100.                 }
  101.                 {% endif %}
  102.                 {% if form.classcategory_id2 is defined %}
  103.                 // 規格2フォームの必須チェック
  104.                 if ($('#classcategory_id2').val() == '__unselected' || $('#classcategory_id2').val() == '') {
  105.                     $('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  106.                     return true;
  107.                 } else {
  108.                     $('#classcategory_id2')[0].setCustomValidity('');
  109.                 }
  110.                 {% endif %}
  111.                 // 個数フォームのチェック
  112.                 if ($('#quantity').val() < 1) {
  113.                     $('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  114.                     return true;
  115.                 } else {
  116.                     $('#quantity')[0].setCustomValidity('');
  117.                 }
  118.                 event.preventDefault();
  119.                 $form = $('#form1');
  120.                 $.ajax({
  121.                     url: $form.attr('action'),
  122.                     type: $form.attr('method'),
  123.                     data: $form.serialize(),
  124.                     dataType: 'json',
  125.                     beforeSend: function(xhr, settings) {
  126.                         // Buttonを無効にする
  127.                         $('.add-cart').prop('disabled', true);
  128.                     }
  129.                 }).done(function(data) {
  130.                     // レスポンス内のメッセージをalertで表示
  131.                     $.each(data.messages, function() {
  132.                         $('#ec-modal-header').text(this);
  133.                     });
  134.                     $('.ec-modal').show()
  135.                     // カートブロックを更新する
  136.                     $.ajax({
  137.                         url: "{{ url('block_cart') }}",
  138.                         type: 'GET',
  139.                         dataType: 'html'
  140.                     }).done(function(html) {
  141.                         $('.ec-headerRole__cart').html(html);
  142.                     });
  143.                 }).fail(function(data) {
  144.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  145.                 }).always(function(data) {
  146.                     // Buttonを有効にする
  147.                     $('.add-cart').prop('disabled', false);
  148.                 });
  149.             });
  150.         });
  151.         $('.ec-modal-wrap').on('click', function(e) {
  152.             // モーダル内の処理は外側にバブリングさせない
  153.             e.stopPropagation();
  154.         });
  155.         $('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  156.             $('.ec-modal').hide()
  157.         });
  158.     </script>
  159.     <script type="application/ld+json">
  160.     {
  161.         "@context": "https://schema.org/",
  162.         "@type": "Product",
  163.         "name": "{{ Product.name }}",
  164.         "image": [
  165.             {% for img in Product.ProductImage %}
  166.                 "{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
  167.             {% else %}
  168.                 "{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}"
  169.             {% endfor %}
  170.         ],
  171.         "description": "{{ Product.description_list | default(Product.description_detail) | replace({'\n': '', '\r': ''}) | slice(0,300) }}",
  172.         {% if Product.code_min %}
  173.         "sku": "{{ Product.code_min }}",
  174.         {% endif %}
  175.         "offers": {
  176.             "@type": "Offer",
  177.             "url": "{{ url('product_detail', {'id': Product.id}) }}",
  178.             "priceCurrency": "{{ eccube_config.currency }}",
  179.             "price": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  180.             "availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
  181.         }
  182.     }
  183.     </script>
  184.       <script>
  185.     var swiper = new Swiper(".swiper-thumbs-slider__sub", {
  186.       spaceBetween: 10,
  187.       slidesPerView: 3,
  188.       freeMode: true,
  189.       watchSlidesProgress: true,
  190.     });
  191.     var swiper2 = new Swiper(".swiper-thumbs-slider__main", {
  192.       spaceBetween: 10,
  193.       navigation: {
  194.         nextEl: ".swiper-button-next",
  195.         prevEl: ".swiper-button-prev",
  196.       },
  197.       thumbs: {
  198.         swiper: swiper,
  199.       },
  200.     });
  201.   </script>
  202.   <script>
  203.     $(document).ready(function() {
  204.     $('#btn-cv').click(function() {
  205.       $('form input[type="hidden"]').each(function() {
  206.       var name = $(this).attr('name');
  207.       var value = $(this).val();
  208.       localStorage.setItem(name, value);
  209.       });
  210.       $('form').submit();
  211.     });
  212.     });
  213. </script>
  214. {% endblock %}
  215. {% set CatId = '' %}
  216. {% set CatMaker = '' %}{# メーカー #}
  217. {% set CatSeries = '' %}{# シリーズ #}
  218. {% set CatSeriesId = '' %}{# シリーズID #}
  219. {% set CatShape = '' %}{# 形状ID #}
  220. {% set CatShapeId = '' %}{# 形状ID #}
  221. {% set CatPower = '' %}{# 馬力 #}
  222. {% set CatPowerId = '' %}{# 馬力ID #}
  223. {% set CatExtent = '' %}{# 広さ #}
  224. {% set CatExtentId = '' %}{# 広さID #}
  225. {% set CatSystem = '' %}{# マルチエアコン #}
  226. {% set CatSystemId = '' %}{# マルチエアコンID #}
  227. {% set TagPower1 = '' %}{# 電源1 #}
  228. {% set TagPower2 = '' %}{# 電源2 #}
  229. {% set TagRC1 = '' %}{# リモコン1 #}
  230. {% set TagRC2 = '' %}{# リモコン2 #}
  231. {% set ProductCode = '' %}{# 型番 #}
  232. {# カテゴリ #}
  233. {% if Product.ProductCategories is not empty %}
  234.   {% for ProductCategory in Product.ProductCategories %}
  235.     {% if ProductCategory.Category.getParent is not null %}
  236.       {% if ProductCategory.Category.getParent.id == 1 %}
  237.         {% set CatMaker = ProductCategory.Category.name %}{# メーカー #}
  238.         {% set CatId = ProductCategory.Category.id %}
  239.       {% endif %}
  240.       {% if ProductCategory.Category.getParent.id == 51 %}
  241.         {% set CatShape = ProductCategory.Category.name %}{# 形状 #}
  242.         {% set CatShapeId = ProductCategory.Category.id %}{# 形状ID #}
  243.       {% endif %}
  244.       {% if ProductCategory.Category.getParent.id == 61 %}
  245.         {% set CatPower = ProductCategory.Category.name %}{# 馬力 #}
  246.         {% set CatPowerId = ProductCategory.Category.id %}{# 馬力ID #}
  247.       {% endif %}
  248.       {% if ProductCategory.Category.getParent.id == 111 %}
  249.         {% set CatExtent = ProductCategory.Category.name %}{# 広さ #}
  250.         {% set CatExtentId = ProductCategory.Category.id %}{# 広さID #}
  251.       {% endif %}
  252.       {% if ProductCategory.Category.getParent.id == 81 %}
  253.         {% set CatSystem = ProductCategory.Category.name %}{# マルチエアコン #}
  254.         {% set CatSystemId = ProductCategory.Category.id %}{# マルチエアコンID #}
  255.       {% endif %}
  256.     {% endif %}
  257.     {% if CatId is not empty %}
  258.      {% if ProductCategory.Category.getParent is not null %}
  259.       {% if ProductCategory.Category.getParent.id == CatId %}
  260.         {% set CatSeries = ProductCategory.Category.name %}{# シリーズ #}
  261.         {% set CatSeriesId = ProductCategory.Category.id %}{# シリーズID #}
  262.       {% endif %}
  263.       {% endif %}
  264.     {% endif %}
  265.   {% endfor %}
  266. {% endif %}
  267. {# タグ:電源 #}
  268. {% if Product.hasTag(1) %}
  269. {% set PageTag = repository('Eccube\\Entity\\Tag').find('1') %}
  270. {% set TagPower1 = PageTag.name %}{# 電源1 #}
  271. {% endif %}
  272. {% if Product.hasTag(2) %}
  273. {% set PageTag = repository('Eccube\\Entity\\Tag').find('2') %}
  274. {% set TagPower2 = PageTag.name %}{# 電源2 #}
  275. {% endif %}
  276. {# タグ:リモコン #}
  277. {% if Product.hasTag(5) %}
  278.   {% set PageTag = repository('Eccube\\Entity\\Tag').find('5') %}
  279.   {% set TagRC1 = PageTag.name %}{# リモコン1 #}
  280. {% endif %}
  281. {% if Product.hasTag(6) %}
  282.   {% set PageTag = repository('Eccube\\Entity\\Tag').find('6') %}
  283.   {% set TagRC2 = PageTag.name %}{# リモコン2 #}
  284. {% endif %}
  285. {# 型番 #}
  286. {% if Product.code_min is not empty %}
  287. {% set ProductCode = Product.code_min %}{# 型番 #}
  288. {% endif %}
  289. {# セット内容 数設定 #}
  290. {# シングル #}
  291. {% set sysNum1 = '1' %}
  292. {% if CatSystemId == 83 %}{# ツイン #}
  293.   {% set sysNum1 = '2' %}
  294. {% elseif CatSystemId == 84 %}{# トリプル #}
  295.   {% set sysNum1 = '3' %}
  296. {% elseif CatSystemId == 85 %}{# ダブルツイン #}
  297.   {% set sysNum1 = '4' %}
  298. {% endif %}
  299. {#  // {% set title = CatMaker ~ ' ' ~ Product.name ~ ' ' ~ TagPower1 ~ ' ' ~ TagPower2 ~ ' ' ~ TagRC1 ~ ' ' ~ TagRC2 ~ ' ' ~ ProductCode %} #}
  300. {#  // 電源が被ってしまう為、「TagPower1 」を削除 2024-09-25 工藤 #}
  301. {% set title = CatMaker ~ ' ' ~ Product.name ~ ' ' ~ TagPower2 ~ ' ' ~ TagRC1 ~ ' ' ~ TagRC2 ~ ' ' ~ ProductCode %}
  302. {% block metatitle %}
  303. {{ title }}
  304. {% endblock %}
  305. {% block breadcrumb %}
  306. <li><a href="/products/list"><span>商品一覧</span></a> »</li>
  307. <li><span itemprop="name">{{ title }}</span></li>
  308. {% endblock %}
  309. {% block title %}
  310. <h1 class="c-title-06">
  311. <span class="s-text">
  312. {{ title }}
  313. </span>
  314. </h1>
  315. {% endblock %}
  316. {% block main %}
  317. {% if Product.old_flag != 1 %}
  318.   <div class="c-section">
  319.     <div class="p-products-dtl-main">
  320.       <div class="s-content-left">
  321.         <div class="swiper-thumbs-slider p-products-dtl-slider">
  322.           <div class="swiper swiper-thumbs-slider__main">
  323.             <div class="swiper-wrapper">
  324.             {% for ProductImage in Product.ProductImage %}
  325.               <div class="swiper-slide">
  326.               <img src="{{ asset(ProductImage, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" width="360" height="360"{% if loop.index > 1 %} loading="lazy"{% endif %}>
  327.               </div>
  328.               {% else %}
  329.               <div class="swiper-slide">
  330.                 <img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" width="360" height="360">
  331.               </div>
  332.               {% endfor %}
  333.             </div>
  334.             <div class="swiper-button-next"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 44" class="swiper-button-next-a">
  335.                 <path class="swiper-arrow arrow-right" d="M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z" />
  336.               </svg></div>
  337.             <div class="swiper-button-prev"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 44" class="swiper-button-prev-a">
  338.                 <path class="swiper-arrow arrow-left" d="M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z" />
  339.               </svg></div>
  340.           </div>
  341.           <div class="swiper swiper-thumbs-slider__sub">
  342.             <div class="swiper-wrapper">
  343.               {% for ProductImage in Product.ProductImage %}
  344.               <div class="swiper-slide">
  345.                 <div class="swiper-slide__in">
  346.                   <img src="{{ asset(ProductImage, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" width="113" height="113"{% if loop.index > 1 %} loading="lazy"{% endif %}>
  347.                 </div>
  348.               </div>
  349.               {% else %}
  350.               <div class="swiper-slide">
  351.                 <div class="swiper-slide__in">
  352.                   <img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" width="113" height="113">
  353.                 </div>
  354.               </div>
  355.               {% endfor %}
  356.             </div>
  357.           </div>
  358.         </div>
  359.         <table class="c-table-04">
  360.           <tr>
  361.             <th>セット内容</th>
  362.           </tr>
  363.           <tr>
  364.             <td>
  365.               {% if Product.set_indoor is not null %}
  366.                   {% set indoor_price = (Product.set_indoor_price * sysNum1) * 1.1 %}
  367.                   室内機: {{ Product.set_indoor }} ×{{ sysNum1 }} {#  // [{{ indoor_price|number_format }}円] #}<br>
  368.               {% endif %}
  369.               {% if Product.set_outdoor is not null %}
  370.                   {% set outdoor_price = Product.set_outdoor_price * 1.1 %}
  371.                   室外機: {{ Product.set_outdoor }} {#  // [{{ outdoor_price|number_format }}円] #}<br>
  372.               {% endif %}
  373.               {% if CatShapeId in [52, 53, 54, 56, 143] %}{# 化粧パネルが存在するのは天カセ4方向・天カセ2方向・天カセ1方向・ビルトインのみ #}
  374.                   {% if Product.set_panel is not null %}
  375.                       化粧パネル: {{ Product.set_panel }} ×{{ sysNum1 }}<br>
  376.                   {% endif %}
  377.               {% endif %}
  378.               {% if CatSystemId not in [82] %}{# 分岐管1はシングル以外、型番が入ります。 #}
  379.                   {% if Product.set_pipe is not null %}
  380.                       {% if CatMaker == 'ダイキン' or CatMaker == 'パナソニック' %}
  381.                         分岐管: 別売り<br>
  382.                     {% else %}
  383.                         {% set set_pipe_price = Product.set_pipe_price * 1.1 %}
  384.                         分岐管1: {{ Product.set_pipe }} {#  // [{{ set_pipe_price|number_format }}円] #}<br>
  385.                     {% endif %}
  386.                   {% endif %}
  387.               {% endif %}
  388.               {% if CatSystemId not in [82] %}{# 分岐管2はシングル以外、型番が入ります。 #}
  389.                   {% if Product.set_pipe2 is not null %}
  390.                       {% if CatMaker != 'ダイキン' and CatMaker != 'パナソニック' %}
  391.                       {% set set_pipe2_price = Product.set_pipe2_price * 1.1 %}
  392.                       分岐管2: {{ Product.set_pipe2 }} {#  // [{{ set_pipe2_price|number_format }}円] #}<br>
  393.                       {% endif %}
  394.                   {% endif %}
  395.               {% endif %}
  396.               {% if Product.set_controller is not null %}
  397.                   リモコン: {{ Product.set_controller }}
  398.                   {% if Product.hasTag(5) %}(ワイヤード){% endif %}
  399.                   {% if Product.hasTag(6) %}(ワイヤレス){% endif %}
  400.                   {% if CatShapeId == 60 %}(内蔵){% endif %}
  401.                   {% set set_controller_price = Product.set_controller_price * 1.1 %}
  402.                    {#  // [{{ set_controller_price|number_format }}円] #}<br>
  403.               {% endif %}
  404.                 {# 非表示項目 #}
  405.                 <input type="hidden" name="set_indoor_size" value="{{ Product.set_indoor_size }}" >
  406.                 <input type="hidden" name="set_indoor_weight" value="{{ Product.set_indoor_weight }}" >
  407.                 <input type="hidden" name="set_indoor_price" value="{{ Product.set_indoor_price }}" >
  408.                 <input type="hidden" name="set_outdoor_size" value="{{ Product.set_outdoor_size }}" >
  409.                 <input type="hidden" name="set_outdoor_weight" value="{{ Product.set_outdoor_weight }}" >
  410.                 <input type="hidden" name="set_outdoor_price" value="{{ Product.set_outdoor_price }}" >
  411.                 <input type="hidden" name="set_panel_size" value="{{ Product.set_panel_size }}" >
  412.                 <input type="hidden" name="set_panel_weight" value="{{ Product.set_panel_weight }}" >
  413.                 <input type="hidden" name="set_panel_price" value="{{ Product.set_panel_price }}" >
  414.                 <input type="hidden" name="set_pipe_price" value="{{ Product.set_pipe_price }}" >
  415.                 <input type="hidden" name="set_pipe2_price" value="{{ Product.set_pipe2_price }}" >
  416.                 <input type="hidden" name="set_controller_size" value="{{ Product.set_controller_size }}" >
  417.                 <input type="hidden" name="set_controller_weight" value="{{ Product.set_controller_weight }}" >
  418.                 <input type="hidden" name="set_controller_price" value="{{ Product.set_controller_price }}" >
  419.                 <input type="hidden" name="set_apf" value="{{ Product.set_apf }}" >
  420.               </td>
  421.           </tr>
  422.         </table>
  423.       </div>
  424.       <div class="s-content-right">
  425.         <table class="c-table-04">
  426.           <tr>
  427.             <th>メーカー</th>
  428.             <td>{{ CatMaker }}</td>
  429.           </tr>
  430.           <tr>
  431.             <th>シリーズ</th>
  432.             <td>{{ CatSeries }}</td>
  433.           </tr>
  434.           <tr>
  435.             <th>形状</th>
  436.             <td>{{ CatShape }}</td>
  437.           </tr>
  438.           <tr>
  439.             <th>馬力</th>
  440.             <td>{{ CatPower }}</td>
  441.           </tr>
  442.           <tr>
  443.             <th>システム</th>
  444.             <td>{{ CatSystem }}</td>
  445.           </tr>
  446.           <tr>
  447.             <th>その他</th>
  448.             <td>
  449.             {% if Product.ProductCategories is not empty %}
  450.               {% for ProductCategory in Product.ProductCategories %}
  451.                 {% if ProductCategory.Category.getParent is not empty %}
  452.                   {% if ProductCategory.Category.getParent.id == 131 %}
  453.                     {{ ProductCategory.Category.name }}
  454.                   {% endif %}
  455.                 {% endif %}
  456.               {% endfor %}
  457.             {% endif %}
  458.             </td>
  459.           </tr>
  460.           <tr>
  461.             <th>電源</th>
  462.             <td>{{ TagPower1 }}{{ TagPower2 }}</td>
  463.           </tr>
  464.           <tr>
  465.             <th>型番</th>
  466.             <td>{{ ProductCode }}</td>
  467.           </tr>
  468.           <tr>
  469.             <th>運転方式</th>
  470.             <td>
  471.             {% if Product.hasTag(3) %}
  472.               {% set PageTag = repository('Eccube\\Entity\\Tag').find('3') %}
  473.               {% if PageTag %}{{ PageTag.name }}{% endif %}
  474.             {% endif %}
  475.             {% if Product.hasTag(4) %}
  476.               {% set PageTag = repository('Eccube\\Entity\\Tag').find('4') %}
  477.               {% if PageTag %}{{ PageTag.name }}{% endif %}
  478.             {% endif %}
  479.             </td>
  480.           </tr>
  481.           <tr>
  482.             <th>省エネ性</th>
  483.             <td>
  484.             {% if Product.ProductCategories is not empty %}
  485.               {% for ProductCategory in Product.ProductCategories %}
  486.                 {% if ProductCategory.Category.getParent is not empty %}
  487.                   {% if ProductCategory.Category.getParent.id == 91 %}
  488.                     {{ ProductCategory.Category.name }}
  489.                   {% endif %}
  490.                 {% endif %}
  491.               {% endfor %}
  492.             {% endif %}
  493.             </td>
  494.           </tr>
  495.           <tr>
  496.             <th>広さ</th>
  497.             <td>{{ CatExtent }}</td>
  498.           </tr>
  499.           <tr>
  500.             <th>リモコン</th>
  501.             <td>{{ TagRC1 }}{{ TagRC2 }}</td>
  502.           </tr>
  503.         </table>
  504.         <div class="p-products-dtl-price">
  505.           <p class="p-products-dtl-price__maker">
  506.           メーカー価格:<br>
  507.           <span class="s-price"><span class="s-num font-en">
  508.           {# 通常価格 #}
  509.           {{ Product.getPrice01IncTaxMin|number_format }}
  510.           </span>円</span>(税込)
  511.           </p>
  512.           <div class="p-products-dtl-price__off">
  513.             {% set price01 = Product.getPrice01IncTaxMin %}
  514.             {% set price02 = Product.getPrice02IncTaxMin %}
  515.             {% if price01 != '' %}
  516.             <div class="p-products-batch">
  517.               <p class="s-text"><span class="font-en">
  518.               <span class="s-main">
  519.               {% set price03 = (1-(price02 / price01))*100|round(1, 'ceil') %}
  520.               {{ price03|number_format(1, '.', ',') }}
  521.               </span>%</span><br>割引</p>
  522.             </div>
  523.             {% endif %}
  524.             <div class="p-products-special-price">
  525.               <p class="s-text-01">特別販売価格</p>
  526.               <p class="s-text-02"><span class="s-main font-en">
  527.               {# 販売価格 #}
  528.               {{ Product.getPrice02IncTaxMin|number_format }}
  529.               </span>円(税込)
  530.               </p>
  531.             </div>
  532.           </div>
  533.         </div>
  534.         <div class="c-cv-group s-estimate-01">
  535.           <p class="s-title">お見積りはこちらから</p>
  536.           <ul class="s-list">
  537.             <li><a href="tel:0120-173-119" class="c-cv-tel">
  538.                 <p class="s-tel-title">お電話からお見積り</p>
  539.                 <p class="s-text-01">
  540.                   <i class="s-icon">
  541.                     <svg>
  542.                       <use xlink:href="{{ asset('assets/img/ico/ico_tel.svg#obj') }}"></use>
  543.                     </svg>
  544.                   </i>
  545.                   <span class="s-tel">0120-173-119</span>
  546.                 </p>
  547.                 <p class="s-text-02 font-en">受付:9:00~19:00(土日祝除く)
  548.                 </p>
  549.               </a></li>
  550.             <li>
  551.             <div class="c-cv-link-block">
  552.               <form method="get" action="https://www.airconwork.co.jp/rp/contact.php">
  553.                 <input type="hidden" name="products_id" value="{{ Product.id }}" >
  554.                 <input type="hidden" name="products_make" value="{{ CatMaker }}" />
  555.                 <input type="hidden" name="products_name" value="{{ Product.name }}" />
  556.                 <input type="hidden" name="product_code" value="{{ ProductCode }}" />
  557.                 <input type="hidden" name="products_price1" value="{{Product.getPrice01IncTaxMin}}" />
  558.                 <input type="hidden" name="products_price2" value="{{Product.getPrice02IncTaxMin}}" />
  559.                 <input type="hidden" name="page" value="main" />
  560.                 <input type="hidden" name="carrier" value="products/detail/{{ Product.id }}" />
  561.                 <button id="btn-cv" class="c-cv-link">
  562.                   <i class="s-icon">
  563.                     <img src="{{ asset('assets/img/ico/ico_web.png') }}" alt="">
  564.                   </i>
  565.                   <p class="s-text">WEB<span class="no-sp">からお</span>見積り</p>
  566.                   <i class="s-arrow">
  567.                     <svg>
  568.                       <use xlink:href="{{ asset('assets/img/ico/ico_arrow_forward.svg#obj') }}"></use>
  569.                     </svg>
  570.                   </i>
  571.                 </button>
  572.               </form>
  573.               </div>
  574.               <a href="https://lin.ee/VlB4HoK" target="_blank" class="c-cv-link">
  575.                 <i class="s-icon">
  576.                   <img src="{{ asset('assets/img/ico/ico_line.png') }}" alt="">
  577.                 </i>
  578.                 <p class="s-text">LINE<span class="no-sp">からお</span>見積り</p>
  579.                 <i class="s-arrow">
  580.                   <svg>
  581.                     <use xlink:href="{{ asset('assets/img/ico/ico_arrow_forward.svg#obj') }}"></use>
  582.                   </svg>
  583.                 </i>
  584.               </a>
  585.             </li>
  586.           </ul>
  587.         </div>
  588.       </div>
  589.     </div>
  590.   </div>
  591.   <div class="c-section">
  592.     <h2 class="c-title-07"><span class="s-text">{{ title }} について</span></h2>
  593.     {{ include('Module/category_description.twig', {cid: CatId}) }}
  594.     {{ include('Module/category_description.twig', {cid: CatSeriesId}) }}
  595.     {{ include('Module/category_description.twig', {cid: CatShapeId}) }}
  596.     {{ include('Module/category_description.twig', {cid: CatPowerId}) }}
  597.     {{ include('Module/category_description.twig', {cid: CatExtentId}) }}
  598.     {{ include('Module/category_description.twig', {cid: CatSystemId}) }}
  599.   </div>
  600.   {% if Product.description_detail is not null %}
  601.   <div class="c-section">
  602.   {% if Product.description_title is not null %}
  603.     <h2 class="c-title-07"><span class="s-text">{{ Product.description_title }}</span></h2>
  604.   {% endif %}
  605.     <div class="c-text">
  606.       <div class="s-content">
  607.       {{ Product.description_detail }}
  608.       </div>
  609.     </div>
  610.   </div>
  611.   {% endif %}
  612.   <div class="c-section">
  613.     <h2 class="c-title-07"><span class="s-text">{{ title }} と比較される商品</span></h2>
  614.     <div class="p-products-dtl-comparison">
  615.       <table class="c-table-04">
  616.         <tbody>
  617.           <tr>
  618.             <th class="s-col1">メーカー</th>
  619.             <th class="s-col2">エアコン商品型番</th>
  620.           </tr>
  621.           <tr>
  622.             <td><b>ダイキン</b></td>
  623.             <td class="align-left">
  624.               {{ include('Module/comparison.twig', {cid: '2'}) }}
  625.             </td>
  626.           </tr>
  627.           <tr>
  628.             <td><b>三菱電機</b></td>
  629.             <td class="align-left">
  630.             {{ include('Module/comparison.twig', {cid: '31'}) }}
  631.             </td>
  632.           </tr>
  633.           <tr>
  634.             <td><b>日立</b></td>
  635.             <td class="align-left">
  636.               {{ include('Module/comparison.twig', {cid: '21'}) }}
  637.             </td>
  638.           </tr>
  639.           <tr>
  640.             <td><b>東芝</b></td>
  641.             <td class="align-left">
  642.               {{ include('Module/comparison.twig', {cid: '11'}) }}
  643.             </td>
  644.           </tr>
  645.           <tr>
  646.             <td><b>パナソニック</b></td>
  647.             <td class="align-left">
  648.               {{ include('Module/comparison.twig', {cid: '41'}) }}
  649.             </td>
  650.           </tr>
  651.         </tbody>
  652.       </table>
  653.     </div>
  654.   </div>
  655.   <div class="c-section">
  656.     <h2 class="c-title-07"><span class="s-text">入れ替え工事には「フロン処理」も「機器廃棄」も含んだ下記項目が含まれています</span></h2>
  657.     <div class="p-products-dtl-point">
  658.       <ul class="c-grid col6">
  659.         <li>
  660.           <div class="c-card-06">
  661.             <h3 class="c-card-06__title">取付機器本体価格</h3>
  662.             <div class="c-card-06__thum"><img src="{{ asset('assets/img/products-dtl/img_01.jpg') }}" alt=""></div>
  663.           </div>
  664.         </li>
  665.         <li>
  666.           <div class="c-card-06">
  667.             <h3 class="c-card-06__title">機器撤去・取付費</h3>
  668.             <div class="c-card-06__thum"><img src="{{ asset('assets/img/products-dtl/img_02.jpg') }}" alt=""></div>
  669.           </div>
  670.         </li>
  671.         <li>
  672.           <div class="c-card-06">
  673.             <h3 class="c-card-06__title">本体処分・諸経費</h3>
  674.             <div class="c-card-06__thum"><img src="{{ asset('assets/img/products-dtl/img_03.jpg') }}" alt=""></div>
  675.           </div>
  676.         </li>
  677.         <li>
  678.           <div class="c-card-06">
  679.             <h3 class="c-card-06__title">フロン回収処分費</h3>
  680.             <div class="c-card-06__thum"><img src="{{ asset('assets/img/products-dtl/img_04.jpg') }}" alt=""></div>
  681.           </div>
  682.         </li>
  683.         <li>
  684.           <div class="c-card-06">
  685.             <h3 class="c-card-06__title">フロン書類発行費</h3>
  686.             <div class="c-card-06__thum"><img src="{{ asset('assets/img/products-dtl/img_05.jpg') }}" alt=""></div>
  687.           </div>
  688.         </li>
  689.         <li>
  690.           <div class="c-card-06">
  691.             <h3 class="c-card-06__title">当社工事保証1年</h3>
  692.             <div class="c-card-06__thum"><img src="{{ asset('assets/img/products-dtl/img_06.jpg') }}" alt=""></div>
  693.           </div>
  694.         </li>
  695.       </ul>
  696.     </div>
  697.   </div>
  698.   <div class="c-section">
  699.     <h2 class="c-title-07"><span class="s-text">エアコンワークが選ばれる理由</span></h2>
  700.     <div class="p-products-dtl-reason">
  701.       <ul class="c-grid col5 p-top-point__list">
  702.         <li>
  703.           <div class="c-card-01">
  704.             <i class="c-card-01__icon"><svg class="s-01">
  705.                 <use xlink:href="{{ asset('assets/img/ico/ico_free.svg#obj') }}"></use>
  706.               </svg></i>
  707.             <h3 class="c-card-01__title">無料0円</h3>
  708.             <p class="c-card-01__text">現場調査</p>
  709.           </div>
  710.         </li>
  711.         <li>
  712.           <div class="c-card-01">
  713.             <i class="c-card-01__icon"><svg class="s-02">
  714.                 <use xlink:href="{{ asset('assets/img/ico/ico_hosyou.svg#obj') }}"></use>
  715.               </svg></i>
  716.             <h3 class="c-card-01__title">10年</h3>
  717.             <p class="c-card-01__text">ツイン保証</p>
  718.           </div>
  719.         </li>
  720.         <li>
  721.           <div class="c-card-01">
  722.             <i class="c-card-01__icon"><svg class="s-03">
  723.                 <use xlink:href="{{ asset('assets/img/ico/ico_mitsumori.svg#obj') }}"></use>
  724.               </svg></i>
  725.             <h3 class="c-card-01__title">追加請求<br class="no-pc">なし</h3>
  726.             <p class="c-card-01__text">安心価格</p>
  727.           </div>
  728.         </li>
  729.         <li>
  730.           <div class="c-card-01">
  731.             <i class="c-card-01__icon"><svg class="s-04">
  732.                 <use xlink:href="{{ asset('assets/img/ico/ico_hand.svg#obj') }}"></use>
  733.               </svg></i>
  734.             <h3 class="c-card-01__title">空調の<br class="no-pc">スペシャリスト</h3>
  735.             <p class="c-card-01__text">専任担当が<br class="only-sp">すべて対応</p>
  736.           </div>
  737.         </li>
  738.         <li>
  739.           <div class="c-card-01">
  740.             <i class="c-card-01__icon"><svg class="s-05">
  741.                 <use xlink:href="{{ asset('assets/img/ico/ico_card.svg#obj') }}"></use>
  742.               </svg></i>
  743.             <h3 class="c-card-01__title">リース・<br class="no-pc">ローンOK</h3>
  744.             <p class="c-card-01__text">選べるお支払方法</p>
  745.           </div>
  746.         </li>
  747.       </ul>
  748.     </div>
  749.   </div>
  750.   <div class="c-section">
  751.     <h2 class="c-title-07"><span class="s-text">お見積り依頼から工事完了までのフロー</span></h2>
  752.     <div class="p-products-dtl-flow">
  753.       <ol class="c-grid col6 c-list-num">
  754.         <li>
  755.           <div class="c-card-07">
  756.             <h3 class="c-card-07__title">お問い合わせ</h3>
  757.             <div class="c-card-07__thum"><img src="{{ asset('assets/img/products-dtl/img_07.jpg') }}" alt=""></div>
  758.           </div>
  759.         </li>
  760.         <li>
  761.           <div class="c-card-07">
  762.             <h3 class="c-card-07__title">無料現場調査</h3>
  763.             <div class="c-card-07__thum"><img src="{{ asset('assets/img/products-dtl/img_08.jpg') }}" alt=""></div>
  764.           </div>
  765.         </li>
  766.         <li>
  767.           <div class="c-card-07">
  768.             <h3 class="c-card-07__title">正式見積もりの提出</h3>
  769.             <div class="c-card-07__thum"><img src="{{ asset('assets/img/products-dtl/img_09.jpg') }}" alt=""></div>
  770.           </div>
  771.         </li>
  772.         <li>
  773.           <div class="c-card-07">
  774.             <h3 class="c-card-07__title">ご契約</h3>
  775.             <div class="c-card-07__thum"><img src="{{ asset('assets/img/products-dtl/img_10.jpg') }}" alt=""></div>
  776.           </div>
  777.         </li>
  778.         <li>
  779.           <div class="c-card-07">
  780.             <h3 class="c-card-07__title">設置工事</h3>
  781.             <div class="c-card-07__thum"><img src="{{ asset('assets/img/products-dtl/img_11.jpg') }}" alt=""></div>
  782.           </div>
  783.         </li>
  784.         <li>
  785.           <div class="c-card-07">
  786.             <h3 class="c-card-07__title">アフターフォロー</h3>
  787.             <div class="c-card-07__thum"><img src="{{ asset('assets/img/products-dtl/img_12.jpg') }}" alt=""></div>
  788.           </div>
  789.         </li>
  790.       </ol>
  791.     </div>
  792.   </div>
  793. {% else %}
  794.   <div class="c-section">
  795.     旧型番商品につき販売は終了しております。最新機器はお問合せください
  796.   </div>
  797. {% endif %}
  798. {% endblock %}