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 b615f67
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 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>
<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 b615f67

Please sign in to comment.