vendor/shopware/storefront/Resources/views/storefront/page/account/index.html.twig line 154

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/account/_page.html.twig' %}
  2. {% block page_account_main_content %}
  3.     {% block page_account_overview %}
  4.         <div class="account-overview">
  5.             {% if feature('FEATURE_NEXT_15707') %}
  6.                 {% block page_account_overview_shipping_warning %}
  7.                     {% set ableToShipToShippingCountry = context.customer.defaultShippingAddress.country.shippingAvailable %}
  8.                     {% if not ableToShipToShippingCountry %}
  9.                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  10.                             type: 'warning',
  11.                             content: 'account.overviewNotAbleToShip'|trans|sw_sanitize
  12.                         } %}
  13.                     {% endif %}
  14.                 {% endblock %}
  15.                 {% block page_account_overview_request_group_info %}
  16.                     {% if page.customer.requestedGroup %}
  17.                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  18.                             type: 'info',
  19.                             content: 'account.overviewCustomerGroupRequest'|trans({
  20.                                 '%group%': page.customer.requestedGroup.translated.name
  21.                             })
  22.                         } %}
  23.                     {% endif %}
  24.                 {% endblock %}
  25.             {% endif %}
  26.             {% block page_account_overview_welcome %}
  27.                 <div class="account-welcome">
  28.                     <h1>{{ "account.overviewTitle"|trans|sw_sanitize }}</h1>
  29.                     {% block page_account_overview_welcome_intro %}
  30.                         <p>{{ "account.overviewInfo"|trans|sw_sanitize }}</p>
  31.                     {% endblock %}
  32.                     {% if not feature('FEATURE_NEXT_15707') and page.customer.requestedGroup %}
  33.                         {# @deprecated tag:v6.5.0 - Alert will be removed use block "page_account_overview_request_group_info" instead #}
  34.                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  35.                             type: 'info',
  36.                             content: 'account.overviewCustomerGroupRequest'|trans({
  37.                                 '%group%': page.customer.requestedGroup.translated.name
  38.                             })
  39.                         } %}
  40.                     {% endif %}
  41.                 </div>
  42.             {% endblock %}
  43.             {% block page_account_overview_main %}
  44.                 <div class="row">
  45.                     {% block page_account_overview_profile %}
  46.                         <div class="col-lg-6 card-col account-overview-card account-overview-profile">
  47.                             {% block page_account_overview_profile_card %}
  48.                                 <div class="card">
  49.                                     <div class="card-body">
  50.                                         {% block page_account_overview_profile_title %}
  51.                                             <h2 class="card-title">
  52.                                                 {{ "account.overviewProfileHeader"|trans|sw_sanitize }}
  53.                                             </h2>
  54.                                         {% endblock %}
  55.                                         {% block page_account_overview_profile_content %}
  56.                                             <p>
  57.                                                 {% if context.customer.salutation and context.customer.salutation.salutationKey != 'not_specified' %}
  58.                                                     {{ context.customer.salutation.translated.displayName }}
  59.                                                 {% endif %}
  60.                                                 {% if context.customer.title %}
  61.                                                     {{ context.customer.title }}<br/>
  62.                                                 {% endif %}
  63.                                                 {{ context.customer.firstName }} {{ context.customer.lastName }}
  64.                                             </p>
  65.                                         {% endblock %}
  66.                                         {% block page_account_overview_profile_company %}
  67.                                             {% sw_include '@Storefront/storefront/component/account/customer-overview-personal-company.html.twig' with {
  68.                                                 'customer': context.customer,
  69.                                             } %}
  70.                                         {% endblock %}
  71.                                         {% block page_account_overview_profile_email %}
  72.                                             <p>
  73.                                                 {{ context.customer.email }}
  74.                                             </p>
  75.                                         {% endblock %}
  76.                                         {% block page_account_overview_profile_actions %}
  77.                                             <div class="card-actions">
  78.                                                 <a href="{{ path('frontend.account.profile.page') }}"
  79.                                                    title="{{ "account.overviewChangeProfile"|trans|striptags }}"
  80.                                                    class="btn btn-light">
  81.                                                     {{ "account.overviewChangeProfile"|trans|sw_sanitize }}
  82.                                                 </a>
  83.                                             </div>
  84.                                         {% endblock %}
  85.                                     </div>
  86.                                 </div>
  87.                             {% endblock %}
  88.                         </div>
  89.                     {% endblock %}
  90.                     {% block page_account_overview_payment %}
  91.                         <div class="col-lg-6 card-col account-overview-card account-overview-payment">
  92.                             {% block page_account_overview_payment_card %}
  93.                                 <div class="card">
  94.                                     <div class="card-body">
  95.                                         {% block page_account_overview_payment_title %}
  96.                                             <h2 class="card-title">
  97.                                                 {{ "account.overviewPaymentHeader"|trans|sw_sanitize }}
  98.                                             </h2>
  99.                                         {% endblock %}
  100.                                         {% block page_account_overview_payment_content %}
  101.                                             <strong>{{ context.customer.defaultPaymentMethod.translated.name }}</strong>
  102.                                             <p>{{ context.customer.defaultPaymentMethod.description }}</p>
  103.                                         {% endblock %}
  104.                                         {% block page_account_overview_payment_actions %}
  105.                                             <div class="card-actions">
  106.                                                 <a href="{{ path('frontend.account.payment.page') }}"
  107.                                                    title="{{ "account.overviewChangePayment"|trans|striptags }}"
  108.                                                    class="btn btn-light">
  109.                                                     {{ "account.overviewChangePayment"|trans|sw_sanitize }}
  110.                                                 </a>
  111.                                             </div>
  112.                                         {% endblock %}
  113.                                     </div>
  114.                                 </div>
  115.                             {% endblock %}
  116.                         </div>
  117.                     {% endblock %}
  118.                 </div>
  119.             {% endblock %}
  120.             {% block page_account_overview_newsletter %}
  121.                 <div class="account-overview-card account-overview-newsletter">
  122.                     <div class="card">
  123.                         <div class="card-body">
  124.                             {% block page_account_overview_newsletter_title %}
  125.                                 <h2 class="card-title">
  126.                                     {{ "account.newsletterTitle"|trans|sw_sanitize }}
  127.                                 </h2>
  128.                             {% endblock %}
  129.                             {% block page_account_overview_newsletter_content %}
  130.                                 <div class="js-newsletter-wrapper">
  131.                                     {% if feature('FEATURE_NEXT_14001') %}
  132.                                         {% sw_include "@Storefront/storefront/page/account/newsletter.html.twig" with { "newsletterAccountPagelet": page.getNewsletterAccountPagelet() } %}
  133.                                     {% else %}
  134.                                         {% sw_include "@Storefront/storefront/page/account/newsletter.html.twig" with { "customer": context.customer } %}
  135.                                     {% endif %}
  136.                                 </div>
  137.                             {% endblock %}
  138.                         </div>
  139.                     </div>
  140.                 </div>
  141.             {% endblock %}
  142.             {% block page_account_overview_addresses_include %}
  143.                 {% sw_include "@Storefront/storefront/page/account/address.html.twig" %}
  144.             {% endblock %}
  145.             {% block page_account_overview_newest_order %}
  146.                 {% if page.newestOrder %}
  147.                     <div class="account-overview-card account-overview-newest-order">
  148.                         <div class="card">
  149.                             <div class="card-body">
  150.                                 {% block page_account_overview_newest_order_title %}
  151.                                     <h2 class="card-title">
  152.                                         {{ "account.overviewNewestOrderHeader"|trans|sw_sanitize }}
  153.                                     </h2>
  154.                                 {% endblock %}
  155.                                 {% block page_account_overview_newest_order_content %}
  156.                                     {% block page_account_overview_newest_order_table %}
  157.                                         {# @deprecated tag:v6.5.0 - Bootstrap v5 `.table` class will be removed because it adds unneeded styling. #}
  158.                                         <div class="{% if not feature('v6.5.0.0') %}table {% endif %}order-table">
  159.                                             {% block page_account_overview_newest_order_table_body %}
  160.                                                 <div class="order-table-body"
  161.                                                      data-order-detail-loader="true">
  162.                                                     {% sw_include '@Storefront/storefront/page/account/order-history/order-item.html.twig' with {
  163.                                                         order: page.newestOrder
  164.                                                     } %}
  165.                                                 </div>
  166.                                             {% endblock %}
  167.                                         </div>
  168.                                     {% endblock %}
  169.                                 {% endblock %}
  170.                             </div>
  171.                         </div>
  172.                     </div>
  173.                 {% endif %}
  174.             {% endblock %}
  175.         </div>
  176.     {% endblock %}
  177. {% endblock %}