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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
  2. {% block component_product_box_price %}
  3.     {{ parent() }}
  4.     {% if config('NetiNextEasyCoupon.config.active')
  5.         and config('NetiNextEasyCoupon.config.showExtraOptionsInListing') is not same as('no')
  6.         and config('NetiNextEasyCoupon.config.showExtraOptionsInListing') is not null
  7.     %}
  8.         <div class="neti-ec-extra-options">
  9.             {% if product.extensions is defined
  10.                 and product.extensions.netiEasyCouponProduct is defined
  11.                 and product.extensions.netiEasyCouponProduct.extensions.extraOptions is defined
  12.                 and product.extensions.netiEasyCouponProduct.extensions.extraOptions.elements is not empty
  13.             %}
  14.                 <div class="neti-ec-extra-options-text">
  15.                     {% for extraOption in product.extensions.netiEasyCouponProduct.extensions.extraOptions.elements %}
  16.                         {% if
  17.                             extraOption.selectionType is same as(constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Extension\\ExtraOption\\EcProductExtraOptionEntity::SELECTION_TYPE_PRESELECTED_AND_UNCHANGEABLE'))
  18.                             or config('NetiNextEasyCoupon.config.showExtraOptionsInListing') is same as('all')
  19.                         %}
  20.                             <span class="neti-ec-extra-options-option">
  21.                                 {{ "neti-easy-coupon.store-front.listing.extra-option.price"|trans({'%price%': extraOption.calculatedPrice|currency, '%label%': extraOption.translated.label, '%star%': "general.star"|trans|sw_sanitize }) }}
  22.                             </span>
  23.                             {{ "neti-easy-coupon.store-front.listing.extra-option.label"|trans({'%price%': extraOption.calculatedPrice|currency, '%label%': extraOption.translated.label, '%star%': "general.star"|trans|sw_sanitize }) }}
  24.                             {% if extraOption.selectionType is not same as(constant('NetInventors\\NetiNextEasyCoupon\\Core\\Content\\Product\\Extension\\ExtraOption\\EcProductExtraOptionEntity::SELECTION_TYPE_PRESELECTED_AND_UNCHANGEABLE')) %}
  25.                                 {{ "neti-easy-coupon.store-front.listing.extra-option.optional"|trans }}
  26.                             {% endif %}
  27.                             {% if product.extensions.netiEasyCouponProduct.extensions.extraOptions.elements|last != extraOption %}
  28.                                 {{ "neti-easy-coupon.store-front.listing.extra-option.separator"|trans }}
  29.                             {% endif %}
  30.                         {% endif %}
  31.                     {% endfor %}
  32.                 </div>
  33.             {% endif %}
  34.         </div>
  35.     {% endif %}
  36. {% endblock %}