Skip to content

Commit

Permalink
STENCIL-3277 fix amp product-options
Browse files Browse the repository at this point in the history
  • Loading branch information
mcampa committed Mar 16, 2017
1 parent 07c684d commit 5a4368c
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions templates/components/amp/products/product-options.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<div class="productView-options">
<form class="form" method="post" action="{{product.cart_url}}" enctype="multipart/form-data" data-cart-item-add target="_self">
<input type="hidden" name="action" value="add">
<input type="hidden" name="product_id" value="{{product.id}}"/>
{{#each product.customizations}}
{{{dynamicComponent 'components/products/customizations'}}}
{{/each}}
<div data-product-option-change style="display:none;">
{{#each product.options}}
{{{dynamicComponent 'components/products/options'}}}
<div class="productView">
<div class="productView-options">
<form class="form" method="post" action="{{product.cart_url}}" enctype="multipart/form-data" data-cart-item-add target="_self">
<input type="hidden" name="action" value="add">
<input type="hidden" name="product_id" value="{{product.id}}"/>
{{#each product.customizations}}
{{{dynamicComponent 'components/products/customizations'}}}
{{/each}}
</div>
{{#if product.event_date}}
{{> components/products/event-date}}
{{/if}}
{{#if product.can_purchase}}
{{> components/products/add-to-cart}}
{{/if}}
<div class="loadingOverlay"></div>
</form>
<div data-product-option-change style="display:none;">
{{#each product.options}}
{{{dynamicComponent 'components/products/options'}}}
{{/each}}
</div>
{{#if product.event_date}}
{{> components/products/event-date}}
{{/if}}
{{#if product.can_purchase}}
{{> components/products/add-to-cart}}
{{/if}}
<div class="loadingOverlay"></div>
</form>
</div>
</div>

0 comments on commit 5a4368c

Please sign in to comment.