How to put interest scheme in product listing?

Asked

Viewed 200 times

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.

inserir a descrição da imagem aqui

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.

inserir a descrição da imagem aqui

Thus remaining:

inserir a descrição da imagem aqui

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

1 answer

1


Good Afternoon,

To view payment methods use dialing {{ product.payment }}

For more details about the items that can be called in the list of products check out our Documentation

If you have any further questions, you can send an email to [email protected]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.