1
There is a list of products in the layout I am doing with opencode.
<div class="borderproduct" itemscope itemtype="http://schema.org/Product">
<a href="{{ product.link }}" itemprop="url">
<div class="product-image">
{% set loading = tray.paths.system_image ~ "/loading.gif" %}
<img class="img-responsive lazy" data-original="{{ product.images[0].large }}" src="{{ loading }}" alt="{{ product.name }}">
</div>
<div class="product-name" itemprop="name">
<div style="font-size:15px !important;"> <b>{{ product.name }}</div>
</div>
<div class="product-price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
{% set price = product.price_offer > 0 ? product.price_offer : product.price %}
<hr style="margin:0px !important">
<center><b>R$ {{ price|currency }} </b></center>
<center>
<div class="btnred">
<button class="btn btn-default btn-block news-button ">Comprar</button>
</div>
</center>
<meta itemprop="priceCurrency" content="BRL">
</div>
</a>
Which gives the following result:
Shows product name and price.
But I wanted to put more data in the list of products, such as the discounted price, the discounted price and mainly interest or interest free.
As in the data inside the red circle below.
Thus remaining:
Someone can show me how to do this with Twig’s help?
I saw in their manual but found nothing. http://dev.tray.com.br/hc/pt-br/categories/200310858