{% load theme_builder_design theme_builder_context ecommerce_blocks shop_texts %}{% comment %}Story 17.8 — "excerpt" is the teaser of the buy column (link to #description); "full" is the description itself. Nothing rendered when there is no text.{% 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 %} {% if options.mode == "excerpt" %} {% if page_context.extrait_disponible %}

{{ page_context.produit.description|truncatewords:page_context.nombre_mots_extrait }} {% shop_text "product_read_more" %}

{% endif %} {% elif page_context.produit.description.strip %}
{{ page_context.produit.description|linebreaks }}
{% endif %} {% endwith %}{% endif %}