Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Forked from igorcalabria/Sample template
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleytonmessias/9769d4171bd41fd6c158 to your computer and use it in GitHub Desktop.
Save cleytonmessias/9769d4171bd41fd6c158 to your computer and use it in GitHub Desktop.
Script para estrelas do Trustvox
<div data-trustvox-product-code-js="dataLayer[0].productId" data-trustvox-should-skip-filter="true"></div>
#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