{% extends "ecommerce/base.html" %} {% load static shop_images shop_texts %} {% comment %}Public product page (Story 1.6, redone in 1.12); price and stock from the Oscar strategy, like the basket.{% endcomment %} {% block title %}{{ product.title }} — {{ site_settings.site_name|default:"Comptoir" }}{% endblock %} {% block shop_extrahead %} {% comment %}Built and escaped in Python (storefront_views.build_product_json_ld), kept in sync with the page.{% endcomment %} {% if variant_selector %}{% endif %} {% endblock %} {% block shop_content %}
{% comment %}Categories are plain text until the shop has a page per category.{% endcomment %}

{{ product.title }}

{% if price_label or variant_selector %}

{{ price_label }}

{% endif %} {% if has_teaser %}

{{ product.description|truncatewords:teaser_word_count }} {% shop_text "product_read_more" %}

{% endif %} {% if show_buy_box %} {% comment %}Variant pages: the stock line and the buy block follow the picked variant (product-variants.js), so both always exist.{% endcomment %}

{% if stock_label %}{{ stock_label }}{% else %}{% shop_text "product_in_stock" %}{% endif %}

{% if variant_selector %}{% include "ecommerce/_variant_selector.html" %}{% endif %} {% if add_to_basket_form %}
{% comment %}Drawer mode (Story 3.11): HTMX answers in the drawer, or next to the button when it doesn't open by itself; action stays the no-JS fallback.{% endcomment %}
{% csrf_token %} {% if variant_selector %}{% endif %} {% with field=add_to_basket_form.quantity %} {% if field.is_hidden %} {{ field }} {% else %} {{ field }} {% endif %} {% endwith %}
{% if shop_settings.basket_display_mode == "drawer" %}
{% endif %} Voir le panier
  • {% shop_text "product_reassurance_payment" %}
  • {% shop_text "product_reassurance_shipping" %}
  • {% shop_text "product_reassurance_returns" %}
{% endif %} {% endif %}
{% if product.description.strip %}
{{ product.description|linebreaks }}
{% endif %} {% if characteristic_list %}

{% shop_text "product_characteristics_title" %}

{# Explicit roles: the phone layout's display: block drops table semantics in some browsers. #} {% for characteristic in characteristic_list %} {% endfor %}
{{ characteristic.label }} {{ characteristic.value }}
{% endif %} {% if related_products %} {% endif %} {# Story 12.3 — avis #} {% if add_to_basket_form %} {% comment %}Mobile only; submits the form above through form="…" instead of duplicating it.{% endcomment %}
{% if price_label %} {{ price_label }} {% endif %}
{% endif %}
{% endblock %}