{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}{{ product.name }}{% endblock %} {% block content %} {% set stockStatus = product.getStockStatus(settings.lowStockThreshold, settings.criticalStockThreshold) %} {% set stockColors = { 'ok': 'green', 'low': 'orange', 'critical': 'red', 'out': 'gray', 'service': 'purple' } %} {% set stockLabels = { 'ok': 'En stock', 'low': 'Stock bas', 'critical': 'Critique', 'out': 'Rupture', 'service': 'Service' } %}
Les variantes permettent de decliner un produit selon ses caracteristiques (taille, couleur, poids, dimensions...). Chaque variante a son propre stock, code-barres et ajustement de prix.
| Nom | SKU | Attributs | Ajust. prix | Stock | Actions |
|---|---|---|---|---|---|
| {{ variant.name }} | {{ variant.sku }} | {{ variant.attributesSummary }} | {{ variant.priceAdjustment > 0 ? '+' : '' }}{{ variant.priceAdjustment|number_format(0, ',', ' ') }} | {{ variant.currentStock }} | {% include 'components/pos/_confirm_modal.html.twig' with { modal_id: 'del-var-' ~ variant.id, title: 'Supprimer la variante', message: 'Supprimer la variante « ' ~ variant.name ~ ' » ?', action_url: path('manager_pos_products_delete_variant', {id: product.id, variantId: variant.id}), csrf_token_name: 'delete_variant_' ~ variant.id, } %} |
{{ entry.description }}
{% endif %} {% if entry.oldValues or entry.newValues %}Aucun historique pour ce produit