app/template/flapshop/Mypage/index.twig line 1

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 mypageno = 'index' %}
  10. {% set body_class = 'mypage' %}
  11. {% block main %}
  12.     <div class="ec-layoutRole__main">
  13.         <div class="ec-mypageRole">
  14.             <div class="ec-pageHeader">
  15.                 <h1>{{ 'マイページ'|trans }}/{{ 'ご注文履歴'|trans }}</h1>
  16.             </div>
  17.             {% include 'Mypage/navi.twig' %}
  18.         </div>
  19.         <div class="ec-mypageRole">
  20.             {% if pagination.totalItemCount > 0 %}
  21.                 <p class="ec-para-normal">{{ '%count%件の履歴があります'|trans({'%count%':pagination.totalItemCount}) }}</p>
  22.                 {% for Order in pagination %}
  23.                     <div class="ec-historyRole">
  24.                         <div class="ec-historyRole__contents">
  25.                             <div class="ec-historyRole__header">
  26.                                 <div class="ec-historyListHeader">
  27.                                     <p class="ec-historyListHeader__date">{{ Order.order_date|date_sec }}</p>
  28.                                     <dl class="ec-definitions">
  29.                                         <dt>{{ 'ご注文番号'|trans }}</dt>
  30.                                         <dd>{{ Order.order_no }}</dd>
  31.                                     </dl>
  32.                                     {% if (BaseInfo.option_mypage_order_status_display) %}
  33.                                         <dl class="ec-definitions">
  34.                                             <dt>{{ 'ご注文状況'|trans }}</dt>
  35.                                             <dd>{{ Order.CustomerOrderStatus }}</dd>
  36.                                         </dl>
  37.                                     {% endif %}
  38.                                     <p class="ec-historyListHeader__action"><a class="ec-inlineBtn"
  39.                                                                                href="{{ url('mypage_history', {'order_no': Order.order_no}) }}">{{ '詳細を見る'|trans }}</a>
  40.                                     </p>
  41.                                 </div>
  42.                             </div>
  43.                             <div class="ec-historyRole__detail">
  44.                                 {% for OrderItem in Order.MergedProductOrderItems %}
  45.                                     <div class="ec-imageGrid">
  46.                                         <div class="ec-imageGrid__img">
  47.                                             {% if OrderItem.Product is null %}
  48.                                                 <img src="{{ asset(''|no_image_product, 'save_image') }}"/>
  49.                                             {% else %}
  50.                                                 <img src="{{ asset(OrderItem.Product.MainListImage|no_image_product, 'save_image') }}">
  51.                                             {% endif %}
  52.                                         </div>
  53.                                         <div class="ec-imageGrid__content">
  54.                                             <p class="ec-historyRole__detailTitle">{{ OrderItem.product_name }}</p>
  55.                                             {% if OrderItem.class_category_name1 is not empty %}
  56.                                                 {{ OrderItem.class_category_name1 }}
  57.                                             {% endif %}
  58.                                             {% if OrderItem.class_category_name2 is not empty %}
  59.                                                 / {{ OrderItem.class_category_name2 }}
  60.                                             {% endif %}
  61.                                             <p class="ec-historyRole__detailPrice">{{ OrderItem.price_inc_tax|price }}
  62.                                                 × {{ OrderItem.quantity }}</p>
  63.                                         </div>
  64.                                     </div>
  65.                                 {% endfor %}
  66.                             </div>
  67.                         </div>
  68.                     </div>
  69.                 {% endfor %}
  70.                 <div class="ec-pagerRole">
  71.                     {% include "pager.twig" with {'pages': pagination.paginationData} %}
  72.                 </div>
  73.             {% else %}
  74.                 <p class="ec-para-normal">{{ 'ご注文履歴はありません。'|trans }}</p>
  75.             {% endif %}
  76.         </div>
  77.     </div>
  78. {% endblock %}