Hello,
A third party company sent us a piece of javacode to track their referrral orders. They said we only need to add the code on the confirmation page of the shopping cart along with the shopping cart total at the bottom of the page. We added in the [---SC cart ---]and [---SC totals---] but other than that have not modified the script. They are still not seeing test orders in their tracking database. We've also tried the code on the thank you page as well but it's still not showing up for them. Lastly we tried putting the code before the </head> section as well on both confirmation and thank you pages. Still nothing. Is this a correct way to pass a variable of the SC total to someone? I really need to get this going today or Saturday at the latest. Thanks for your help!
Here's the script in the cart.
<script type="text/javascript">
Sample CompanyPurchase = {
merchant_id: 'fc29e6c0-aa15-012c-',
// Set this to false once you're done testing
sandbox: false,
// This is where you put information about which items were purchased
items: [
{
name: "[-- SC_Cart --]",
total:"[-- SC_Totals --]"
]
}
// This loads the javascript. You won't need to alter this
var _tt = document.createElement('script');
_tt.setAttribute('type', 'text/javascript');
_tt.setAttribute('src', (document.location.protocol == "https:" ? "https:" : "http:") + '//tracking.samplecompany.com/javascripts/vendor.js');
document.getElementsByTagName("head")[0].appendChild(_tt);
</script>