app/template/mizunasu/Block/recommend_product_block.twig line 1

Open in your IDE?
  1. <div class="top-products-title">
  2.     <div class="icon"><img src="{{ asset('assets/img/common/top-crown-icon.png') }}" alt=""></div><div class="ttl green mincho">いせやのおすすめ</div>
  3.   </div>
  4.  
  5.   
  6.   
  7. {% set recommend_products = repository('Plugin\\Recommend42\\Entity\\RecommendProduct').getRecommendProduct %}
  8. {% set cnt="1" %}
  9.  <ul class="div3">
  10.      {% for RecommendProduct in recommend_products %}
  11.      {% set prizename="assets/img/common/top-icon_prize" ~ cnt ~ ".png" %}
  12.     <li><div class="prize-icon"><img src="{{ asset( prizename ) }}" alt=""></div>
  13.     <a href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}"><img src="{{ asset(RecommendProduct.Product.mainFileName|no_image_product, "save_image") }}"><p>{{ RecommendProduct.comment|raw|purify|nl2br }}</p>
  14.     <h3>{{ RecommendProduct.Product.name }}</h3><div class="price">{{ RecommendProduct.Product.getPrice02IncTaxMin|price }}</div></a></li>
  15.     {% set cnt = cnt +1 %}
  16.  {% endfor %}
  17.   </ul>
  18.  <div class="to-product-list"><h5><a href="{{ url('product_list') }}">お買い物はこちらから</a></h5><h3><a href="{{ url('product_list') }}">いせやの商品一覧</a></h3></div>
  19. <!-- ▼item_list▼ 
  20. <div class="ec-shelfRole">
  21.     <ul class="ec-shelfGrid" "div3">
  22.         {% set cnt=1 %}
  23.         {% for RecommendProduct in recommend_products %}
  24.             <li class="ec-shelfGrid__item"><div class="prize-icon"><img src="{{ asset('assets/img/common/top-icon_prize{{ cnt }}.png') }}" alt=""></div>
  25.                 <a href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}">
  26.                     <img src="{{ asset(RecommendProduct.Product.mainFileName|no_image_product, "save_image") }}">
  27.                     <p>{{ RecommendProduct.comment|raw|purify|nl2br }}</p>
  28.                     <dl>
  29.                         <dt class="item_name">{{ RecommendProduct.Product.name }}</dt>
  30.                         <dd class="item_price">
  31.                             {% if RecommendProduct.Product.hasProductClass %}
  32.                                 {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
  33.                                    <div class="price"> {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}</div>
  34.                                 {% else %}
  35.                                    <div class="price"> {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}</div>
  36.                                 {% endif %}
  37.                             {% else %}
  38.                                <div class="price"> {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}</div>
  39.                             {% endif %}
  40.                         </dd>
  41.                     </dl>
  42.                 </a>
  43.             </li>
  44.         {% endfor %}
  45.     </ul>
  46. </div>
  47. -->
  48. <!-- ▲item_list▲ -->