Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Created September 1, 2015 14:43
Show Gist options
  • Save cleytonmessias/1ed91579101fafd25258 to your computer and use it in GitHub Desktop.
Save cleytonmessias/1ed91579101fafd25258 to your computer and use it in GitHub Desktop.
Script Trustvox <> InfraCommerce (Homologação)
<div id="_trustvox_widget"></div>
<script type="text/javascript">
$(document).ready(function() {
window._trustvox = [];
_trustvox.push(['_storeId', '122']);
_trustvox.push(['_productId', skuJson.productId ]);
_trustvox.push(['_productName',skuJson.name]);
_trustvox.push(['_productPhotos', [skuJson.images.ggP]]);
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true;
tv.charset = "UTF-8";
tv.src = '//trustvox-staging-assets.s3.amazonaws.com/assets/trustvox.1.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tv, s);
})();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment