custom/plugins/EmovaTheme/src/Resources/views/storefront/page/checkout/cart/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/_pageforcart.html.twig' %}
  2. {% block base_head %}
  3.     {% sw_include '@Storefront/storefront/page/checkout/cart/meta.html.twig' %}
  4. {% endblock %}
  5. {% block page_checkout_container %}
  6.     {% if page.cart.lineItems.count is same as(0) %}
  7.         {% sw_include '@Storefront/storefront/utilities/alert-friendly.html.twig' with {
  8.             type: "info",
  9.             heading: "emova.priceOfferOutdatedHeading"|trans|sw_sanitize,
  10.             content: "emova.priceOfferOutdatedText"|trans|sw_sanitize,
  11.             target: { link: "/", message: "emova.priceOfferOutdatedButton"|trans|sw_sanitize }
  12.         } %}
  13.         {% set messages = app.flashes %}
  14.         {% if messages.danger|length > 0 %}
  15.             <div class="flashbags">
  16.                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: 'danger', list: messages.danger } %}
  17.             </div>
  18.         {% endif %}
  19.     {% else %}
  20.         {{ parent() }}
  21.     {% endif %}
  22. {% endblock %}
  23. {% block page_checkout_main_header %}
  24.     {% block page_checkout_cart_header %}
  25.         {% sw_include '@Storefront/storefront/component/checkout/step-by-step-bar.html.twig' with {'step': 2} %}
  26.     {% endblock %}
  27. {% endblock %}
  28. {% block page_checkout_main_content %}
  29.     {% block page_checkout_cart %}
  30.        {% set upsellLineItem = null %}
  31.        {% set mainLineItem = null %}
  32.        {% for lineItem in page.cart.lineItems %}
  33.              {% set cs = lineItem.payload.customFields %}
  34.              {% if cs %}
  35.                 {% set upsell = cs["ev_produktdaten_upsell"] %}
  36.                 {% if upsell == true %}
  37.                    {% set upsellLineItem = lineItem %}
  38.                 {% else %}
  39.                    {% set mainLineItem = lineItem %}
  40.                 {% endif %}
  41.              {% endif %}
  42.        {% endfor %}
  43.        {% block page_checkout_cart_product_table %}
  44.           {% block page_checkout_cart_table_items %}
  45.             {% for lineItem in page.cart.lineItems %}
  46.                {% if loop.first %}
  47.                   {% sw_include '@Storefront/storefront/page/checkout/cart/index-inner.html.twig' %} 
  48.                {% endif %}
  49.             {% endfor %}
  50.            {% endblock %}
  51.        {% endblock %}
  52.    
  53.        {% block page_checkout_cart_hidden_line_items_information %}
  54.             {% sw_include '@Storefront/storefront/component/checkout/hidden-line-items-information.html.twig' with {
  55.                 cart: page.cart,
  56.                 lineItems: page.cart.lineItems
  57.             } %}
  58.        {% endblock %}
  59.        {% block page_checkout_cart_add_product_and_shipping %}
  60.        {% endblock %}
  61.    {% endblock %}
  62.    <style>
  63.         .error-message{
  64.             color: var(--red);
  65.             padding: 0 26px;
  66.             display: flex;
  67.         }
  68.    </style>
  69. {% endblock %}
  70. {% block page_checkout_aside_actions %}
  71. {% endblock %}