custom/plugins/NetiNextEasyCoupon/src/Resources/views/storefront/component/product/card/action.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/action.html.twig' %}
  2. {% block component_product_box_action_buy %}
  3.     {% if
  4.         product.extensions is defined
  5.         and product.extensions.netiEasyCouponProduct is defined
  6.         and product.extensions.netiEasyCouponProduct.valueType is defined
  7.         and config('NetiNextEasyCoupon.config.active')
  8.         and (
  9.             product.extensions.netiEasyCouponProduct.valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_SELECTION')
  10.             or product.extensions.netiEasyCouponProduct.valueType is constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Aggregate\\EasyCouponProductEntity::VALUE_TYPE_RANGE')
  11.             or (
  12.                 product.extensions.netiEasyCouponProduct.extensions.extraOptions is defined
  13.                 and product.extensions.netiEasyCouponProduct.extensions.extraOptions.elements is not empty
  14.             )
  15.         )
  16.     %}
  17.         {%  block component_product_box_action_detail %}
  18.             {{ parent() }}
  19.         {% endblock %}
  20.     {% else %}
  21.         {{ parent() }}
  22.     {% endif %}
  23. {% endblock %}