Created
December 15, 2014 18:52
-
-
Save tvpmb/daacf706d27b427f11ec to your computer and use it in GitHub Desktop.
3D Cart - Part 5
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', { | |
//********************************************************************** | |
// These values can be found in your TVPage account under "Data Sources" | |
tr: "", // Data source ID, Example: tr: "12345", | |
li: "" // Account ID, Example: li: "98765" | |
//*********************************************************************** | |
}]); | |
$prodStr = []; | |
for($Cnt = 1; $Cnt < $SKUArr.length; $Cnt++){ | |
$prodStr[$Cnt] = { "sku": $SKUArr[$Cnt], "price": $PriceArr[$Cnt], "quantity": $QtyArr[$Cnt] }; | |
} | |
_tvpa.push(['track', 'products', $prodStr]); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment