diff --git a/core/src/main/resources/com/squarespace/template/plugins/platform/product-scarcity.html b/core/src/main/resources/com/squarespace/template/plugins/platform/product-scarcity.html index 0da08a58..a6354cfe 100644 --- a/core/src/main/resources/com/squarespace/template/plugins/platform/product-scarcity.html +++ b/core/src/main/resources/com/squarespace/template/plugins/platform/product-scarcity.html @@ -1,11 +1,5 @@ {.repeated section scarcityTemplateViews} - {.equal? @index 1} -
- {scarcityText|message qtyInStock:qtyInStock|htmltag} -
- {.or} -
- {scarcityText|message qtyInStock:qtyInStock|htmltag} -
- {.end} +
+ {scarcityText|message qtyInStock:qtyInStock|htmltag} +
{.end} diff --git a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-hidden.html b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-hidden.html index 265ff6db..bcf53676 100644 --- a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-hidden.html +++ b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-hidden.html @@ -27,13 +27,11 @@ {item|product-scarcity} :OUTPUT - - + - - + diff --git a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-and-variants.html b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-and-variants.html index 1e82d319..1975ec78 100644 --- a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-and-variants.html +++ b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-and-variants.html @@ -29,18 +29,14 @@ {item|product-scarcity} :OUTPUT -
- Only 3 left! -
- +
+ Only 3 left! +
- - - + - - + diff --git a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-escape-html.html b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-escape-html.html index 50eacd48..58f88ae9 100644 --- a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-escape-html.html +++ b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown-escape-html.html @@ -22,6 +22,6 @@ {item|product-scarcity} :OUTPUT -
- Only 3 left! <img src=x> -
\ No newline at end of file + \ No newline at end of file diff --git a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown.html b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown.html index cb431cf3..9cf9d997 100644 --- a/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown.html +++ b/core/src/test/resources/com/squarespace/template/plugins/platform/f-scarcity-default-shown.html @@ -22,6 +22,6 @@ {item|product-scarcity} :OUTPUT -
- Only 3 left! -
\ No newline at end of file + \ No newline at end of file