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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
  2. {% block page_checkout_cart_table_items %}
  3.     {% for lineItem in page.cart.lineItems %}
  4.         {% if not lineItem.payload.xconfig_accessory %}
  5.             {% if lineItem.payload.xconfig == "1" %}
  6.                 {% sw_include '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  7.                 {% set variantId = lineItem.payload.xVariantId %}
  8.                 {% set accessory_count = 0 %}
  9.                 {% for accessoryItem in page.cart.lineItems %}
  10.                     {% if accessoryItem.payload.xconfig_accessory %}
  11.                         {% if accessoryItem.payload.variant_relation == variantId %}
  12.                             {% set accessory_count = accessory_count + 1 %}
  13.                             {% if accessory_count == 1 %}
  14.                                 <div class="accessoryCardItem-headline">Ausgewähltes Zubehör für {{ lineItem.payload.productNumber}}</div>
  15.                             {% endif %} 
  16.                             {% sw_include '@XioniXconfig//storefront/page/checkout/xcheckout-accessory-item.html.twig' with { lineItem: accessoryItem } %}
  17.                         {% endif %} 
  18.                     {% endif %} 
  19.                 {% endfor %}
  20.             {% else %}
  21.                 {% block page_checkout_cart_table_item %}
  22.                     {% block page_checkout_item %}
  23.                         {% sw_include '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  24.                     {% endblock %}
  25.                 {% endblock %}        
  26.             {% endif %}
  27.         {% endif %}    
  28.     {% endfor %}
  29. {% endblock %}