Created
November 26, 2012 22:54
-
-
Save Tetsuro/4151207 to your computer and use it in GitHub Desktop.
Shopify Order Form - All products in shop
This file contains 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 %} | |
First, create a smart collection that add all products in your shop into it | |
(ex: price is greater than 0), and call it "All". | |
{% endcomment %} | |
<form> | |
<table cellspacing="0" cellpadding="0" border="1"> | |
<tbody> | |
<tr id="cart-headlines"> | |
<td class="cart-thumb"> </td> | |
<td class="cart-title">Product Title</td> | |
<td class="cart-unitprice">Price</td> | |
<td class="cart-quantity">Quantity</td> | |
</tr> | |
{% for product in collections.all.products %} | |
<tr> | |
<td > | |
<a href="" title="View Page"> | |
<img src="{{ product.featured_image | product_img_url: 'thumb' }}" alt="{{ product.title | escape }}" /> | |
</a> | |
</td> | |
<td > | |
<a href="{{ product.url}}" title="View {{item.title | escape }} Page"> | |
{{ product.title | truncatewords:5 }} | |
</a> | |
</td> | |
<td> | |
{{ product.variants.first.price | money }} | |
</td> | |
<td> | |
<input type="hidden" value="{{ product.variants.first.id }}" id="variant-{{ forloop.index0 }}"/> | |
<input type="text" size="4" value="" id="quantity-{{ forloop.index0 }}" tabindex="1"/> | |
</td> | |
</tr> | |
{% endfor %} | |
</tbody> | |
</table> | |
<p style='text-align:right;'> | |
<input type="submit" value="Add!" id="submit-table"/> | |
</p> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment