app/template/default/Block/plaza_check_product.twig line 1

Open in your IDE?
  1. {% if CheckProducts %}
  2. <div id="btm_coinlist">
  3.   <div id="ichiran_wrap" class="btmcheckwrap"><dl><dd id="ichiran_right" class="plaza_back">
  4.     <p class="checktitle">最近チェックした商品</p>
  5.     <div id="ichiran_coinlist_plaza">
  6.       <ul id="btm_coinlist_wrap">
  7.           {% for Product in CheckProducts %}
  8.           {% set p_id = Product.id %}
  9.           <li>
  10.               <button type="button" id="btn_{{ p_id }}"
  11.                 {% if customer_id == "" or htCFav[p_id] is defined %}disabled{% else %}onclick="addFavorite('{{ p_id }}');"{% endif %}>
  12.                 {% if htFav[p_id] is defined and htFav[p_id] %}
  13.                 <span class="cnt">{{ htFav[p_id] }}</span>
  14.                 {% endif %}
  15.                 <i class="far fa-heart"></i>
  16.               </button>
  17.               <a href="{{ url('plaza_product_detail', {'id': Product.id}) }}">
  18.               {% if Product.main_list_image %}
  19.                 <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}">
  20.               {% else %}
  21.                 <img src="/html/upload/save_image/no_image_product.png" alt="{{ Product.name }}">
  22.               {% endif %}
  23.               {% if htBox[p_id] is defined and htBox[p_id] == "有り" %}
  24.               <p class="hako"><b>箱あり</b></p>
  25.               {% endif %}
  26.               <h2>{{ Product.name }}</h2>
  27.               <p>
  28.                 {% if Product.Status.id == 6 %}
  29.                   {# 取り置き(公開)は価格表示なし #}
  30.                 {% elseif Product.getPrice02IncTaxMin == 0 and htMeyasu[p_id] is defined %}
  31.                   {# 価格0円の場合は目安価格を表示 #}
  32.                   <strong>目安価格:{{ htMeyasu[p_id]|number_format }}円(税込)</strong>
  33.                 {% else %}
  34.                   <strong>販売価格:{{ Product.getPrice02IncTaxMin|number_format }}円(税込)</strong>
  35.                 {% endif %}
  36.               </p>
  37.                 {% if Product.stock_find == "" %}
  38.                   <div class="plate">
  39.                     <b class="tab_urikire">売切れ</b>
  40.                   </div>
  41.                 {% elseif htNego[p_id] is defined and htNego[p_id] == "あり" %}
  42.                   <div class="plate">
  43.                     <b class="tab_kosho">価格交渉承り中</b>
  44.                   </div>
  45.                 {% endif %}
  46.             </a>
  47.           </li>
  48.           {% endfor %}
  49.       </ul>
  50.     </div>
  51.     </dd></dl></div>
  52. </div><!--//btm_coinlist-->
  53. {% endif %}