{% load theme_builder_design theme_builder_context ecommerce_blocks shop_texts %}{% comment %}Story 17.10 — the page's products as cards; the bloc's own card style and columns, the page's list and pagination. Nothing without the list in the page context.{% endcomment %} {% check_block_has_context bloc tb_render as has_context %}{% if has_context %}{% get_shop_block_options bloc as options %}{% with page_context=tb_render.page_context request=tb_render.page_context.requete %} {% get_shop_card_style options.card_style page_context.reglages_boutique as card_style %}
{% if page_context.produits %}
{% for product in page_context.produits %} {% include "ecommerce/_product_card.html" %} {% endfor %}
{% with pagination=page_context.pagination %} {% if options.show_pagination and pagination.has_other_pages %} {% endif %} {% endwith %} {% else %}

{% if page_context.tout_est_masque %}{% shop_text "catalogue_all_sold" %}{% else %}{% shop_text "catalogue_empty" %}{% endif %}

{% endif %}
{% endwith %}{% endif %}