From e6a59e968849a0985e4ee9f4986e17b1b089320a Mon Sep 17 00:00:00 2001 From: Monica Mateiu Date: Tue, 26 Jul 2022 09:26:00 +0100 Subject: [PATCH] add vendor to popup notification when vendor checkbox is checked (#1870) --- sections/cart-notification-product.liquid | 55 ++++++++++++----------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/sections/cart-notification-product.liquid b/sections/cart-notification-product.liquid index 0dd305124ec..f4f22d1c4f8 100644 --- a/sections/cart-notification-product.liquid +++ b/sections/cart-notification-product.liquid @@ -13,34 +13,37 @@ {%- endif -%}
+ {%- if settings.show_vendor -%} +

{{ item.product.vendor }}

+ {%- endif -%}

{{ item.product.title | escape }}

-
- {%- unless item.product.has_only_default_variant -%} - {%- for option in item.options_with_values -%} -
-
{{ option.name }}:
-
{{ option.value }}
-
- {%- endfor -%} - {%- endunless -%} - {%- 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 -%} +
+ {%- unless item.product.has_only_default_variant -%} + {%- for option in item.options_with_values -%} +
+
{{ option.name }}:
+
{{ option.value }}
+
{%- endfor -%} -
+ {%- endunless -%} + {%- 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 -%} +
{%- if item.selling_plan_allocation != nil -%}

{{ item.selling_plan_allocation.selling_plan.name }}

{%- endif -%}