Last active
October 6, 2015 03:58
-
-
Save Tetsuro/2932738 to your computer and use it in GitHub Desktop.
Order Form liquid template
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
{% assign linklist = linklists['order-form'] %} | |
<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 link in linklist.links %} | |
<tr> | |
<td > | |
<a href="" title="View Page"> | |
<img src="{{ link.object.featured_image | product_img_url: 'thumb' }}" alt="{{ link.object.title | escape }}" /> | |
</a> | |
</td> | |
<td > | |
<a href="{{ link.object.url}}" title="View {{item.title | escape }} Page"> | |
{{ link.object.title | truncatewords:5 }} | |
</a> | |
</td> | |
<td> | |
{{ link.object.variants.first.price | money }} | |
</td> | |
<td> | |
<input type="hidden" value="{{ link.object.variants.first.id }}" id="variant-{{ forloop.index0 }}"/> | |
<input type="number" id="quantity-{{ forloop.index0 }}" tabindex="1" {% if link.object.variants.first.inventory_management != '' and link.object.variants.first.inventory_policy == 'deny' %}max="{{ link.object.variants.first.inventory_quantity }}" {% endif %} | |
{% unless link.object.variants.first.available %} | |
disabled="disabled" | |
{% endunless %} /> </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