Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #403 from Shopify/ajax-cart-submit
Browse files Browse the repository at this point in the history
Let ajax cart submit as normal form with proper quantity
  • Loading branch information
cshold committed Apr 30, 2015
2 parents cc9804d + c54e432 commit 2483b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/ajax-cart-template.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{% raw %}
<div class="ajaxcart__qty">
<button type="button" class="ajaxcart__qty-adjust ajaxcart__qty--minus" data-id="{{id}}" data-qty="{{itemMinus}}">&minus;</button>
<input type="text" class="ajaxcart__qty-num" value="{{itemQty}}" min="0" data-id="{{id}}" aria-label="quantity" pattern="[0-9]*">
<input type="text" name="updates[]" class="ajaxcart__qty-num" value="{{itemQty}}" min="0" data-id="{{id}}" aria-label="quantity" pattern="[0-9]*">
<button type="button" class="ajaxcart__qty-adjust ajaxcart__qty--plus" data-id="{{id}}" data-qty="{{itemAdd}}">+</button>
</div>
{% endraw %}
Expand Down

0 comments on commit 2483b20

Please sign in to comment.