{% set product = order_item.variant.product %}
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
{% import '@SyliusUi/Macro/flags.html.twig' as flag %}
<div class="ui segment" id="sylius-product-selecting-variant" {{ sylius_test_html_attribute('product-selecting-variant') }}>
{{ sylius_template_event('sylius.shop.product.show.before_add_to_cart', {'product': product, 'order_item': order_item}) }}
{{ form_start(form, {'action': path('sylius_shop_ajax_cart_add_item', {'productId': product.id}), 'attr': {'id': 'sylius-product-adding-to-cart', 'class': 'ui loadable form', 'novalidate': 'novalidate', 'data-redirect': path(configuration.getRedirectRoute('summary'))}}) }}
{{ form_errors(form) }}
<div class="ui red label bottom pointing hidden sylius-validation-error" id="sylius-cart-validation-error" {{ sylius_test_html_attribute('cart-validation-error') }}></div>
{% if not product.simple %}
{% if product.variantSelectionMethodChoice %}
{% include '@SyliusShop/Product/Show/_variants.html.twig' %}
{% else %}
{% include '@SyliusShop/Product/Show/_options.html.twig' %}
{% endif %}
{% endif %}
{{ form_row(form.cartItem.quantity, sylius_test_form_attribute('quantity')) }}
{{ sylius_template_event('sylius.shop.product.show.add_to_cart_form', {'product': product, 'order_item': order_item, 'form': form}) }}
{% set taxon = product.mainTaxon %}
{% set showPrice = true %}
{% set taxonsToAvoid = ['subscription-packs', 'welcome-packs', 'default-packs'] %}
{% for taxonToAvoid in taxonsToAvoid %}
{% if taxonToAvoid in taxon.slug %}
{% set showPrice = false %}
{% endif %}
{% endfor %}
{% if showPrice == true %}
<div class="row">
<div class="col-4 col-md-6 col-lg-4 product-price" {{ sylius_test_html_attribute('product-price-content') }}>
{% if not product.enabledVariants.empty() %}
{% include '@SyliusShop/Product/Show/_price.html.twig' %}
{% endif %}
</div>
{% if is_product_owned(product) is empty %}
<div class="col-8 col-md-6 col-lg-6 fixed-add-to-cart"> <button type="submit" class="ui huge primary icon labeled button" {{ sylius_test_html_attribute('add-to-cart-button') }}>{{ 'sylius.ui.add_to_cart'|trans }}</button> </div>
{% if product.mainTaxon is not null %}
{% set taxon = product.mainTaxon %}
{% if taxon.enabled %}
{% if taxon.code in ['storyteller', 'headphones', 'satchel'] %}
<div class="col-lg-10">
{% set promotions = get_promotions_text(product) %}
{% for promotion in promotions %}
<div class="product-frame red font-white font-weight-bold">
<div class="text-uppercase">
{% if promotion.name is defined %}
{{ promotion.name }}
{% else %}
{{ promotion.label }}
{% endif %}
</div>
<div>{{ promotion.description }}</div>
</div>
{% endfor %}
<div class="product-frame yellow font-blue text-uppercase font-weight-bold">
{{'sylius.pages.content.freeDeliveryFrance.title'|trans|raw }}
</div>
<div class="product-frame font-blue" style="text-transform:none;font-weight:700">
{{'sylius.pages.content.freeDeliveryFrance.france'|trans|raw }} {{ flag.fromCountryCode('fr') }}
{{'sylius.pages.content.freeDeliveryFrance.belgium'|trans|raw }} {{ flag.fromCountryCode('be') }}
{{'sylius.pages.content.freeDeliveryFrance.luxembourg'|trans|raw }} {{ flag.fromCountryCode('lu') }}
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
{% endif %}
{{ form_row(form._token) }}
{{ form_end(form, {'render_rest': false}) }}
</div>