From d495505ad818eb003ac8e51d2c836c465450fc29 Mon Sep 17 00:00:00 2001 From: "Jason Zamora (jz)" Date: Mon, 11 Jun 2018 15:31:04 -0500 Subject: [PATCH] fix(storefront): STRF-4701 - Some final cleanup that was pointed out in PR review: indention correction and removing language file properties that are no longer being used in the template. fix(catalog): STRF-4701 - Found some tests breaking due to some missing class names. Updated class names in the pricing to make sure they are consistent among the various code paths. Made sure the "price saved" element is always present (but maybe not visible). Added some comments. A couple INPUT id parameter updates that were missed when LABEL elements were updated - caused product list to not function on PDP. --- .../products/options/product-list.html | 4 +-- .../components/products/price-range.html | 33 +++++++++++++------ templates/components/products/price.html | 32 ++++++++++-------- 3 files changed, 43 insertions(+), 26 deletions(-) diff --git a/templates/components/products/options/product-list.html b/templates/components/products/options/product-list.html index ba0ce05ee8..5a0311c6cf 100644 --- a/templates/components/products/options/product-list.html +++ b/templates/components/products/options/product-list.html @@ -51,7 +51,7 @@ type="radio" name="attribute[{{id}}]" value="0" - id="attribute_0_{{id}}" + id="attribute_productlist_0_{{id}}" {{#if defaultValue '==' 0}}checked{{/if}}> {{/unless}} @@ -61,7 +61,7 @@ type="radio" name="attribute[{{../id}}]" value="{{id}}" - id="attribute_{{id}}" + id="attribute_productlist_{{id}}" {{#if selected}}checked{{/if}} {{#if ../required}}required{{/if}}> diff --git a/templates/components/products/price-range.html b/templates/components/products/price-range.html index 427d564f8d..d1577e250c 100644 --- a/templates/components/products/price-range.html +++ b/templates/components/products/price-range.html @@ -1,5 +1,5 @@ {{#and price.retail_price_range.min.with_tax price.retail_price_range.max.with_tax}} -
+
{{theme_settings.pdp-retail-price-label}} {{price.retail_price_range.min.with_tax.formatted}} - {{price.retail_price_range.max.with_tax.formatted}}
@@ -14,6 +14,7 @@ {{/if}} {{/and}} {{#and price.price_range.min.with_tax price.price_range.max.with_tax}} + {{!-- Never display the "non-sales price" if there is a price range to be shown, but we do want the element on the page --}}