custom/plugins/ProcAvailableStock/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. {# Anfang geƤnderter Block #}
  3. {% block component_delivery_information %}
  4.     {# @var product \Shopware\Core\Content\Product\ProductEntity #}
  5.     {% if page is defined and page.product is defined %}
  6.         {% set product = page.product %}
  7.     {% endif %}
  8.     <div class="product-delivery-information">
  9.         {% if context.customer %}
  10.             {% if product.stock >= 1 %}
  11.                 {% block component_delivery_information_available %}
  12.                     <link itemprop="availability" href="http://schema.org/InStock"/>
  13.                     <p class="delivery-information delivery-available">
  14.                         <span class="delivery-status-indicator bg-success"></span>
  15.                         {{ "proc.detail.deliveryTimeAvailable"|trans|sw_sanitize }}
  16.                     </p>
  17.                 {% endblock %}
  18.             {% else %}
  19.                 {% block component_delivery_information_restock %}
  20.                     <link itemprop="availability" href="http://schema.org/LimitedAvailability"/>
  21.                     <p class="delivery-information delivery-restock">
  22.                         <span class="delivery-status-indicator bg-warning"></span>
  23.                         {{ "proc.detail.deliveryTimeNotAvailable"|trans|sw_sanitize }}
  24.                     </p>
  25.                 {% endblock %}
  26.             {% endif %}
  27.         {% endif %}
  28.     </div>
  29. {% endblock %}
  30. {# Ende geƤnderter Block #}