custom/plugins/EsmComputer/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.     {# @var product \Shopware\Core\Content\Product\ProductEntity #}
  4.     {% if page is defined and page.product is defined %}
  5.         {% set product = page.product %}
  6.     {% endif %}
  7.     <div class="product-delivery-information">
  8.         {% if product.shippingFree %}
  9.             {% block component_delivery_information_shipping_free %}
  10.                 {{ parent() }}
  11.             {% endblock %}
  12.         {% endif %}
  13.         {% if not product.active %}
  14.             {% block component_delivery_information_not_available %}
  15.                 {{ parent() }}
  16.             {% endblock %}
  17.         {% elseif product.releaseDate and product.releaseDate|date('U') > "now"|date('U') %}
  18.             {% block component_delivery_information_pre_order %}
  19.                 {{ parent() }}
  20.             {% endblock %}
  21.         {% elseif product.availableStock >= product.minPurchase %}
  22.             {% block component_delivery_information_available %}
  23.                 <link itemprop="availability" href="http://schema.org/InStock"/>
  24.                 <p class="delivery-information delivery-available">
  25.                     <span class="delivery-status-indicator bg-success"></span>
  26.                     {{ "detail.deliveryTimeAvailable"|trans({
  27.                         '%stock%': product.availableStock
  28.                     })|sw_sanitize }}
  29.                     <span class="extended-delivery--information">
  30.                         <br/>
  31.                         <span class="delivery--text delivery--text-available" data-tooltip="true" title="{{ 'general.extendedWarrantyText'|trans }}">
  32.                             <i class="fas fa-check"></i>
  33.                             {{ 'general.extendedWarranty'|trans|raw }}
  34.                         </span>
  35.                         <br/>
  36.                         <span class="delivery--text delivery--text-available" data-tooltip="true" title="{{ 'general.environmentallyFriendlyText'|trans }}">
  37.                             <i class="fas fa-check"></i>
  38.                             {{ 'general.environmentallyFriendly'|trans }}
  39.                         </span>
  40.                         <br/>
  41.                         <span class="delivery--text delivery--text-available" data-tooltip="true" title="{{ 'general.easyPayingText'|trans }}">
  42.                             <i class="fas fa-check"></i>
  43.                             {{ 'general.easyPaying'|trans }}
  44.                         </span>
  45.                         <br/>
  46.                     </span>
  47.                 </p>
  48.             {% endblock %}
  49.         {% elseif product.isCloseout and product.availableStock < product.minPurchase %}
  50.             {% block component_delivery_information_soldout %}
  51.                 {{ parent() }}
  52.             {% endblock %}
  53.         {% elseif product.availableStock < product.minPurchase and product.deliveryTime and product.restockTime %}
  54.             {% block component_delivery_information_restock %}
  55.                 {{ parent() }}
  56.             {% endblock %}
  57.         {% endif %}
  58.     </div>
  59. {% endblock %}