From 43222733ccca200fda373787c6825a84fdb672e9 Mon Sep 17 00:00:00 2001 From: David Payne Date: Wed, 6 Jun 2018 13:36:38 -0700 Subject: [PATCH] fix(storefront): STRF-4866 Fix missing quantity/selection for AMP product Page --- CHANGELOG.md | 1 + .../components/amp/products/product-view.html | 18 +++++++----------- templates/pages/amp/product.html | 4 +--- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e805543164..9b1280f7e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Draft +- Fix quantity edit on Simple Product AMP pages. [#1257](https://github.com/bigcommerce/cornerstone/pull/1257) ## 2.1.0 (2018-06-01) - Add Newsletter summary section to subscription form. [#1248](https://github.com/bigcommerce/cornerstone/pull/1248) diff --git a/templates/components/amp/products/product-view.html b/templates/components/amp/products/product-view.html index 0f864a5272..2e42bcc5f8 100644 --- a/templates/components/amp/products/product-view.html +++ b/templates/components/amp/products/product-view.html @@ -28,17 +28,13 @@
{{#or customer (if theme_settings.restrict_to_login '!==' true)}} - {{#if product.options}} - -
Choose Options
-
- {{else}} - Add To Cart - {{/if}} + +
Choose Options
+
{{/or}} {{#if product.out_of_stock}} {{#if product.out_of_stock_message}} diff --git a/templates/pages/amp/product.html b/templates/pages/amp/product.html index f618dd458c..73aa39a96f 100644 --- a/templates/pages/amp/product.html +++ b/templates/pages/amp/product.html @@ -16,9 +16,7 @@ {{#if settings.add_this.buttons}} {{/if}} - {{#if product.options}} - - {{/if}} + {{#if product.videos}} {{/if}}