app/template/HF4002/Block/order_by_sale_for_cp.twig line 1

Open in your IDE?
  1. {% block stylesheet %}
  2.     <style>
  3.         .ec-orderBySaleRole {
  4.             padding: 60px 0
  5.         }
  6.     </style>
  7. {% endblock %}
  8. {% if Products|length %}
  9.     <div class="ec-orderBySaleRole">
  10.         <div class="ec-role">
  11.             <div class="ec-secHeading">
  12.                 <span class="ec-secHeading__en">{{ 'front.order_by_sale_for_cp.block.topic.topic__en'|trans }}</span>
  13.                 <span class="ec-secHeading__line"></span>
  14.                 <span class="ec-secHeading__ja">{{ 'front.order_by_sale_for_cp.block.topic.topic__ja'|trans }}</span>
  15.             </div>
  16.             <ul class="ec-shelfGrid">
  17.                 {% for Product in Products %}
  18.                     <li class="ec-shelfGrid__item">
  19.                         <a href="{{ url('product_detail', {'id': Product.id}) }}">
  20.                             <img src="{{ asset(Product.mainFileName|no_image_product, "save_image") }}" alt="{{ Product.name }}">
  21.                             <dl>
  22.                                 <dt class="item_name">{{ Product.name }}</dt>
  23.                                 <dd class="item_price">
  24.                                     {% if Product.hasProductClass %}
  25.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  26.                                             {{ Product.getPrice02IncTaxMin|price }}
  27.                                         {% else %}
  28.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  29.                                         {% endif %}
  30.                                     {% else %}
  31.                                         {{ Product.getPrice02IncTaxMin|price }}
  32.                                     {% endif %}
  33.                                 </dd>
  34.                             </dl>
  35.                         </a>
  36.                     </li>
  37.                 {% endfor %}
  38.             </ul>
  39.         </div>
  40.     </div>
  41. {% endif %}