Last active
October 11, 2017 17:07
-
-
Save boldsupport/12754bd33ebf79207eed to your computer and use it in GitHub Desktop.
Product Discount, linked from: https://support.boldcommerce.com/hc/en-us/articles/201573255-Product-Discount-Snippet-Files
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 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