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

Commit 2483b20

Browse files
committed
Merge pull request #403 from Shopify/ajax-cart-submit
Let ajax cart submit as normal form with proper quantity
2 parents cc9804d + c54e432 commit 2483b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/ajax-cart-template.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
{% raw %}
7878
<div class="ajaxcart__qty">
7979
<button type="button" class="ajaxcart__qty-adjust ajaxcart__qty--minus" data-id="{{id}}" data-qty="{{itemMinus}}">&minus;</button>
80-
<input type="text" class="ajaxcart__qty-num" value="{{itemQty}}" min="0" data-id="{{id}}" aria-label="quantity" pattern="[0-9]*">
80+
<input type="text" name="updates[]" class="ajaxcart__qty-num" value="{{itemQty}}" min="0" data-id="{{id}}" aria-label="quantity" pattern="[0-9]*">
8181
<button type="button" class="ajaxcart__qty-adjust ajaxcart__qty--plus" data-id="{{id}}" data-qty="{{itemAdd}}">+</button>
8282
</div>
8383
{% endraw %}

0 commit comments

Comments
 (0)