From 38dfc509fc2c57fd4fca7fcce0655b9248a402d1 Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Sun, 14 Jul 2024 16:59:17 +0200 Subject: [PATCH] optimize cart drawer --- snippets/cart-drawer.liquid | 76 ++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/snippets/cart-drawer.liquid b/snippets/cart-drawer.liquid index d38dc47..0029914 100644 --- a/snippets/cart-drawer.liquid +++ b/snippets/cart-drawer.liquid @@ -227,7 +227,7 @@ - +
{%- for property in item.properties -%} {%- assign property_first_char = property.first | slice: 0 -%} @@ -253,44 +253,44 @@ {%- endfor -%}
- {% endif %} - -
- {%- if item.product.has_only_default_variant == false -%} - {%- for option in item.options_with_values -%} -
-
{{ option.name }}:
-
- {{ option.value -}} - {%- unless forloop.last %}, {% endunless %} -
-
- {%- endfor -%} - {%- endif -%} - - {%- for property in item.properties -%} - {%- assign property_first_char = property.first | slice: 0 -%} - {%- if property.last != blank and property_first_char != '_' -%} -
-
{{ property.first }}:
-
- {%- if property.last contains '/uploads/' -%} - - {{ property.last | split: '/' | last }} - - {%- else -%} - {{ property.last }} - {%- endif -%} -
-
+ {% else %} +
+ {%- if item.product.has_only_default_variant == false -%} + {%- for option in item.options_with_values -%} +
+
{{ option.name }}:
+
+ {{ option.value -}} + {%- unless forloop.last %}, {% endunless %} +
+
+ {%- endfor -%} {%- endif -%} - {%- endfor -%} -
+ + {%- for property in item.properties -%} + {%- assign property_first_char = property.first | slice: 0 -%} + {%- if property.last != blank and property_first_char != '_' -%} +
+
{{ property.first }}:
+
+ {%- if property.last contains '/uploads/' -%} + + {{ property.last | split: '/' | last }} + + {%- else -%} + {{ property.last }} + {%- endif -%} +
+
+ {%- endif -%} + {%- endfor -%} +
+ {% endif %}

{{ item.selling_plan_allocation.selling_plan.name }}

{%- endif -%}