Created
June 17, 2015 14:45
-
-
Save cleytonmessias/964f23bc8e2bd4e5731b to your computer and use it in GitHub Desktop.
Trustvox na Loja integrada
This file contains hidden or 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
<div id="_trustvox_widget"></div> |
This file contains hidden or 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"> | |
$(document).ready(function() { | |
window._trustvox = []; | |
_trustvox.push(['_storeId', 'AQUI VAI O ID DA LOJA NA TRUSTVOX']); | |
_trustvox.push(['_productId', $('.produto .acoes-produto[data-produto-id]').last().data('produto-id')]); | |
_trustvox.push(['_productName',$('h1.nome-produto').text()]); | |
_trustvox.push(['_productPhotos', ['http:'+$('.elastislide').find('[href]').data('imagem-grande')] ]); | |
(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