{% if variant is not defined %}
    {% if configuration.vars.variantCode is defined %}
        {% set variant = product|dedi_theme_resolve_variant_with_code(configuration.vars.variantCode) %}
    {% else %}
        {% set variant = product|sylius_resolve_variant %}
    {% endif %}
{% endif %}

{% set appliedPromotions = variant.getAppliedPromotionsForChannel(sylius.channel) %}

{% if appliedPromotions is not empty %}
    <div class="product-show-promo">
        {% include '@SyliusShop/Product/Show/_catalogPromotionLabels.html.twig' with {'appliedPromotions': appliedPromotions, 'withDescription': true} %}
    </div>
{% endif %}
