diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cbd1f0d1d..0616bdd352 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Draft +- Load amp social share JS only when we have share icons enabled. [#968](https://github.com/bigcommerce/cornerstone/pull/968) ## 1.6.2 (2017-03-15) - Fix a bug that was not updating price and weight when an option is selected [#963](https://github.com/bigcommerce/cornerstone/pull/963) diff --git a/templates/components/amp/products/product-view.html b/templates/components/amp/products/product-view.html index adfe3e8210..461bc428b6 100644 --- a/templates/components/amp/products/product-view.html +++ b/templates/components/amp/products/product-view.html @@ -65,11 +65,13 @@

Description

{{#if settings.show_product_reviews}} {{> components/amp/products/reviews reviews=product.reviews product=product urls=urls}} {{/if}} -
-

Share

-
- {{> components/amp/common/share }} -
-
+ {{#if settings.add_this.buttons}} +
+

Share

+
+ {{> components/amp/common/share }} +
+
+ {{/if}} diff --git a/templates/pages/amp/product.html b/templates/pages/amp/product.html index 1a6bbfc3cc..27d79a8c7d 100644 --- a/templates/pages/amp/product.html +++ b/templates/pages/amp/product.html @@ -13,9 +13,11 @@ {{#partial "amp-scripts"}} - + {{#if settings.add_this.buttons}} + + {{/if}} {{#if product.options}} - + {{/if}} {{#if product.videos}}