Created
October 20, 2014 14:24
-
-
Save fditrapani/b4ea724ad30c4b01eded to your computer and use it in GitHub Desktop.
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
{% capture downloads %} | |
{% for line in line_items %} | |
{% if line.sku contains "AUD" %}1{% endif %} | |
{% if line.sku contains "EBK" %}1{% endif %} | |
{% if line.sku contains "MP3" %}1{% endif %} | |
{% if line.sku contains "VID" %}1{% endif %} | |
{% endfor %} | |
{% endcapture %} | |
{% if downloads.size > 0 %} | |
<h3>Digital File Downloads</h3> | |
<script>// window.jQuery || document.write("<script src='{{ "jquery-1.8.3.min.js" | asset_url }}'>\x3C/script>")</script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
var $downloadButton = jQuery('#downloadButton'); | |
var $loadingMessage = jQuery('#loadingMessage'); | |
$loadingMessage.empty(); | |
$loadingMessage.append('<div style="text-align:center;"><p>Your download link will appear below once your order is processed. This may take up to one minute. <br />An email will also be sent to you with a link to download your order. </p><p style="text-align:center;font-size:1.3em;color:#4679bd;">Please wait while your order is processing.</p><img src="http://cdn.shopify.com/s/files/1/0214/4032/files/ajax-loader.gif?484" /></div>'); | |
$downloadButton.hide(); | |
setTimeout(function () { | |
$downloadButton.fadeIn(300); | |
$loadingMessage.fadeOut(100); | |
}, 60000); | |
}); | |
</script> | |
<div id="loadingMessage" > | |
<p>Your file download is being processed. An email will be sent to you with a link to download your order. </p> | |
</div> | |
<div id="downloadButton" > | |
<a href="http://wordoffaith.fetchapp.com/orders?email={{ email }}&number={{ order_name }}&submit=true" style="display:block;background:#4e4e4e;color:#eee;padding:1em 1em;width:80%;margin:auto;text-align:center;font-size:1.3em;line-height:130%;text-decoration:none;">CLICK HERE to download your files</a> | |
</div> | |
<p>If you ordered an MP3 Series, the file may be delivered as a ZIP archive. Please use archive extraction software such as WinZip to unpack the archive to individual MP3 files. Download your mp3 to a COMPUTER. Attempts to download to any other electronic device will delete available downloads. *NOTE: You will be able to download the message five times within seven (7) days of purchase.</p> | |
{% endif %} | |
<p>Thanks for shopping the Word of Faith E-store.</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment