custom/plugins/NetiNextEasyCoupon/src/Resources/views/storefront/easy_coupon/buy-widget/buy-widget-container.html.twig line 1

Open in your IDE?
  1. {% block neti_next_easy_coupon_buy_widget_container %}
  2.     {% if
  3.         ecProduct.extensions is defined
  4.         and ecProduct.extensions.netiEasyCouponProduct is defined
  5.         and ecProduct.extensions.netiEasyCouponProduct.valueType is defined
  6.         and config('NetiNextEasyCoupon').config.active %}
  7.         {% set value = ecProduct.extensions.netiEasyCouponProduct.value.getCurrencyPrice(context.currency.id, true, context.context) %}
  8.         {% set valueType = ecProduct.extensions.netiEasyCouponProduct.valueType %}
  9.         {% if (valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_SELECTION')) %}
  10.             {% sw_include '@Storefront/storefront/easy_coupon/product-detail/value_types/preselected.html.twig' %}
  11.         {% elseif (valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_RANGE')) %}
  12.             {% sw_include '@Storefront/storefront/easy_coupon/product-detail/value_types/range.html.twig' %}
  13.         {% endif %}
  14.     {% endif %}
  15.     {% if
  16.         valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_SELECTION')
  17.         or valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_RANGE')
  18.     %}
  19.         {% block neti_ec_page_product_detail_tax %}
  20.             {{ block("page_product_detail_tax", "@Storefront/storefront/page/product-detail/buy-widget.html.twig") }}
  21.         {% endblock %}
  22.     {% endif %}
  23.     {% if
  24.         ecProduct.extensions is defined
  25.         and ecProduct.extensions.netiEasyCouponProduct is defined
  26.         and config('NetiNextEasyCoupon').config.active %}
  27.         {% if
  28.             ecProduct.extensions.netiEasyCouponProduct.recipientInputEnabled is defined
  29.             and ecProduct.extensions.netiEasyCouponProduct.recipientInputEnabled is same as(true)
  30.         %}
  31.             <div class="is--neti-next-easycoupon is--nec-required_delivery card mb-3">
  32.                 {% sw_include '@Storefront/storefront/easy_coupon/product-detail/requested-delivery/recipient.html.twig' %}
  33.                 {% if
  34.                     ecProduct.extensions.netiEasyCouponProduct.deliveryMessageEnabled is defined
  35.                     and ecProduct.extensions.netiEasyCouponProduct.deliveryMessageEnabled is same as(true)
  36.                 %}
  37.                     {% sw_include '@Storefront/storefront/easy_coupon/product-detail/requested-delivery/message.html.twig' %}
  38.                 {% endif %}
  39.                 {% if
  40.                     product.extensions.netiEasyCouponProduct.requestedDeliveryEnabled is defined
  41.                     and product.extensions.netiEasyCouponProduct.requestedDeliveryEnabled is same as(true) %}
  42.                     {% sw_include '@Storefront/storefront/easy_coupon/product-detail/requested-delivery/date.html.twig' %}
  43.                 {% endif %}
  44.             </div>
  45.         {% endif %}
  46.         {% if
  47.             ecProduct.extensions.netiEasyCouponProduct.extensions is defined
  48.             and ecProduct.extensions.netiEasyCouponProduct.extensions.extraOptions is defined
  49.             and ecProduct.extensions.netiEasyCouponProduct.extensions.extraOptions is not empty
  50.         %}
  51.             {% sw_include '@Storefront/storefront/easy_coupon/product-detail/extra-options/index.html.twig' with { 'extraOptions': ecProduct.extensions.netiEasyCouponProduct.extensions.extraOptions } %}
  52.         {% endif %}
  53.     {% endif %}
  54. {% endblock %}