From d323825db6c271252b1907b274f66c5c90e036ce Mon Sep 17 00:00:00 2001 From: Lana Dzyuban Date: Tue, 27 Feb 2024 02:25:40 +0000 Subject: [PATCH] Cart transform can send the title override for cart --- sections/cart-notification-product.liquid | 2 +- sections/main-cart-items.liquid | 8 ++++---- snippets/cart-drawer.liquid | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sections/cart-notification-product.liquid b/sections/cart-notification-product.liquid index 6cd6259f19f..7651197b91f 100644 --- a/sections/cart-notification-product.liquid +++ b/sections/cart-notification-product.liquid @@ -16,7 +16,7 @@ {%- if settings.show_vendor -%}

{{ item.product.vendor }}

{%- endif -%} -

{{ item.product.title | escape }}

+

{{ item.title | escape }}

{%- unless item.product.has_only_default_variant -%} {%- for option in item.options_with_values -%} diff --git a/sections/main-cart-items.liquid b/sections/main-cart-items.liquid index 8ce645d9553..a03d87ae4fe 100644 --- a/sections/main-cart-items.liquid +++ b/sections/main-cart-items.liquid @@ -102,7 +102,7 @@

{{ item.product.vendor }}

{%- endif -%} - {{ item.product.title | escape }} + {{ item.title | escape }} {%- if item.original_price != item.final_price -%}
@@ -243,7 +243,7 @@ @@ -261,13 +261,13 @@ {% endif %} step="{{ item.variant.quantity_rule.increment }}" {% # theme-check-enable %} - aria-label="{{ 'products.product.quantity.input_label' | t: product: item.product.title | escape }}" + aria-label="{{ 'products.product.quantity.input_label' | t: product: item.title | escape }}" id="Quantity-{{ item.index | plus: 1 }}" data-index="{{ item.index | plus: 1 }}" > diff --git a/snippets/cart-drawer.liquid b/snippets/cart-drawer.liquid index c1edd78171c..d0b44249d94 100644 --- a/snippets/cart-drawer.liquid +++ b/snippets/cart-drawer.liquid @@ -136,7 +136,7 @@ {%- endif -%} - {{- item.product.title | escape -}} + {{- item.title | escape -}} {%- if item.original_price != item.final_price -%} @@ -282,7 +282,7 @@ {{- 'products.product.quantity.decrease' - | t: product: item.product.title + | t: product: item.title | escape -}} @@ -302,7 +302,7 @@ {% endif %} step="{{ item.variant.quantity_rule.increment }}" {% # theme-check-enable %} - aria-label="{{ 'products.product.quantity.input_label' | t: product: item.product.title | escape }}" + aria-label="{{ 'products.product.quantity.input_label' | t: product: item.title | escape }}" id="Drawer-quantity-{{ item.index | plus: 1 }}" data-index="{{ item.index | plus: 1 }}" > @@ -310,7 +310,7 @@ {{- 'products.product.quantity.increase' - | t: product: item.product.title + | t: product: item.title | escape -}}