Skip to content

Instantly share code, notes, and snippets.

@Tetsuro
Last active October 6, 2015 03:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Tetsuro/2932738 to your computer and use it in GitHub Desktop.
Save Tetsuro/2932738 to your computer and use it in GitHub Desktop.
Order Form liquid template
{% assign linklist = linklists['order-form'] %}
<form>
<table cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr id="cart-headlines">
<td class="cart-thumb">&nbsp;</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