Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Created August 4, 2015 19:15
Show Gist options
  • Save cleytonmessias/73b344a0d37fcb5957d5 to your computer and use it in GitHub Desktop.
Save cleytonmessias/73b344a0d37fcb5957d5 to your computer and use it in GitHub Desktop.
<div class='_trustvox_widget_container'>
<div class='container_titulo_trustvox' id='reviews'><h4>Pergunte e Veja opiniões de quem já comprou! :)</h4></div>
<div id='_trustvox_widget'></div>
</div>
<script type="text/javascript">
var _trustvox = _trustvox || [];
_trustvox.push(['_storeId', '761']);
<?php if($_product = Mage::registry('current_product')): ?>
_trustvox.push(['_productId', "<?php echo $_product->getId() ?>"]);
_trustvox.push(['_productName',"<?php echo $_product->getName() ?>"]);
_trustvox.push(['_productPhotos', ["<?php echo $_product->getImageUrl() ?>"]]);
<?php endif; ?>
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true;
tv.charset = "UTF-8";
tv.src = '//trustvox-production-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