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
{% schema %} | |
{ | |
"name": "Creatable Widget Section", | |
"tag": "section", | |
"class": "section section-creatable-carousel", | |
"disabled_on": { | |
"groups": ["header", "footer"] | |
}, | |
"blocks": [], | |
"settings": [ |
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
<script type="text/javascript"> | |
(function() { | |
var tvpa = document.createElement('script'); | |
tvpa.type = 'text/javascript'; | |
tvpa.async = true; | |
tvpa.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'a.tvpage.com/tvpa.min.js'; | |
let s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(tvpa, s); | |
})(); |
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 (Shopify.hasOwnProperty('checkout')) { | |
var purchases = Shopify.checkout.line_items; | |
var orderId = Shopify.checkout.order_id; | |
var items = []; | |
for (var x = 0; x < purchases.length; x++) { | |
items.push({ | |
sku: purchases[x]['sku'], | |
price: purchases[x]['price'], |
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
<a class="tvp-sidebar" data-id="sidebar-dynamic" data-domain="//widgets.domain.com">TVPage Sidebar Dynamic</a> | |
<script> | |
window.__TVPage__ = window.__TVPage__ || {}; | |
__TVPage__.config = __TVPage__.config || {}; | |
__TVPage__.config["sidebar-dynamic"] = { | |
loginid: "XXXXXXX", | |
channel: { | |
"id": "00000000", | |
"parameters": { | |
"main_category": "123456789" |
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
var _tvpa = _tvpa || []; | |
_tvpa.push(['config', { | |
tr: "XXX", // Data source ID | |
li: "YYY", // Account ID | |
gaDomain: "domain.tv" // For use with a TVPage Video Commerce Site | |
}]); |
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
<script type="text/javascript"> | |
(function() { | |
var tvpa = document.createElement('script'); tvpa.type = 'text/javascript'; tvpa.async = true; | |
tvpa.src = ('https:' == document.location.protocol ? 'https': 'http') + '://a.tvpage.com/tvpa.min.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tvpa, s); | |
})(); | |
var _tvpa = _tvpa || []; | |
_tvpa.push(['config', { | |
//********************************************************************** |
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
<!--START: items--> | |
<div class="row"> | |
<div class="invoice-id">[id]</div> | |
<div class="invoice-items">[itemname]</div> | |
<div class="invoice-price">[unitprice]</div> | |
<div class="invoice-qty">[numitems]</div> | |
<div class="invoice-total">[subtotal]</div> | |
<div class="clear"></div> | |
</div> | |
<script> |
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
<script> | |
$Cnt++; | |
$SKUArr[$Cnt]="[id]"; | |
$PriceArr[$Cnt]="[unitprice]"; | |
$PriceArr[$Cnt] = $PriceArr[$Cnt].replace("$",""); | |
$QtyArr[$Cnt]= [numitems]; | |
</script> |
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
<!--START: items--> | |
<div class="row"> | |
<div class="invoice-id">[id]</div> | |
<div class="invoice-items">[itemname]</div> | |
<div class="invoice-price">[unitprice]</div> | |
<div class="invoice-qty">[numitems]</div> | |
<div class="invoice-total">[subtotal]</div> | |
<div class="clear"></div> | |
</div> | |
<!--END: items--> |
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
<script> | |
$SKUArr = new Array();$PriceArr = new Array();$QtyArr = new Array();$Cnt=0; | |
</script> |
NewerOlder