This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
HTML product form that can add multiple products/quantities in one submit | |
The values are each a variant ID | |
{% endcomment %} | |
<form action="/cart/add" method="post"> | |
<input type="hidden" name="items[0][id]" value="32387308847153"> | |
<input type="number" name="items[0][quantity]" value="1"> | |
<input type="hidden" name="items[0][properties][_Gift wrap]" value="No"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* simply add this file to theme.liquid in order to have the /cart page update | |
* using ajax. the only dependency is theme.jQuery | |
*/ | |
window.cartPage = window.cartPage || {}; | |
(function($){ | |
var $ = jQuery = $; |