custom/static-plugins/SamsonCustomer/src/Resources/views/storefront/page/account/sidebar.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/account/sidebar.html.twig' %}
  2. {% set isSubAccount = constant('Samson\\CustomFieldSet\\Constants\\CustomerCustomFieldConstants::CUSTOM_FIELD_IS_SUB_ACCOUNT') %}
  3. {% block page_account_sidebar_menu_inner %}
  4.         {% block page_account_sidebar_link_home %}
  5.             {{ parent() }}
  6.         {% endblock %}
  7.         {% block page_account_sidebar_link_profile %}
  8.             {{ parent() }}
  9.         {% endblock %}
  10.         {% block page_account_sidebar_link_address %}
  11.             {{ parent() }}
  12.         {% endblock %}
  13.         {% block page_account_sidebar_link_payment %}
  14.             {{ parent() }}
  15.         {% endblock %}
  16.         {% block page_account_sidebar_link_orders %}
  17.             {{ parent() }}
  18.             {% if not context.customer.customFields[isSubAccount] %}
  19.                 <a href="{{ path('frontend.account.sub-account.page') }}"
  20.                      title="{{ "account.subAccountLink"|trans|striptags }}"
  21.                      class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.sub-account.page') %} is-active{% endif %}">
  22.                     {{ "account.subAccountLink"|trans|sw_sanitize }}
  23.                 </a>
  24.             {% endif %}
  25.         {% endblock %}
  26. {% endblock %}