diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a48ff872d..d1a7f4b46c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added integrarion of storefront-account-payments lib [#2288][https://github.com/bigcommerce/cornerstone/pull/2288] - Bump Stencil utils to 6.13.0 [#2300][https://github.com/bigcommerce/cornerstone/pull/2300] - Removed non-working functionality from schema.json [#2301][https://github.com/bigcommerce/cornerstone/pull/2301] +- Refactored `hide_price_from_guests` logic around `show_cart_action` use [#2304](https://github.com/bigcommerce/cornerstone/pull/2304) ## 6.7.0 (11-03-2022) - Fixed escaping on created store account confirm message. [#2265]https://github.com/bigcommerce/cornerstone/pull/2265 diff --git a/templates/components/products/card.html b/templates/components/products/card.html index ad86e2d1c6..59f49a277f 100644 --- a/templates/components/products/card.html +++ b/templates/components/products/card.html @@ -92,23 +92,21 @@ {{lang 'products.compare'}} {{/if}} - {{#or customer (unless settings.hide_price_from_guests)}} - {{#if show_cart_action}} - {{#if has_options}} - {{lang 'products.choose_options'}} - {{/if}} - {{#if pre_order}} - {{lang 'products.pre_order'}} - {{/if}} - {{#if add_to_cart_url }} - {{lang 'products.add_to_cart'}} - - {{/if}} - {{#if out_of_stock_message }} - {{out_of_stock_message}} - {{/if}} + {{#if show_cart_action}} + {{#if has_options}} + {{lang 'products.choose_options'}} {{/if}} - {{/or}} + {{#if pre_order}} + {{lang 'products.pre_order'}} + {{/if}} + {{#if add_to_cart_url }} + {{lang 'products.add_to_cart'}} + + {{/if}} + {{#if out_of_stock_message }} + {{out_of_stock_message}} + {{/if}} + {{/if}} diff --git a/templates/components/products/list-item.html b/templates/components/products/list-item.html index e08b71cd99..6c04eb6b5d 100644 --- a/templates/components/products/list-item.html +++ b/templates/components/products/list-item.html @@ -95,23 +95,23 @@