custom/static-plugins/EfbStorefront/Resources/views/storefront/page/product-detail/buy-widget-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
  2. {% block page_product_detail_buy_button_container %}
  3.     <div class="col-md-8">
  4.         {% block page_product_detail_buy_button %}
  5.             {% if context.customer %}
  6.                 <button class="btn btn-primary btn-block btn-buy"
  7.                         title="{% if context.customer is not null %}{{ "detail.addProduct"|trans|striptags }}{% else %}{{ "detail.addProductDisabled" }}{% endif %}"
  8.                         aria-label="{{ "detail.addProduct"|trans|striptags }}"
  9.                         {% if context.customer is null %}disabled{% endif %}
  10.                 >
  11.                     {{ "detail.addProduct"|trans|sw_sanitize }}
  12.                 </button>
  13.             {% else %}
  14.                 <a class="btn btn-primary btn-block"
  15.                     href="{{ path('frontend.account.login.page') }}"
  16.                     title="{{ "account.orRegisterLink"|trans|striptags }}"
  17.                 >
  18.                     {{ "detail.loginRequired"|trans|sw_sanitize }}
  19.                 </a>
  20.             {% endif %}
  21.         {% endblock %}
  22.     </div>
  23. {% endblock %}
  24. {% block page_product_detail_buy_container %}
  25.     {% if not context.customer %}
  26.         <div class="mt-2">
  27.             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  28.                 type: "info",
  29.                 content: "detail.loginRequiredAlert"|trans|sw_sanitize
  30.             } %}
  31.         </div>
  32.     {% endif %}
  33.     {{ parent() }}
  34. {% endblock %}
  35. {% block page_product_detail_buy_product_buy_info %}
  36.     <input type="hidden"
  37.            name="lineItems[{{ product.id }}][unit_id]"
  38.            value="{{ product.unit.id }}">
  39.     {{ parent() }}
  40. {% endblock %}