custom/apps/DmitsDeliveryTime/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_available  %}
  3.     {% set holidayDays=((config('DmitsDeliveryTime.config.holidaydate')|date('U')- 'now'|date('U'))/60/60/24 )|round(0, 'ceil') %}
  4.     {% if holidayDays>0  && config('DmitsDeliveryTime.config.showHolidayTextProduct')%}
  5.         {{ 'dmits.deliverytime.custom.holdiayTextProduct'|trans({
  6.             '%holidayDate%': config('DmitsDeliveryTime.config.holidaydate')|format_date('short', locale=app.request.locale)
  7.         })|raw }}
  8.     {% endif %}
  9.     {{ parent() }}
  10. {% endblock %}