From 1f97d96ee989f62485cb8b530b4ee48fbb3502ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cbc-yevhenii-buliuk=E2=80=9D?= <“yevhenii.buliuk@bigcommerce.com”> Date: Fri, 23 Jul 2021 12:10:51 +0300 Subject: [PATCH] fixed aria-label for list-item view v.2 --- templates/components/products/card.html | 12 ++++++++---- templates/components/products/list-item.html | 11 ++++++++++- templates/components/products/product-view.html | 13 ++++++++++++- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/templates/components/products/card.html b/templates/components/products/card.html index 89ac71d304..bcc9a019aa 100644 --- a/templates/components/products/card.html +++ b/templates/components/products/card.html @@ -17,11 +17,15 @@ {{/each}}" data-product-brand="{{brand.name}}" data-product-price=" - {{#if price.with_tax}} - {{price.with_tax.value}} + {{#or customer (if theme_settings.restrict_to_login '!==' true)}} + {{#if price.with_tax}} + {{price.with_tax.value}} + {{else}} + {{price.without_tax.value}} + {{/if}} {{else}} - {{price.without_tax.value}} - {{/if}}" + Log in for pricing + {{/or}}" {{/if}}>
{{#if stock_level '===' 0}} diff --git a/templates/components/products/list-item.html b/templates/components/products/list-item.html index cd280a53f8..ace26dba68 100644 --- a/templates/components/products/list-item.html +++ b/templates/components/products/list-item.html @@ -1,5 +1,14 @@ {{#if settings.data_tag_enabled}} -
+
{{else}}
{{/if}} diff --git a/templates/components/products/product-view.html b/templates/components/products/product-view.html index 9ce3fe3255..74c904d843 100644 --- a/templates/components/products/product-view.html +++ b/templates/components/products/product-view.html @@ -1,4 +1,15 @@ -
+
{{#each product.reviews.messages}} {{#if error}} {{> components/common/alert/alert-error error}}