{% block neti_next_easy_coupon_buy_widget_container %}
{% if
ecProduct.extensions is defined
and ecProduct.extensions.netiEasyCouponProduct is defined
and ecProduct.extensions.netiEasyCouponProduct.valueType is defined
and config('NetiNextEasyCoupon').config.active %}
{% set value = ecProduct.extensions.netiEasyCouponProduct.value.getCurrencyPrice(context.currency.id, true, context.context) %}
{% set valueType = ecProduct.extensions.netiEasyCouponProduct.valueType %}
{% if (valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_SELECTION')) %}
{% sw_include '@Storefront/storefront/easy_coupon/product-detail/value_types/preselected.html.twig' %}
{% elseif (valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_RANGE')) %}
{% sw_include '@Storefront/storefront/easy_coupon/product-detail/value_types/range.html.twig' %}
{% endif %}
{% endif %}
{% if
valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_SELECTION')
or valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_RANGE')
%}
{% block neti_ec_page_product_detail_tax %}
{{ block("page_product_detail_tax", "@Storefront/storefront/page/product-detail/buy-widget.html.twig") }}
{% endblock %}
{% endif %}
{% if
ecProduct.extensions is defined
and ecProduct.extensions.netiEasyCouponProduct is defined
and config('NetiNextEasyCoupon').config.active %}
{% if
ecProduct.extensions.netiEasyCouponProduct.recipientInputEnabled is defined
and ecProduct.extensions.netiEasyCouponProduct.recipientInputEnabled is same as(true)
%}
<div class="is--neti-next-easycoupon is--nec-required_delivery card mb-3">
{% sw_include '@Storefront/storefront/easy_coupon/product-detail/requested-delivery/recipient.html.twig' %}
{% if
ecProduct.extensions.netiEasyCouponProduct.deliveryMessageEnabled is defined
and ecProduct.extensions.netiEasyCouponProduct.deliveryMessageEnabled is same as(true)
%}
{% sw_include '@Storefront/storefront/easy_coupon/product-detail/requested-delivery/message.html.twig' %}
{% endif %}
{% if
product.extensions.netiEasyCouponProduct.requestedDeliveryEnabled is defined
and product.extensions.netiEasyCouponProduct.requestedDeliveryEnabled is same as(true) %}
{% sw_include '@Storefront/storefront/easy_coupon/product-detail/requested-delivery/date.html.twig' %}
{% endif %}
</div>
{% endif %}
{% if
ecProduct.extensions.netiEasyCouponProduct.extensions is defined
and ecProduct.extensions.netiEasyCouponProduct.extensions.extraOptions is defined
and ecProduct.extensions.netiEasyCouponProduct.extensions.extraOptions is not empty
%}
{% sw_include '@Storefront/storefront/easy_coupon/product-detail/extra-options/index.html.twig' with { 'extraOptions': ecProduct.extensions.netiEasyCouponProduct.extensions.extraOptions } %}
{% endif %}
{% endif %}
{% endblock %}