themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_outOfStock.html.twig line 1

Open in your IDE?
  1. {{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
  2. {% if product.simple and product.variants.first is defined %}
  3.     {% if not sylius_inventory_is_available(product.variants.first) %} 
  4.         {% if product.variants.first.restockingDate is not null %}
  5.             {% if product.variants.first.restockingDate|date('U') > 'now'|date('U') %}
  6.             <span class="text-danger">{{ 'app.product.the_product_will_be_available_on'|trans }} {{ product.variants.first.restockingDate|date('app.product.restocking_date_format'|trans) }}</span>
  7.             {% endif %}
  8.         {% endif %}
  9.     {% endif %}
  10. {% endif %}