Skip to content

Instantly share code, notes, and snippets.

@boldsupport
Last active October 11, 2017 17:07
Show Gist options
  • Save boldsupport/12754bd33ebf79207eed to your computer and use it in GitHub Desktop.
Save boldsupport/12754bd33ebf79207eed to your computer and use it in GitHub Desktop.
{% if product.metafields.inventory.ShappifySaleEndDate %}
<div id="shappify_count_down"></div>
<script type="text/javascript">
ShappifySaleEnds = new Date("{{ product.metafields.inventory.ShappifySaleEndDate | date: "%B %d, %Y %H:%M:%S"}}");
ShappifyToday = new Date("{{ 'now' | date: "%B %d, %Y %H:%M:%S"}}");
</script>
<script async type="text/javascript" src="//secure.apps.shappify.com/apps/discount/discount-sales-clock-js.php?shop={{ shop.permanent_domain }}"></script>
<link rel="stylesheet" type="text/css" href="//secure.apps.shappify.com/apps/discount/discount-sales-clock-css.php?shop={{ shop.permanent_domain }}" />
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment