Skip to content

Instantly share code, notes, and snippets.

@ECkurt
ECkurt / abandoned cart recovery notification
Last active December 13, 2017 19:47
Subject: do you need any help with your order?
{% if billing_address.first_name %}Hi {{ billing_address.first_name }},
{% elsif shipping_address.first_name %}Hi {{ shipping_address.first_name }},{% endif %}
<p>Friendly check-in from {{ shop.name }}.</p>
<p>I saw you put together a shopping cart on our site but didn’t finish your order.</p>
<p>Did you need any help? Or did you have any questions about the order I can answer before you submit it?</p>
<p>If there’s anything I can do, just hit the reply button and drop me a line with any product or order questions.</p>
<p>{{ custom_message }}</p>
<p>I’ve included a list of your shopping cart contents below. You can click this link to load up the shopping cart again.</p>
<p><b><a href="{{ url }}">Your cart:</a></b></p>
<table class="row">
@ECkurt
ECkurt / Order Confirmation
Last active March 13, 2017 23:37
Subject: A warm thank you for order {{name}}
{% capture email_title %}Thank you for your purchase {% endcapture %}
{% capture email_body %}
<p>Hi {{ customer.first_name }}</p>
<p>A great big thank you for shopping with {{ shop_name }}</p>
<p>We value your opinion, and we'd love to hear your feedback</p>
<p>If you have 47 seconds to answer two quick questions, we'd be very grateful if you could <b>hit reply &amp; tell us:</b></p>
<ol style="color:#777777;">
<li>What type of person do you think would benefit most from {{ shop.name }}?</li>
<li>Why would you recommend {{ shop.name }}? In other words, what benefit would someone get from {{ shop.name }}?</li>
</ol>
@ECkurt
ECkurt / gist:bf14bb4233bfbbdd24d44e7b7399c62b
Created June 17, 2016 18:08
Shopify 404 URL redirect
{% if template == '404' %}
<meta http-equiv="refresh" content="0;URL=http://example.com/collections/404/" />
{% endif %}
@ECkurt
ECkurt / gist:d6da6a6936817e3b3f8b7e40dd0d4f21
Created June 17, 2016 15:11
Shopify Collection Tags Duplicate Content Fix
{% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ collection.url }}" />
{% else %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
@ECkurt
ECkurt / Sticky Menu CSS
Last active August 29, 2015 13:56
Crazy Responsive Sticky Menu
body {
font-size: 16px;
line-height: 1.4;
margin: 0;
font-family: Georgia, Times, "Times New Roman", serif;
background-color: #EEE;
}
.clearfix:before,.clearfix:after {content: " "; display: table;}
.clearfix:after {clear: both;}