fonc(stock) implémente gestion basique du stock
This commit is contained in:
parent
4e6f3911a6
commit
8c71a69c1b
5 changed files with 35 additions and 19 deletions
|
|
@ -107,13 +107,24 @@
|
|||
</div>
|
||||
|
||||
<div class="details-produit__actions">
|
||||
<button
|
||||
class="bouton-case-pleine"
|
||||
{{ variations_produit|length > 1 ? 'disabled' : '' }}
|
||||
id="bouton-ajout-panier"
|
||||
type="button"
|
||||
>
|
||||
Add to cart
|
||||
</button>
|
||||
{% if produit.stock > 0 %}
|
||||
<button
|
||||
class="bouton-case-pleine"
|
||||
{{ variations_produit|length > 1 ? 'disabled' : '' }}
|
||||
id="bouton-ajout-panier"
|
||||
type="button"
|
||||
>
|
||||
Add to cart
|
||||
</button>
|
||||
{% else %}
|
||||
<button
|
||||
class="bouton-case-pleine"
|
||||
disabled
|
||||
id="bouton-ajout-panier"
|
||||
type="button"
|
||||
>
|
||||
Out of stock
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</aside>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue