{% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
{% set variant = product|sylius_resolve_variant %}
{% set has_discount = variant is not null and variant|sylius_has_discount({'channel': sylius.channel}) %}
{% set hasStock = false %}
{% for variant in product.enabledVariants %}
{% set hasStock = hasStock or sylius_inventory_is_available(variant) %}
{% endfor %}
{{ variant ? money.calculatePrice(variant) : '' }}
{% if has_discount %}
{{ variant ? money.calculate_original_price(variant) : '' }}
{% endif %}
{% if hasStock %}
🌱 en stock
{% else %}
☒ indisponible
{% endif %}