Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
商品閲覧履歴ブロック
{% if productHistory %}
<div class="ec-role">
<div class="ec-newItemRole">
<div class="ec-newItemRole__list">
<div class="ec-newItemRole__listItem">
<div class="ec-newItemRole__listItemHeading ec-secHeading--tandem">
<span class="ec-secHeading__en">HISTORY</span>
<span class="ec-secHeading__line"></span>
<span class="ec-secHeading__ja">商品閲覧履歴</span>
</div>
</div>
{% for product in productHistory %}
<div class="ec-newItemRole__listItem">
<a href="{{ url('product_detail', {'id': product.id}) }}">
<img src="{{ asset(product.main_list_image|no_image_product, 'save_image') }}">
<p class="ec-newItemRole__listItemTitle">{{ product.name }}</p>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment