-
-
Save cleytonmessias/9769d4171bd41fd6c158 to your computer and use it in GitHub Desktop.
Script para estrelas do Trustvox
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 data-trustvox-product-code-js="dataLayer[0].productId" data-trustvox-should-skip-filter="true"></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
#set($id = $product.Id) | |
#set($uri = $product.Uri) | |
#set($escapedName = $product.HtmlEscapedName) | |
<div class="hproduct"> | |
<a title="$escapedName" href="$uri"> | |
<div class="productImage">$product.GetImageTag(29)</div> | |
<h3 class="product-name">$product.Name</h3> | |
<!-- Isso é o que importa --> | |
<div class="trustvox-widget-rating" data-trustvox-product-code="$product.Id"></div> | |
<div class="productPrice"> | |
#if ($product.IsInStock) | |
#if ($product.BestPrice < $product.ListPrice) | |
<span class="regularPrice"><span>De: </span>$product.ListPrice</span> | |
#end | |
<span class="salePrice"><span>Por: </span><strong>$product.BestPrice</strong></span> | |
#else | |
<p class="outOfStock">Produto Esgotado</p> | |
#end | |
</div> | |
<p class="seeMore">Ver Mais</p> | |
</a> | |
</div><!-- .hproduct --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment