Answer the question
In order to leave comments, you need to log in
I don't understand what's wrong, there is an error in the each loop, how to fix it?
Cycle:
<ul class="list-cards">
{{#each products}}
<li class="card" data-size="{{size}}">
<a href="/products/{{id}}" title="{{title}}">
<div class="card__block-img">
<figure>
<img src="{{img}}" alt="{{title}}">
</figure>
</div>
<div class="card__description">
<span class="card-name">{{title}}</span>
<div class="card__block-price">
<span class="card-old-price">{{oldPrice}}</span>
<span class="card-now-price">{{nowPrice}}</span>
<span class="card-sale">{{sale}}</span>
</div>
</div>
</a>
</li>
{{/each}}
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question