app/template/aneros2023/Category/sessions.twig line 601

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 javascript %}
  11.     <script>
  12.     </script>
  13. {% endblock %}
  14. {% block main %}
  15. {% include('@CustomerReview42/Block/customer_review4_recommend_css.twig') %}
  16. <link rel="stylesheet" href="{{ asset('aneros/css/products.css?v=20221018') }}">
  17. <!-- ページ固有のスタイル -->
  18. <style>
  19.     .product-main-image {
  20.         margin: 0 auto;
  21.     }
  22.     .product-main-image img {
  23.         width:138px;
  24.         max-width:100%;
  25.     }
  26.     .product-info {
  27.         margin: 0 auto 0 0;
  28.     }
  29.     h1 {
  30.         font-weight: 400;
  31.     font-size: 50px;
  32.         color: #e00000;
  33.         line-height: 68px;
  34.     margin: 0;
  35.     text-transform: none;
  36.     }
  37.     h1 sup {
  38.     font-size: 27%;
  39.     vertical-align: top;
  40.     display: inline-block;
  41.     margin-top: 19px;
  42.         line-height: 0;
  43.     }
  44.     .product-main-section .product-main-image {
  45.         z-index: 1;
  46.     }
  47.     .product-info .product-subtitle {
  48.     font-weight: 400;
  49.     font-size: 24px;
  50.         color: #212121;
  51.     }
  52.     .product-info .product-description {
  53.     color: #767676;
  54.     padding: 20px 0;
  55.         font-size: 16px;
  56.         line-height: 1.5;
  57.     }
  58.     .std ul {
  59.     list-style: disc outside;
  60.     margin-bottom: 1.5em;
  61.     }
  62.     .product-info .product-description ul li {
  63.     margin-left: 20px;
  64.     }
  65.     .products-grid {
  66.         -webkit-justify-content: center;
  67.     justify-content: center;
  68.     }
  69.     .products-grid .item {
  70.     width: 230px;
  71.         margin: 0 20px;
  72.     }
  73.     .products-grid img{
  74.         width: 100%;
  75.         height: auto;
  76.     }
  77.     .products-grid .product-name a {
  78.     font-size: 15px;
  79.     color: #000;
  80.     text-transform: none;
  81.         font-weight: 500;
  82.     }
  83.     .products-grid .sale_price {
  84.         padding-top: 5px;
  85.     display: block;
  86.     color: red;
  87.     font-size: 16px;
  88.     }
  89.     
  90.     .products-grid .normal_price {
  91.         text-decoration: line-through;
  92.         color: #000;
  93.     }
  94.     .products-grid .actions {
  95.     position: relative;
  96.     float: right;
  97.     width: 100%;
  98.     min-height: 30px;
  99.     padding: 5px 0 0;
  100.     }
  101.     .products-grid .actions .btn-cart {
  102.     height: 33px;
  103.     line-height: 33px;
  104.     font-size: 10px;
  105.     width:75%;
  106.     }
  107.     .product-pleasure {
  108.         padding-top: 30px;
  109.         margin-top: 20px;
  110.     }
  111.     .product-pleasure .flexbox {
  112.         flex-direction: row-reverse;
  113.     }
  114.     .product-pleasure.grey-gradient-background {
  115.     background: #ebebeb;
  116.     position: relative;
  117.     }
  118.     .product-pleasure .desc-contr {
  119.         width: 490px;
  120.         padding: 120px 0 0 0;
  121.     }
  122.     .product-pleasure img {
  123.         margin: 0 auto;        
  124.         width:324px;
  125.         max-width:100%
  126.     }
  127.     .product-pleasure .desc-contr h3 {
  128.     font-size: 28px;
  129.         line-height: 1.4;
  130.     }
  131.     .product-pleasure p {
  132.         color: #919191;
  133.         font-size: 16px;
  134.         line-height: 1.2em;
  135.     }
  136.     .product-rewards-experience {
  137.     background: #fff url(./html/template/aneros2023/aneros/img/category/sessions/sessions-rewards-bg.jpg) no-repeat center top;
  138.     background-size:cover;
  139.     }
  140.     .product-rewards-experience .container {
  141.     position: relative;
  142.     height: 475px;
  143.     }
  144.     .product-rewards-experience .desc-contr {
  145.         padding-top: 90px;
  146.     width: 495px;
  147.     }
  148.     .product-rewards-experience .desc-contr h3 {
  149.         font-size: 28px;
  150.         color: #e00000;
  151.         margin-bottom: 10px;
  152.         margin-left: 0;
  153.     }
  154.     .product-rewards-experience p {
  155.     color: #ccc;
  156.     font-size: 16px;
  157.     line-height: 1.2em;
  158.     width:80%;
  159.     }
  160.     .product-rewards-experience img {
  161.     position: absolute;
  162.     left: auto;
  163.     right: 0;
  164.     top: 0;
  165.         height: 100%;
  166.     }
  167.     @media only screen and (max-width: 999px) {
  168.         h1 {
  169.             font-weight: 400;
  170.             font-size: 42px;
  171.         }
  172.         .product-main-section .product-info {
  173.             margin: 0 auto 0 0 ;
  174.         }
  175.         .products-grid {
  176.             flex-direction: row;
  177.         }
  178.         
  179.         .products-grid .actions {
  180.             float: none;
  181.             width: 90%;
  182.         }
  183.         .products-grid .actions .btn-cart {
  184.             width:100%;
  185.         }
  186.         .product-pleasure .flexbox,
  187.         .product-rewards-experience .flexbox {
  188.             flex-direction: column;
  189.         }
  190.         .product-pleasure .desc-contr {
  191.             width: 100%;
  192.             padding:0px;
  193.         }
  194.         .product-rewards-experience {
  195.             background-color: #333;
  196.         }
  197.         
  198.         .product-rewards-experience .container {
  199.             height: auto;
  200.         }
  201.         
  202.         .product-rewards-experience .desc-contr{
  203.             width: 100%;
  204.         }
  205.         
  206.         .product-rewards-experience img {
  207.             position: relative;
  208.             height:inherit;
  209.         }
  210.         .product-rewards-experience p {
  211.             width:100%;
  212.         }
  213.     }
  214.     @media only screen and (max-width: 767px) {
  215.         .products-grid {
  216.             flex-direction: column;
  217.         }
  218.         .products-grid .item {
  219.             width: 100%;
  220.         }
  221.         .products-grid .item {
  222.             margin: 0;
  223.         }
  224.     }
  225. .pictogram-area {padding:10px 0; margin:auto; text-align:center;}
  226. .pictogram {
  227.   position: relative;
  228.   display: inline-block;
  229. }
  230. .pictogram img {
  231.   width:40px;
  232.   max-width:100%;
  233.   margin:15px 10px;
  234. }
  235. .pictogram .pictogramtext {
  236.   visibility: hidden;
  237.   width: 90px;
  238.   background-color: black;
  239.   color: #fff;
  240.   text-align: center;
  241.   border-radius: 6px;
  242.   border: 1px solid #000;
  243.   padding: 5px 0;
  244.   position: absolute;
  245.   z-index: 1;
  246.   top: 85%;
  247.   left: 50%;
  248.   margin-left: -45px;
  249.   font-size: 10px;
  250. }
  251. .pictogram .pictogramtext::after {
  252.   content: "";
  253.   position: absolute;
  254.   bottom: 100%;
  255.   left: 50%;
  256.   margin-left: -5px;
  257.   border-width: 5px;
  258.   border-style: solid;
  259.   border-color: transparent transparent black transparent;
  260. }
  261. .pictogram:hover .pictogramtext {
  262.   visibility: visible;
  263. }
  264. .pictogram .pictogramtext {
  265.   opacity: 0;
  266.   transition: opacity 1s;
  267. }
  268. .pictogram:hover .pictogramtext {
  269.   opacity: 1;
  270. }
  271. #sessions-detail-page .favorite-button {
  272.     text-align:right;
  273.     margin-top:10px;
  274. }
  275. #sessions-detail-page .unfavorite-heart .fa-heart {
  276.     right:33px;
  277. }
  278. /*#sessions-detail-page .favorite-button .button {
  279.     background: #ababab;
  280.     font-size: 12px;
  281.     color: #ffffff;
  282.     text-align: center;
  283.     font-weight: normal;
  284.     padding: 0 10px;
  285.     line-height: 32px;
  286.     min-width: 0;
  287.     width: auto;
  288.     margin: 3px 0 0 0;
  289.     height: 32px;
  290.     transition: all 0.2s linear;
  291.     -moz-transition: all 0.2s linear;
  292.     -webkit-transition: all 0.2s linear;
  293.     box-sizing: content-box !important;
  294.     width: 75%;
  295. }
  296. #sessions-detail-page .favorite-button .button:hover {
  297.     background: #989898;
  298. }
  299. #sessions-detail-page .favorite-button .button-favorited {
  300.     background: #989898;
  301.     font-size: 12px;
  302.     color: #ffffff;
  303.     text-align: center;
  304.     font-weight: normal;
  305.     padding: 0 10px;
  306.     line-height: 32px;
  307.     min-width: 0;
  308.     width: auto;
  309.     margin: 3px 0 0 0;
  310.     height: 32px;
  311.     transition: all 0.2s linear;
  312.     -moz-transition: all 0.2s linear;
  313.     -webkit-transition: all 0.2s linear;
  314.     box-sizing: content-box !important;
  315.     border: 0;
  316.     width: 75%;
  317. }
  318. #sessions-detail-page .favorite-button .button-favorited:hover {
  319.     background: #878787;
  320. }
  321. */
  322. @media only screen and (max-width: 999px) {
  323. #sessions-detail-page .unfavorite-heart .fa-heart {
  324.     right:inherit;
  325. }
  326. }
  327. /* REVIEW AREA */
  328. .review_all_score_image {
  329.     letter-spacing: -1em;/* inline-block間の隙間をなくす */
  330.     display: inline-block;
  331.     position: relative;
  332.     top: 5px;
  333. }
  334. .review_score div.review_star {
  335.     display: inline-block;
  336.     margin-right: 1px;
  337. }
  338. .review_score div {
  339.     height: 22px;
  340. }
  341. div[id^="plg_customer_review_special"] .review_score div,
  342. div[id*="plg_customer_review_special"] .review_score div {
  343.   height: 30px;
  344. }
  345. #category-featured-products div[id^="plg_customer_review_special"] h3,
  346. #category-featured-products div[id*="plg_customer_review_special"] h3 {
  347.   margin:0;
  348.   color: #636363;
  349. }
  350. .review_score .trim {
  351.     overflow: hidden;
  352.     position: relative;
  353. }
  354. .products-grid .review_score img{
  355.     display: inline-block;
  356.     vertical-align: unset;
  357.     max-width:inherit;
  358.     width:22px;
  359. }
  360. #review_area h2 {
  361.     text-align: center;
  362.     font-size: 40px;
  363.     font-weight: 400;
  364.     margin: 30px 0;
  365.     color: #000000;
  366. }
  367. #review_area h3 {
  368.     font-size: 18px;
  369.     border-bottom: none;
  370.     text-align: left;
  371. }
  372. #review_area h3.review-title {
  373.     font-weight:bold;
  374.     text-align:left;
  375.     margin-bottom:0;
  376.     font-size:16px;
  377. }
  378. #review_area .review_list, #review_area .row {
  379.     max-width: 1280px;
  380.     padding: 0 140px;
  381.     margin: 0 auto;
  382. }
  383. #review_area .review_list li {
  384.     padding: 10px 0;
  385.     position: relative;
  386.     border-bottom: 1px dotted #cccccc;
  387. }
  388. #review_area .review_list li:last-child {
  389.     border-bottom: none;
  390. }
  391. #review_area .review_list .review-hed{
  392.     margin-bottom: 0;
  393.     margin-top: 0;
  394. }
  395. #review_area .review_list .review-body{
  396.     margin-top: 5px;
  397.     margin-bottom: 0;
  398. }
  399. #review_area .review_list .recommend_level{
  400.     display: block;
  401. }
  402. #review_area .review_list .recommend_level span{
  403.     display: flex;
  404. }
  405. .products-grid #review_area .review_list .recommend_level img {
  406.     display: block;
  407.     float: left;
  408.     margin-right: 1px;
  409.     max-width:25px;
  410.     max-height:25px;     
  411. }
  412. .review-layoutRole h3.review_score {margin-bottom:0; text-align:left;}
  413. #review_area .review_list .left {
  414.     margin-top: 5px;
  415. }
  416. #review_area .review_list .fade{
  417.     height: 16px;
  418.     width: 100%;
  419.     position: absolute;
  420.     bottom: 25px;
  421.     left: 0;
  422.     background: -webkit-linear-gradient(top,rgba(255,255,255,0),#fff);
  423.     background: linear-gradient(to bottom,rgba(255,255,255,0),#fff);
  424. }
  425. #review_area div.btn_area li {
  426.     text-align: right;
  427.     list-style-type: none;
  428. }
  429. #review_area div.btn_area{
  430.     max-width: 1280px;
  431.   padding: 0 140px;
  432.   margin: 0 auto;
  433.     text-align: right;
  434. }
  435. #review_area div.btn_area .button {
  436.     list-style-type: none;
  437.     width: auto;
  438.     min-width: 140px;
  439.     background-color: #ff0000;
  440. }
  441. #review_area div.btn_area .button:hover{
  442.     background: #cc0000;
  443.     color: #fff;
  444. }
  445. .ec-favoriteRole h3.review_score {margin-bottom:30px;}
  446. @media only screen and (max-width: 767px){
  447.     .review_score span.review_all_score {font-size:14px;}
  448.     h3.review_score  {line-height:1;margin-bottom:5px;}
  449.     .review_all_score_image {top:10px;}
  450.     .products-grid .review_score img {width:14px;}
  451. }
  452. </style>
  453. <div class="main-container" id="sessions-page">
  454.         <div class="breadcrumbs">
  455.             <div class="container">
  456.                 <ul itemscope itemtype="http://schema.org/BreadcrumbList">
  457.                     <li class="0" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
  458.                         <a itemprop="item" href="{{ url('homepage') }}" title="トップページ"><span itemprop="name" style="padding:0">トップページ</span></a>
  459.                         <meta itemprop="position" content="1">
  460.                         <span>&gt;</span>
  461.                     </li>
  462.                     <li class="category" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
  463.                         <a itemprop="item" href="{{ url('homepage') }}lubricants" title="ローション"><span itemprop="name"
  464.                                 style="padding:0">ローション</span></a>
  465.                         <meta itemprop="position" content="2">
  466.                         <span>&gt;</span>
  467.                     </li>
  468.                     <li>
  469.                         <strong>セッションズ</strong>
  470.                     </li>
  471.                 </ul>
  472.             </div>
  473.         </div>
  474.         <div class="col-main">
  475.             <div class="aneros-product-page" id="sessions-detail-page">
  476.                 <div class="common-style">
  477.                     <div class="product-main-section container flexbox">
  478.                         <div class="product-main-image">
  479.                             <img src="{{ asset('aneros/img/category/sessions/sessions-detail-main-image.jpg') }}" class="animate" 
  480.                                 data-animate="fadeInUp" data-duration="1.0s" data-delay="0.4s" alt="アネロスセッションズ">
  481.                             <div class="pictogram-area">    
  482.                                 <div class="pictogram">
  483.                                     <img src="{{ asset('aneros/img/products/Pictogram/all-users.jpg') }}" alt="全レベル可" />
  484.                                     <span class="pictogramtext">全レベル可</span>
  485.                                 </div>
  486.                                 <div class="pictogram">
  487.                                     <img src="{{ asset('aneros/img/products/Pictogram/beginner-user.jpg') }}" alt="初心者にオススメ" />
  488.                                     <span class="pictogramtext">初心者に<br>オススメ</span>
  489.                                 </div>
  490.                             </div>    
  491.                         </div>
  492.                         <div class="product-info">
  493.                             <h1>セッションズ<sup>™</sup></h1>
  494.                             <div class="product-subtitle">
  495.                                 <div class="std">ナチュラルローション</div>
  496.                             </div>
  497.                             <div class="product-description">
  498.                                 <div class="std">
  499.                                     <ul>
  500.                                         <li>純天然素材を使用した安全な潤滑剤</li>
  501.                                         <li>滑らかさが長時間持続</li>
  502.                                         <li>後処理が簡単な水溶性</li>
  503.                                         <li>グリセリン未使用</li>
  504.                                         <li>無色透明で無味無臭</li>
  505.                                         <li>シリコン製品を傷めない</li>
  506.                                         <li>アネロスの効果を最大限に引き出す</li>
  507.                                     </ul>
  508.                                 </div>
  509.                             </div>
  510.                         </div>
  511.                     </div>
  512.                     <div class="child-products-contr container">
  513.                         <ul class="products-grid flexbox">
  514.                             <li class="item">
  515.                                 {% set Product = repository('Eccube\\Entity\\Product').find(77) %}
  516.                                 
  517.                                 {# お気に入り登録済みを取得 #}
  518.                                 {% if is_granted('ROLE_USER') %}
  519.                                 {% set FavoriteProduct = false %}
  520.                                 {% for cfp in app.user.CustomerFavoriteProducts %}
  521.                                     {% if cfp.Product.id == Product.id %}
  522.                                         {% set FavoriteProduct = true %}
  523.                                     {% endif %}
  524.                                 {% endfor %}
  525.                                 {% endif %}
  526.                                 {% set campaignProduct = false %}
  527.                                 {% for ProductTag in Product.ProductTag %}
  528.                                     {% if ProductTag.Tag.id == 100 %}
  529.                                         {% set campaignProduct = true %}
  530.                                     {% endif %}
  531.                                 {% endfor %}
  532.                                 
  533.                                 <a href="{{ url('product_detail', {'id': Product.id}) }}" title="" class="product-image">
  534.                                 {% if campaignProduct == true %}
  535.                                     <p class="ec-shelfGrid__item-image campaignProduct">
  536.                                 {% else %}
  537.                                     <p class="ec-shelfGrid__item-image">
  538.                                 {% endif %}
  539.                                         <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" alt="{{ Product.name }}">
  540.                                     </p>
  541.                                 </a>
  542.                                 
  543.                                 <div class="product-ratings">
  544.                                 </div>
  545.                                 <div class="product-info">
  546.                                     <h2 class="product-name">
  547.                                         <a href="{{ url('product_detail', {'id': Product.id}) }}" title="{{ Product.name }}">{{ Product.name }}</a>
  548.                                     </h2>
  549.                                                                 
  550.                                     <div class="price-box">
  551.                                         <span class="price">
  552.                                             <div class="normal_price" id="product-normal-price-{{ Product.id }}">
  553.                                                 {% if  Product.getPrice01Min is not null and Product.getPrice01IncTaxMin != 0 %}
  554.                                                         {% if Product.hasProductClass %}
  555.                                                                 {% if Product.getPrice01Min == Product.getPrice01Max %}
  556.                                                                         <span class="price">{{ Product.getPrice01IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  557.                                                                 {% else %}
  558.                                                                         <span class="price">{{ Product.getPrice01IncTaxMin|price }}<!-- ~ {{ Product.getPrice01IncTaxMax|price }}--><span class="inctax"> (税込)</span></span>
  559.                                                                 {% endif %}
  560.                                                         {% else %}
  561.                                                                         <span class="price">{{ Product.getPrice01IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  562.                                                         {% endif %}
  563.                                                 {% endif %}
  564.                                             </div>
  565.                                             <div class="sale_price" id="product-price-{{ Product.id }}">
  566.                                                 {% if Product.hasProductClass %}
  567.                                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  568.                                                                 <span class="price">{{ Product.getPrice02IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  569.                                                         {% else %}
  570.                                                                 <span class="price">{{ Product.getPrice02IncTaxMin|price }}<!-- ~ {{ Product.getPrice02IncTaxMax|price }}--><span class="inctax"> (税込)</span></span>
  571.                                                         {% endif %}
  572.                                                 {% else %}
  573.                                                                 <span class="price">{{ Product.getPrice02IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  574.                                                 {% endif %}
  575.                                             </div>
  576.                                         </span>
  577.                                     </div>
  578.                                     
  579.                             <!-- REVIEW AREA -->
  580.                             {% import('@CustomerReview42/Block/customer_review4_recommend_macro.twig') as recommend_macro %}
  581.                             {% set review_list = repository('Plugin\\CustomerReview42\\Entity\\CustomerReviewTotal').getRecommend(Product.id) %}
  582.                             {% set reviewer_total = 0 %}
  583.                             {% set review_total_point = 0 %}
  584.                             {% set count = 5 %}
  585.                             {% for i in review_list %}
  586.                                 {% set reviewer_total = reviewer_total + i %}
  587.                                 {% set review_total_point = review_total_point + i * count %}
  588.                                 {% set count = count - 1 %}
  589.                             {% endfor %}
  590.                             {% set review_point = reviewer_total == 0 ? 0  : (review_total_point / reviewer_total) %}
  591.                             
  592.                             {% if 0 < reviewer_total %}
  593.                                 <div id="plg_customer_review{{Product.id}}" class="review-layoutRole product_list">
  594.                                     <h3 class="review_score" data-id="{{ Product.id }}" data-avg="{{ review_point }}" data-num="{{ reviewer_total }}" data-starsize="22" data-mstarsize="14" data-imgbase="{{ asset('aneros/img/products/') }}">
  595.                                         <span class="review_all_score_title"></span>
  596.                                         <span class="review_all_score_image" style="display: inline-block"></span>
  597.                                         <span class="review_all_score"><a href="{{ url('product_detail', {'id': Product.id}) }}#review_area"></a></span>
  598.                                     </h3>
  599.                                 </div>
  600.                             {% endif %}
  601.                             
  602.                             <script>
  603.                               $(function () {
  604.                                 if ( $('#plg_customer_review_anchor{{Product.id}}').length) {
  605.                                     $('#plg_customer_review{{Product.id}}').insertAfter($('#plg_customer_review_anchor{{Product.id}}'));
  606.                                 } else if ( $('#productForm{{Product.id}}').length) {
  607.                                     $('#plg_customer_review{{Product.id}}').insertBefore($('#productForm{{Product.id}}'));
  608.                                 } else {
  609.                                     $('#plg_customer_review{{Product.id}}').hide();
  610.                                 }
  611.                               });
  612.                             </script>
  613.                             <!-- REVIEW AREA END -->
  614.                                     
  615.                                     <div class="actions" id="productForm{{ Product.id }}">
  616.                                         {% if Product.stock_find %}
  617.                                             <button type="button" title="Add to Cart" class="button btn-cart one-click-add-cart" 
  618.                                             data-action="{{ url('product_add_cart', {id:Product.id}) }}" 
  619.                                             data-product_id="{{ Product.id }}" data-product_name="{{ Product.name }}"  data-product_img="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}"
  620.                                             data-product_class="{{ Product.ProductClasses[0].id }}" 
  621.                                             data-token="{{ csrf_token('Eccube\\Form\\Type\\AddCartType') }}">
  622.                                                     <span>カゴに入れる</span>
  623.                                             </button>
  624.                                         {% else %}
  625.                                             {% set arrivemail = true %}
  626.                                             {% for ProductTag in Product.ProductTag %}
  627.                                                 {% if ProductTag.Tag.id == 99 %}
  628.                                                     {% set arrivemail = false %}
  629.                                                 {% endif %}
  630.                                             {% endfor %}
  631.                                             
  632.                                             {% if arrivemail %}
  633.                                                 <button type="button" data-productid="{{ Product.id }}" data-productname="{{ Product.name }}" title="入荷お知らせ" class="button btn-cart add-to-mail">
  634.                                                     <span>入荷お知らせ</span>
  635.                                                 </button>
  636.                                             {% else %}
  637.                                                 <button type="button" title="在庫切れ" class="button btn-cart add-to-cart-out">
  638.                                                     <span>在庫切れ</span>
  639.                                                 </button>
  640.                                             {% endif %}
  641.                                         {% endif %}
  642.                                         {% if is_granted('ROLE_USER') %}
  643.                                         {% if BaseInfo.option_favorite_product %}
  644.                                                 <div class="ec-productRole__btn favorite-button">
  645.                                                     {% if FavoriteProduct == false %}
  646.                                                         {# <button type="button" id="favorite" class="ec-blockBtn--cancel button one-click-add-favorite"
  647.                                                         data-action="{{ url('product_add_favorite', {id:Product.id}) }}">
  648.                                                             {{ 'お気に入りに追加'|trans }}
  649.                                                         </button> #}
  650.                                                         
  651.                                                         <button type="button" id="favorite" class="favorite-heart one-click-add-favorite" data-action="{{ url('product_add_favorite', {id:Product.id}) }}">
  652.                                                             {#{{ 'お気に入りに追加'|trans }}#}
  653.                                                             <i class="fa fa-heart-o" title="お気に入りに追加"></i>
  654.                                                         </button>
  655.                                                     {% else %}
  656.                                                         <button type="button" id="unfavorite" class="unfavorite-heart one-click-remove-favorite" data-action="{{ url('mypage_favorite_delete', { id : Product.id }) }}" data-method="delete" {{ csrf_token_for_anchor() }}>
  657.                                                             {#{{ 'お気に入りに追加'|trans }}#}
  658.                                                             <i class="fa fa-heart" title="お気に入りに追加済です"></i>
  659.                                                         </button>
  660.                                                         
  661.                                                         {# <button type="button" id="favorite" class="ec-blockBtn--cancel button-favorited one-click-remove-favorite"
  662.                                                         data-action="{{ url('mypage_favorite_delete', { id : Product.id }) }}" data-method="delete" {{ csrf_token_for_anchor() }}>
  663.                                                             {{ 'お気に入りに追加済です。'|trans }}
  664.                                                         </button> #}
  665.                                                     {% endif %}
  666.                                                 </div>
  667.                                         {% endif %}
  668.                                         {% endif %}
  669.                                     </div>
  670.                                 </div>
  671.                             </li>
  672.                             <li class="item">
  673.                                 {% set Product = repository('Eccube\\Entity\\Product').find(76) %}
  674.                                 {# お気に入り登録済みを取得 #}
  675.                                 {% if is_granted('ROLE_USER') %}
  676.                                 {% set FavoriteProduct = false %}
  677.                                 {% for cfp in app.user.CustomerFavoriteProducts %}
  678.                                     {% if cfp.Product.id == Product.id %}
  679.                                         {% set FavoriteProduct = true %}
  680.                                     {% endif %}
  681.                                 {% endfor %}
  682.                                 {% endif %}
  683.                                 {% set campaignProduct = false %}
  684.                                 {% for ProductTag in Product.ProductTag %}
  685.                                     {% if ProductTag.Tag.id == 100 %}
  686.                                         {% set campaignProduct = true %}
  687.                                     {% endif %}
  688.                                 {% endfor %}
  689.                                 
  690.                                 <a href="{{ url('product_detail', {'id': Product.id}) }}" title="" class="product-image">
  691.                                     {% if campaignProduct == true %}
  692.                                         <p class="ec-shelfGrid__item-image campaignProduct">
  693.                                     {% else %}
  694.                                         <p class="ec-shelfGrid__item-image">
  695.                                     {% endif %}
  696.                                         <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" alt="{{ Product.name }}">
  697.                                     </p>
  698.                                 </a>
  699.                                 
  700.                                 <div class="product-ratings">
  701.                                 </div>
  702.                                 <div class="product-info">
  703.                                     <h2 class="product-name">
  704.                                         <a href="{{ url('product_detail', {'id': Product.id}) }}" title="{{ Product.name }}">{{ Product.name }}</a>
  705.                                     </h2>
  706.                                                                 
  707.                                     <div class="price-box">
  708.                                         <span class="price">
  709.                                             <div class="normal_price" id="product-normal-price-{{ Product.id }}">
  710.                                                 {% if  Product.getPrice01Min is not null and Product.getPrice01IncTaxMin != 0 %}
  711.                                                         {% if Product.hasProductClass %}
  712.                                                                 {% if Product.getPrice01Min == Product.getPrice01Max %}
  713.                                                                         <span class="price">{{ Product.getPrice01IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  714.                                                                 {% else %}
  715.                                                                         <span class="price">{{ Product.getPrice01IncTaxMin|price }}<!-- ~ {{ Product.getPrice01IncTaxMax|price }}--><span class="inctax"> (税込)</span></span>
  716.                                                                 {% endif %}
  717.                                                         {% else %}
  718.                                                                         <span class="price">{{ Product.getPrice01IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  719.                                                         {% endif %}
  720.                                                 {% endif %}
  721.                                             </div>
  722.                                             <div class="sale_price" id="product-price-{{ Product.id }}">
  723.                                                 {% if Product.hasProductClass %}
  724.                                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  725.                                                                 <span class="price">{{ Product.getPrice02IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  726.                                                         {% else %}
  727.                                                                 <span class="price">{{ Product.getPrice02IncTaxMin|price }}<!-- ~ {{ Product.getPrice02IncTaxMax|price }}--><span class="inctax"> (税込)</span></span>
  728.                                                         {% endif %}
  729.                                                 {% else %}
  730.                                                                 <span class="price">{{ Product.getPrice02IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  731.                                                 {% endif %}
  732.                                             </div>
  733.                                         </span>
  734.                                     </div>
  735.                                     
  736.                             <!-- REVIEW AREA -->
  737.                             {% import('@CustomerReview42/Block/customer_review4_recommend_macro.twig') as recommend_macro %}
  738.                             {% set review_list = repository('Plugin\\CustomerReview42\\Entity\\CustomerReviewTotal').getRecommend(Product.id) %}
  739.                             {% set reviewer_total = 0 %}
  740.                             {% set review_total_point = 0 %}
  741.                             {% set count = 5 %}
  742.                             {% for i in review_list %}
  743.                                 {% set reviewer_total = reviewer_total + i %}
  744.                                 {% set review_total_point = review_total_point + i * count %}
  745.                                 {% set count = count - 1 %}
  746.                             {% endfor %}
  747.                             {% set review_point = reviewer_total == 0 ? 0  : (review_total_point / reviewer_total) %}
  748.                             
  749.                             {% if 0 < reviewer_total %}
  750.                                 <div id="plg_customer_review{{Product.id}}" class="review-layoutRole product_list">
  751.                                     <h3 class="review_score" data-id="{{ Product.id }}" data-avg="{{ review_point }}" data-num="{{ reviewer_total }}" data-starsize="22" data-mstarsize="14" data-imgbase="{{ asset('aneros/img/products/') }}">
  752.                                         <span class="review_all_score_title"></span>
  753.                                         <span class="review_all_score_image" style="display: inline-block"></span>
  754.                                         <span class="review_all_score"><a href="{{ url('product_detail', {'id': Product.id}) }}#review_area"></a></span>
  755.                                     </h3>
  756.                                 </div>
  757.                             {% endif %}
  758.                             
  759.                             <script>
  760.                               $(function () {
  761.                                 if ( $('#plg_customer_review_anchor{{Product.id}}').length) {
  762.                                     $('#plg_customer_review{{Product.id}}').insertAfter($('#plg_customer_review_anchor{{Product.id}}'));
  763.                                 } else if ( $('#productForm{{Product.id}}').length) {
  764.                                     $('#plg_customer_review{{Product.id}}').insertBefore($('#productForm{{Product.id}}'));
  765.                                 } else {
  766.                                     $('#plg_customer_review{{Product.id}}').hide();
  767.                                 }
  768.                               });
  769.                             </script>
  770.                             <!-- REVIEW AREA END -->
  771.                                     
  772.                                     <div class="actions" id="productForm{{ Product.id }}">
  773.                                         {% if Product.stock_find %}
  774.                                             <button type="button" title="Add to Cart" class="button btn-cart one-click-add-cart" 
  775.                                             data-action="{{ url('product_add_cart', {id:Product.id}) }}" 
  776.                                             data-product_id="{{ Product.id }}" data-product_name="{{ Product.name }}"  data-product_img="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}"
  777.                                             data-product_class="{{ Product.ProductClasses[0].id }}" 
  778.                                             data-token="{{ csrf_token('Eccube\\Form\\Type\\AddCartType') }}">
  779.                                                     <span>カゴに入れる</span>
  780.                                             </button>
  781.                                         {% else %}
  782.                                             {% set arrivemail = true %}
  783.                                             {% for ProductTag in Product.ProductTag %}
  784.                                                 {% if ProductTag.Tag.id == 99 %}
  785.                                                     {% set arrivemail = false %}
  786.                                                 {% endif %}
  787.                                             {% endfor %}
  788.                                             
  789.                                             {% if arrivemail %}
  790.                                                 <button type="button" data-productid="{{ Product.id }}" data-productname="{{ Product.name }}" title="入荷お知らせ" class="button btn-cart add-to-mail">
  791.                                                     <span>入荷お知らせ</span>
  792.                                                 </button>
  793.                                             {% else %}
  794.                                                 <button type="button" title="在庫切れ" class="button btn-cart add-to-cart-out">
  795.                                                     <span>在庫切れ</span>
  796.                                                 </button>
  797.                                             {% endif %}
  798.                                         {% endif %}
  799.                                         {% if is_granted('ROLE_USER') %}
  800.                                         {% if BaseInfo.option_favorite_product %}
  801.                                                 <div class="ec-productRole__btn favorite-button">
  802.                                                     {% if FavoriteProduct == false %}
  803.                                                         {# <button type="button" id="favorite" class="ec-blockBtn--cancel button one-click-add-favorite"
  804.                                                         data-action="{{ url('product_add_favorite', {id:Product.id}) }}">
  805.                                                             {{ 'お気に入りに追加'|trans }}
  806.                                                         </button> #}
  807.                                                         
  808.                                                         <button type="button" id="favorite" class="favorite-heart one-click-add-favorite" data-action="{{ url('product_add_favorite', {id:Product.id}) }}">
  809.                                                             {#{{ 'お気に入りに追加'|trans }}#}
  810.                                                             <i class="fa fa-heart-o" title="お気に入りに追加"></i>
  811.                                                         </button>
  812.                                                     {% else %}
  813.                                                         <button type="button" id="unfavorite" class="unfavorite-heart one-click-remove-favorite" data-action="{{ url('mypage_favorite_delete', { id : Product.id }) }}" data-method="delete" {{ csrf_token_for_anchor() }}>
  814.                                                             {#{{ 'お気に入りに追加'|trans }}#}
  815.                                                             <i class="fa fa-heart" title="お気に入りに追加済です"></i>
  816.                                                         </button>
  817.                                                         
  818.                                                         {# <button type="button" id="favorite" class="ec-blockBtn--cancel button-favorited one-click-remove-favorite"
  819.                                                         data-action="{{ url('mypage_favorite_delete', { id : Product.id }) }}" data-method="delete" {{ csrf_token_for_anchor() }}>
  820.                                                             {{ 'お気に入りに追加済です。'|trans }}
  821.                                                         </button> #}
  822.                                                     {% endif %}
  823.                                                 </div>
  824.                                         {% endif %}
  825.                                         {% endif %}
  826.                                     </div>
  827.                                 </div>
  828.                             </li>
  829.                         </ul>
  830.                     </div>
  831.                     <div class="product-pleasure grey-gradient-background">
  832.                         <div class="container flexbox">
  833.                             <div class="desc-contr">
  834.                                 <h3>進化の先、究極のドライオーガズムローション</h3>
  835.                                 <p>アネロスの効果を最大限に引き出すために開発されたアネロス専用水溶性ローションです。特別なレシピで純天然素材の使用により、肌に負担のかかる成分は一切排除、直腸粘膜のpHに適用、体内で最も吸収力が強い直腸に配慮された高い安全性を誇ります。</p>
  836.                                 <p>最適の粘度で長時間の潤滑性を持続し、アネロス製品の刺激を効果的に皮膚に伝え、蠕動運動を誘発させ、ドライオーガズムの到達を早めます。保湿性の高いしっとりとした使い心地、滑らかでべたつきもなく使用後の処理も簡単です。無臭無香でグリセリン等の使用がないため、腸がデリケートな方にも安心、安全なローションです。</p>
  837.                                 <p>セッションズがあれば相乗効果で快適なドライライフを送れることは間違いありません。是非お試しください。</p>
  838.                             </div>
  839.                             <img src="{{ asset('aneros/img/category/sessions/sessions-pleasure-image.jpg') }}" class="pleasure-image animate" data-animate="fadeIn" data-duration="1.0s" data-delay="1.0s" alt="セッションズローション">
  840.                         </div>
  841.                     </div>
  842.                     <div class="product-rewards-experience">
  843.                         <div class="container flexbox">
  844.                             <div class="desc-contr">
  845.                                 <h3>純天然素材で安全性が高い!</h3>
  846.                                 <p>吸収力の高い直腸に優しく、セッションズローションは完全水溶性です。どんな素材のグッズでも使用できます!蠕動運動の誘発を促す独特なレシピの素材には、すべて純天然素材を配合し、肌へ負担がかかる成分は排除。</p>
  847.                                 <p>※アネロス社オリジナルローションはセッションズのみ。類似品に十分ご注意ください。</p>
  848.                             </div>
  849.                             <img src="{{ asset('aneros/img/category/sessions/sessions-rewards-image.png') }}" class="animate" data-animate="fadeIn" data-duration="1.0s" data-delay="1.0s" alt="セッションズローション">
  850.                         </div>
  851.                     </div>
  852.                     <div class="shopping-experiernce-tile" id="shopping-experience-tile">
  853.                         <div class="container flexbox">
  854.                             <div class="tile-bg">
  855.                                 <img src="{{ asset('aneros/img/products/shopping-experience-tile-bg.png') }}" class="img-tile-bg"
  856.                                     alt="中身がわからい発送">
  857.                             </div>
  858.                             <div class="fast-shipping flexbox-center">
  859.                                 <img src="{{ asset('aneros/img/products/fast-shipping-rect-dark.png') }}" class="img-fast-shipping"
  860.                                     alt="即日出荷">
  861.                             </div>
  862.                             <div class="secure-cc-processing flexbox-center">
  863.                                 <img src="{{ asset('aneros/img/products/secure-cc-processing-rect-dark.png') }}"
  864.                                     class="img-secure-cc-processing" alt="貴重な個人情報は全てSSL保護">
  865.                             </div>
  866.                             <div class="money-back-gurantee flexbox-center">
  867.                                 <img src="{{ asset('aneros/img/products/money-back-guarantee-rect-dark.png') }}"
  868.                                     class="img-money-back-gurantee" alt="100%返金保証">
  869.                             </div>
  870.                         </div>
  871.                     </div>
  872.             
  873.                     <div class="product-other-products container flexbox">
  874.                         <div class="item">
  875.                             <a href="{{ url('product_detail', {'id': 72}) }}">
  876.                                 <img src="{{ asset('aneros/img/products/category_vice-2.jpg') }}" alt="ヴァイス 2 - メンズバイブレーション" class="animate"
  877.                                     data-animate="zoomIn" data-duration="1.0s" data-delay="0.4s">
  878.                             </a>
  879.                         </div>
  880.                         <div class="item">
  881.                             <a href="{{ url('product_detail', {'id': 81}) }}">
  882.                                 <img src="{{ asset('aneros/img/products/category_progasm_black_ice.jpg') }}" alt="プロガスムブラックアイス - サイズを求める男性に"
  883.                                     class="animate center" data-animate="zoomIn" data-duration="1.0s" data-delay="0.4s">
  884.                             </a>
  885.                         </div>
  886.                         <div class="item">
  887.                             <a href="{{ url('product_detail', {'id': 70}) }}">
  888.                                 <img src="{{ asset('aneros/img/products/category_HST.jpg') }}" alt="ヒリックスシントライデント - シン定番のフラグシップモデル"
  889.                                     class="animate" data-animate="zoomIn" data-duration="1.0s" data-delay="0.4s">
  890.                             </a>
  891.                         </div>
  892.                     </div>
  893.                     
  894.                     <div class="product-compare-prostate-massagers container flexbox">
  895.                         <div class="product-compare-prostate-massagers-image">
  896.                             <img src="{{ asset('aneros/img/products/compare_prostate_massagers_image.jpg') }}" class="animate"
  897.                                 data-animate="zoomIn" data-duration="1.0s" data-delay="0.4s" alt="私にあっているアネロスはどれでしょうか??">
  898.                         </div>
  899.                         <div class="desc-contr">
  900.                             <h3>私にあっているアネロスはどれでしょうか??</h3>
  901.                             <a href="{{ url('homepage') }}prostate-massagers" class="more-link">
  902.                                 前立腺マッサージ器はこちら
  903.                                 <span>&gt;</span>
  904.                             </a>
  905.                         </div>
  906.                     </div>
  907.                 </div>
  908.             </div>
  909.         </div>
  910.         {{ include('Block/add_to_cart.twig') }}
  911.     <div class="swooth-wrapper grey-swooth">
  912.     </div>
  913. </div>
  914. {% endblock %}