custom/plugins/LoyxxSeminar/src/Resources/views/storefront/component/delivery-information.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/delivery-information.html.twig' %}
  2. {% block component_delivery_information %}
  3.     {{ parent() }}
  4.     {# @var product \Shopware\Core\Content\Product\ProductEntity #}
  5.     {% if page is defined and page.product is defined and page.product != null %}
  6.         {% set product = page.product %}
  7.     {% endif %}
  8.     {% block component_delivery_information_free_seats %}
  9.         {% if product.translated.customFields.loyxx_seminar %}
  10.             <p class="delivery-information delivery-available">
  11.                 {% block component_delivery_information_free_seats_icon %}
  12.                     {% sw_icon 'sofa' style { size: 'xs'} %}
  13.                 {% endblock %}
  14.                 {% block component_delivery_information_free_seats_content %}
  15.                     {% block component_delivery_information_free_seats_content_title %}
  16.                         {{ "loyxx.labels.freeSeats"| trans |sw_sanitize }} :
  17.                     {% endblock %}
  18.                     {% block component_delivery_information_free_seats_content_value %}
  19.                         {% if product.availableStock > 0 %} {{ product.availableStock }} {% if product.packUnit %} {{ product.packUnit }}{% endif %} {% else %} 0 {% endif %}
  20.                     {% endblock %}
  21.                 {% endblock %}
  22.             </p>
  23.         {% endif %}
  24.     {% endblock %}
  25. {% endblock %}