{% extends "ecommerce/base.html" %} {% load l10n shop_texts %} {% comment %} Fiche produit publique (AC 1.6:#2) — JSON-LD kept in sync with what's rendered below (name/price/availability). |unlocalize only in the JSON-LD: "42,00" would be invalid JSON. Price and availability come from the Oscar strategy (purchase_info), like the basket (Story 3.6). {% endcomment %} {% block title %}{{ product.title }} — {{ site_settings.site_name|default:"Comptoir" }}{% endblock %} {% block shop_extrahead %} {% endblock %} {% block shop_content %}
← Retour à la boutique

{{ product.title }}

{% if purchase_info.price.exists %}

{{ purchase_info.price.incl_tax|floatformat:2 }} €

{% endif %} {% if purchase_info.stockrecord %} {% if stock_label %}

{{ stock_label }}

{% else %}

{% shop_text "product_in_stock" %}

{% 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 %} {% 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 {% endif %} {% endif %}
{{ product.description|linebreaks }}
{% endblock %}