From 3bf0eaf4b78d62ab93cac611f6c6400771082439 Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Wed, 24 Jul 2019 21:54:06 -0500 Subject: [PATCH] Fix bug where image is not clickable in product card --- CHANGELOG.md | 1 + templates/components/products/card.html | 22 ++++++++-------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93da9a714e..11bc51a524 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Prevent heading from displaying when no price ranges are available [#1545](https://github.com/bigcommerce/cornerstone/pull/1545) - Utilize srcset for responsive images [#1507](https://github.com/bigcommerce/cornerstone/pull/1507) - Clean up conditional logic in a couple component templates [#1547](https://github.com/bigcommerce/cornerstone/pull/1547) +- Remove "demo" product conditional logic [#1551](https://github.com/bigcommerce/cornerstone/pull/1551) ## 3.5.1 (2019-06-24) - Fix conditional logic in share.html [#1522](https://github.com/bigcommerce/cornerstone/pull/1522) diff --git a/templates/components/products/card.html b/templates/components/products/card.html index 51a33e14c5..ee7b1b6815 100644 --- a/templates/components/products/card.html +++ b/templates/components/products/card.html @@ -16,7 +16,7 @@ {{/if}} {{/or}} - {{#if demo}}{{/if}} +
{{> components/common/responsive-img image=image @@ -26,19 +26,17 @@ default_image=theme_settings.default_image_product }}
- {{#if demo}}
{{/if}} +
{{#unless hide_product_quick_view}} {{#if theme_settings.show_product_quick_view}} - {{#unless demo}} - {{#if settings.data_tag_enabled}} - {{lang 'products.quick_view'}} - {{else}} - {{lang 'products.quick_view'}} - {{/if}} - {{/unless}} + {{#if settings.data_tag_enabled}} + {{lang 'products.quick_view'}} + {{else}} + {{lang 'products.quick_view'}} + {{/if}} {{/if}} {{/unless}} {{#if show_compare}} @@ -77,11 +75,7 @@

{{brand.name}}

{{/if}}

- {{#if demo}} - {{name}} - {{else}} - {{name}} - {{/if}} + {{name}}