Skip to content

Instantly share code, notes, and snippets.

View Tetsuro's full-sized avatar

tetchi Tetsuro

View GitHub Profile
<div id="search" class="right">
<form action="/search" method="get" id="search">
<input type="search" id="searchtext" name="q" class="filled" />
</form>
</div>
@Tetsuro
Tetsuro / page.order-form.liquid
Last active October 6, 2015 03:58
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>
@Tetsuro
Tetsuro / jquery.order-form.js.liquid
Last active October 6, 2015 04:07
Order form jQuery script
<script type="text/javascript" charset="utf-8">
//<![CDATA[
// Including jQuery conditionnally.
if (typeof jQuery === 'undefined') {
document.write({{ "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" | script_tag | json }});
document.write('<script type="text/javascript">jQuery.noConflict();<\/script>');
}
//]]>
</script>
@Tetsuro
Tetsuro / jquery.t-and-c.js.liquid
Last active October 6, 2015 06:27
jQuery for Terms and Conditions
<script type="text/javascript" charset="utf-8">
//<![CDATA[
// Including jQuery conditionnally.
if (typeof jQuery === 'undefined') {
document.write({{ "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" | script_tag | json }});
document.write('<script type="text/javascript">jQuery.noConflict();<\/script>');
}
//]]>
</script>
{% for product in collection.products %}
<div class="product {% cycle '', '', '','last' %}">
<div class="product-image">
<a href="{{ product.url | within: collection }}" alt="{{ product.title}}">
<img src="{{ product.featured_image | product_img_url: 'large' }}" alt="{{ product.title }}" />
</a>
</div>
@Tetsuro
Tetsuro / gist:4151207
Created November 26, 2012 22:54
Shopify Order Form - All products in shop
{% 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">&nbsp;</td>
@Tetsuro
Tetsuro / CSS for Adaptable to make it 3 per row
Created December 13, 2012 18:39
CSS for Adaptable theme to make thumbnails 3/row
.artwork-collection .product{ margin-bottom:120px;}
.artwork-collection .product-image td, .artwork-collection .product{width:286px; height: 400px;}
.artwork-collection .product-image img{width:286px;}
.artwork-collection .product-overlay, .artwork-collection .product-overlay a:hover, .artwork-collection .product-overlay a, .artwork-collection .product-image{width:286px; height:400px;}
.artwork-collection .product-details{padding-top:418px;}
@Tetsuro
Tetsuro / Donation Script
Last active April 13, 2020 17:54
Script for adding a donation product via AJAX
<script type="text/javascript" charset="utf-8">
//<![CDATA[
// Including jQuery conditionnally.
if (typeof jQuery === 'undefined') {
document.write({{ "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" | script_tag | json }});
document.write('<script type="text/javascript">jQuery.noConflict();<\/script>');
}
//]]>
</script>
@Tetsuro
Tetsuro / gist:4409175
Created December 29, 2012 20:27
table snippet for part picker
{% assign linklist = linklists['part-picker'] %}
<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>
@Tetsuro
Tetsuro / gist:4409215
Created December 29, 2012 20:39
Script for parts picker
<script type="text/javascript" charset="utf-8">
//<![CDATA[
// Including jQuery conditionnally.
if (typeof jQuery === 'undefined') {
document.write({{ "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" | script_tag | json }});
document.write('<script type="text/javascript">jQuery.noConflict();<\/script>');
}
//]]>
</script>