Last active
October 11, 2017 14:44
-
-
Save boldsupport/f6a0a64ab9336b8a62637b54e8d35297 to your computer and use it in GitHub Desktop.
Loyalty Points liquid file linked from: https://support.boldcommerce.com/hc/en-us/articles/209762003-Loyalty-Points-Install-Instructions
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 shop.metafields.bold_loyalties.active == 1 and shop.metafields.bold_loyalties.points_can_be_earned == 1 and shop.metafields.bold_loyalties.points_can_be_redeemed == 1 %} | |
<div class="boldapps-rewards-points-customer-section"> | |
<div class="bold-row bold-no-margin"> | |
<div class="bold-col"> | |
<h1>{{ shop.metafields.bold_loyalties.name }}</h1> | |
<p class="description"> | |
{{ shop.metafields.bold_loyalties.description }} | |
</p> | |
</div> | |
</div> | |
<div id="boldapps-reward-points-container"> | |
<div class="bold-col"><img src="//loy.boldapps.net/assets/ajax-loader.gif"></div> | |
</div> | |
</div> | |
<style> | |
@import url('//loy.boldapps.net/app_assets/css/client/bold-grid.css'); | |
</style> | |
<script> | |
var BoldApps = BoldApps||{}; | |
BoldApps.Loyalties =BoldApps.Loyalties ||{}; | |
BoldApps.Loyalties.customer = null; | |
{% if shop.customer_accounts_enabled %} | |
{% if customer %} | |
BoldApps.Loyalties.customer ={ | |
email:'{{ customer.email}}', | |
id:{{ customer.id}}, | |
uuid: '{{ customer.metafields.bold_loyalties.uuid }}' | |
} ; | |
{% endif %} | |
{% endif %} | |
BoldApps.Loyalties.shop = { | |
domain:'{{ shop.domain}}', | |
permanent_domain: '{{shop.permanent_domain}}', | |
url:'{{shop.url}}', | |
metafields: {{ shop.metafields.bold_loyalties | json }} | |
}; | |
</script> | |
<script src="//loy.boldapps.net/front_end/customer_account_js"></script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment