Last active
November 28, 2017 17:29
-
-
Save boldsupport/090a538e5d079bd679f76d4e82e8182e to your computer and use it in GitHub Desktop.
Donations Manager linked from: https://support.boldcommerce.com/hc/en-us/articles/202965235-Liquid-Error-Could-not-Find-Asset-Snippets-bold-da-bar-liquid
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.bold_donation.donation_key == 1 %} | |
<div class="da_bar_div" style="display:none;"> | |
<div class="goal_bar_title" ></div> | |
<div class="progress" > | |
<div class="progress-bar progress-bar-striped active da_bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 50%;"> | |
<span class=""><span class="percentage_num">60</span></span> | |
</div> | |
<span class="total_amount" style="float:right; padding-right: 10px;"></span> | |
</div> | |
<div class="goal_summary" ></div> | |
</div> | |
<script> | |
$(document).ready(function(){ | |
if(!$(".da_div").length){ | |
$('.da_bar_div').append('<link rel="stylesheet" type="text/css" href="https://da.boldapps.net/app_assets/css/donation_styles.css">'); | |
$('.da_bar_div').append('<script src="https://da.boldapps.net/assets_embed/js/bootstrap.min.js"><'+'/script>'); | |
$('.da_bar_div').append('<script class="bold_da_script" async src="https://da.boldapps.net/donations/generate_donation?product_id={{ product.id }}&shop_url={{ shop.permanent_domain }}"><' +'/script>'); | |
} | |
}); | |
</script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment