custom/plugins/DmSanettaTheme/src/Resources/views/storefront/page/checkout/_page.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/_page.html.twig' %}
  2. {% block page_checkout_container %} 
  3.     {% if controllerAction != 'cartPage' %}
  4.         {% sw_include '@SanettaTheme/storefront/page/checkout/dm-stepper.html.twig' %}
  5.     {% endif %}
  6.     {{ parent() }}
  7.     {% if controllerAction == 'cartPage' %}
  8.         <div id="hr-recom-k66b49ad06017481e847f78f9"></div>
  9.     {% endif %}
  10. {% endblock %}
  11. {% block base_flashbags_checkout %}
  12.     <div class="flashbags">
  13.         {% if controllerAction == 'cartPage' %}
  14.             {% set deliverySummary = page.cart.price.positionPrice %}
  15.             {% set deliveryInfo = '' %}
  16.             {% set freeShippingLimit = 80.0 %}
  17.             {% if deliverySummary <= freeShippingLimit %}
  18.                 {% set deliveryInfo = 'sanetta.cart.deliveryInformationDifferenceStart'|trans|sw_sanitize %}
  19.             {% endif %}
  20.             {% if deliveryInfo != '' %}
  21.                 <div role="alert" class="alert alert-info alert-has-icon">
  22.                     <span class="icon icon-info">
  23.                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#758CA3" fill-rule="evenodd" d="M24 12c0 6.6274-5.3726 12-12 12S0 18.6274 0 12 5.3726 0 12 0s12 5.3726 12 12zM12 2C6.4772 2 2 6.4772 2 12s4.4772 10 10 10 10-4.4772 10-10S17.5228 2 12 2zm0 13c.5523 0 1 .4477 1 1s-.4477 1-1 1-1-.4477-1-1 .4477-1 1-1zm-1-7c0-.5523.4477-1 1-1s1 .4477 1 1v5c0 .5523-.4477 1-1 1s-1-.4477-1-1V8z"/></svg>
  24.                     </span>
  25.                     <div class="alert-content-container">
  26.                         <div class="alert-content">
  27.                             {{ deliveryInfo }} {{ (freeShippingLimit - deliverySummary)|number_format(2, ',', '') }} {{ 'sanetta.cart.deliveryInformationDifferenceEnd'|trans|sw_sanitize }}
  28.                         </div>
  29.                     </div>
  30.                 </div>
  31.             {% endif %}
  32.         {% endif %}
  33.         {% for type, messages in app.flashes %}
  34.             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %}
  35.         {% endfor %}
  36.     </div>
  37. {% endblock %}