app/template/yamaria/Block/common_history.twig line 1

Open in your IDE?
  1. {#
  2.     最近チェックした商品
  3. #}
  4. {% if productHistory %}
  5. <div class="ec-shelfRole ym-historyRole ym-role">
  6.     {% if app.request.get('_route') != 'product_detail' %}
  7.     <div class="ym-heading">
  8.         <span class="ym-heading_lv2">最近チェックした商品</span>
  9.     </div>
  10.     {% else %}
  11.     <div class="ec-secHeading">
  12.         <span class="ec-secHeading__en">CHECK ITEM</span>
  13.         <span class="ec-secHeading__line"></span>
  14.         <span class="ec-secHeading__ja">最近チェックした商品</span>
  15.     </div>
  16.     {% endif %}
  17.     <ol class="ym-historyRole__list ym-item__list">
  18.         {% for product in productHistory %}
  19.             <li class="ym-historyRole__item ym-item">
  20.                 <a href="{{ url('product_detail', {'id': product.id}) }}">
  21.                     <p class="ym-item__image"><img src="{{ asset(product.main_list_image|no_image_product, 'save_image') }}"></p>
  22.                     <p class="ym-item__name">{{ product.name }}</p>
  23.                     <p class="ym-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.                     {% for ProductCategory in product.ProductCategories %}
  34.                         {% set break = false %}
  35.                         {% for Category in ProductCategory.Category.path if not break %}
  36.                             {% if Category.id == 7 %}
  37.                         <span class="ym-tag ym-tag_y">YAMASHITA</span>
  38.                                 {% set break = true %}
  39.                             {% elseif Category.id == 8 %}
  40.                         <span class="ym-tag ym-tag_m">Maria</span>
  41.                                 {% set break = true %}
  42.                             {% endif %}
  43.                         {% endfor %}
  44.                     {% endfor %}
  45.                 </a>
  46.             </li>
  47.         {% endfor %}
  48.         {#
  49.         <li class="ym-historyRole__item ym-item">
  50.             <a href="">
  51.                 <p class="ym-item__image"><img
  52.                         src="/html/user_data/assets/img/dummy/img_dummy_01.jpg"></p>
  53.                 <p class="ym-item__name">エギ王Kケイムラ</p>
  54.                 <p class="ym-item__price">¥4,400(税込)</p>
  55.                 <span class="ym-tag ym-tag_y">YAMASHITA</span>
  56.             </a>
  57.         </li>
  58.         <li class="ym-historyRole__item ym-item">
  59.             <a href="">
  60.                 <p class="ym-item__image"><img
  61.                         src="/html/user_data/assets/img/dummy/img_dummy_08.jpg"></p>
  62.                 <p class="ym-item__name">Mariaドライポロシャツ</p>
  63.                 <p class="ym-item__price">¥3,850(税込)</p>
  64.                 <span class="ym-tag ym-tag_m">Maria</span>
  65.             </a>
  66.         </li>
  67.         <li class="ym-historyRole__item ym-item">
  68.             <a href="">
  69.                 <p class="ym-item__image"><img
  70.                         src="/html/user_data/assets/img/dummy/img_dummy_11.jpg"></p>
  71.                 <p class="ym-item__name">Mariaカッティングステッカー</p>
  72.                 <p class="ym-item__price">¥1,650(税込)</p>
  73.                 <span class="ym-tag ym-tag_m">Maria</span>
  74.             </a>
  75.         </li>
  76.         <li class="ym-historyRole__item ym-item">
  77.             <a href="">
  78.                 <p class="ym-item__image"><img
  79.                         src="/html/user_data/assets/img/dummy/img_dummy_04.jpg"></p>
  80.                 <p class="ym-item__name">エギ王Tシャツ</p>
  81.                 <p class="ym-item__price">¥3,300(税込)</p>
  82.                 <span class="ym-tag ym-tag_y">YAMASHITA</span>
  83.             </a>
  84.         </li>
  85.         <li class="ym-historyRole__item ym-item">
  86.             <a href="">
  87.                 <p class="ym-item__image"><img
  88.                         src="/html/user_data/assets/img/dummy/img_dummy_10.jpg"></p>
  89.                 <p class="ym-item__name">Maria×ST(ストリームトレイル) ロックショアバッグ</p>
  90.                 <p class="ym-item__price">¥18,700(税込)</p>
  91.                 <span class="ym-tag ym-tag_m">Maria</span>
  92.             </a>
  93.         </li>
  94.         <li class="ym-historyRole__item ym-item">
  95.             <a href="">
  96.                 <p class="ym-item__image"><img
  97.                         src="/html/user_data/assets/img/dummy/img_dummy_06.jpg"></p>
  98.                 <p class="ym-item__name">YAMASHITA キャップ</p>
  99.                 <p class="ym-item__price">¥3,300(税込)</p>
  100.                 <span class="ym-tag ym-tag_y">YAMASHITA</span>
  101.             </a>
  102.         </li>
  103.         #}
  104.     </ol>
  105. </div>
  106. {% endif %}