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
# put this in 'serve_file' | |
if File.exists?("#{template_path}/#{filename}.liquid") | |
filepath = "#{template_path}/#{filename}.liquid" | |
else | |
filepath = "#{template_path}/#{filename}" | |
end | |
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
def zip(theme, location) | |
begin | |
FileUtils.mkdir_p(File.dirname(location)) | |
FileUtils.rm(location) if File.exists?(location) | |
if RUBY_PLATFORM =~ /darwin/ | |
Dir.chdir(THEMES) do | |
system("zip -r \"#{location}\" #{theme}/ -x \"*.svn*\" -x \"*.git*\"") |
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
<script type="text/javascript"> | |
// <![CDATA[ | |
Forexd.init("{{ shop.currency }}"); | |
jQuery(document).ready(function($) { | |
$('#site-currency').val(Forexd.currency()).show(); | |
$('#site-currency').change(function() { | |
Forexd.currency($(this).val()); // save new currency | |
document.location.href = document.location.href; // reload the page | |
}); |
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 %} | |
You can use this snippet to display categories on the front page. Turn on this snippet using theme settings. | |
{% endcomment %} | |
{% if linklists.categories.links.size > 0 %} | |
<div id="products"> | |
{% for link in linklists.categories.links %} | |
<div class="product {% cycle 'first_col', '', '', 'last_col' %}"> | |
{% assign collection = link.object %} | |
{% if collection.products.size > 0 %} |
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
<script type="text/javascript"> | |
Shopify.money_format = "{{shop.money_format}}"; | |
</script> |
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
if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) { | |
$('a.sf-with-ul').each(function() { | |
$(this).attr('data-clicked', 'false'); | |
$(this).click(function(e) { | |
if ($(this).attr('data-clicked') === 'false') { | |
e.preventDefault(); | |
$(this).attr('data-clicked', 'true'); | |
return false; | |
} | |
return true; |
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 %} | |
BookThatApp auto installed snippet. Changes made to this file will be lost if installed again. | |
{% endcomment %} | |
{% if product.metafields.bookthatapp.product_id %} | |
<table id="events" style="width:100%"> | |
<tr> | |
<th colspan="4">Upcoming Classes</th> | |
</tr> |
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
<script type="text/javascript"> | |
bta_callbacks = {}; | |
// invoked after availability data from BookThatApp is loaded via Ajax. | |
bta_callbacks["loaded"] = function(data) { | |
var onStartSelect = $('#booking-start').datepicker('option', 'onSelect'), | |
onFinishSelect = $('#booking-finish').datepicker('option', 'onSelect'); | |
$('#booking-start').datepicker('option', 'onSelect', function(date) { | |
onStartSelect.call(this, date); |
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
{% for attribute in attributes %}{{ attribute | first | replace: 'booking-time', 'Time' | replace: 'booking', 'Pickup' }}: {% if attribute.first == 'booking-time' %}{% assign t = attribute.last | split: ':' %}{% assign hour = t[0] | minus:0 %}{% if hour > 12 %}{{ t[0] | minus:12 }}:{{ t[1] }} pm{% else %}{{ t[0] }}:{{ t[1] }} am{% endif %}{% else %}{{ attribute | last }}{% endif %}{% endfor %} |
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
{{ shop_name }}, | |
{{ billing_address.name }} placed a new order with you today ({{ date | date: "%b %d %I:%M%p" }}). | |
Payment method: | |
{{ gateway }} | |
Delivery method: | |
{% for shipping_method in shipping_methods %}{{ shipping_method.title }} | |
{% endfor %} |
OlderNewer