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

Open in your IDE?
  1. {% sw_extends '@parent/storefront/component/product/card/price-unit.html.twig' %}
  2. {% block component_product_box_price_info %}
  3.     {% set por_btn_visible = product.extensions.nimbits_por_product_ruleset.por_btn_visible %}
  4.     {% set por_dont_show_price = product.extensions.nimbits_por_product_ruleset.por_dont_show_price %}
  5.     {% set por_add_to_cart_not_visible = product.extensions.nimbits_por_product_ruleset.por_add_to_cart_not_visible %}
  6.     {% set por_product_not_purchasable = product.extensions.nimbits_por_product_ruleset.por_product_not_purchasable %}
  7.     {% set nbporcustomtext = product.translated.customFields.custom_nimbits_priceonrequest_customtext %}
  8.         {% if por_dont_show_price %}
  9.             <div class="product-price-wrapper">
  10.                 <div class="product-price-info nb-pricerequest-listing-text">
  11.                     <p class="product-price-unit">
  12.                     </p>
  13.                     <p class="product-price">
  14.                         {{ 'nimbits-pricerequests.listing.text.priceonrequest'|trans }}
  15.                     </p>
  16.                 </div>
  17.             </div>
  18.         {% else %}
  19.             {{ parent() }}
  20.         {% endif %}
  21.     {% if nbporcustomtext %}
  22.         {{ nbporcustomtext }}
  23.     {% endif %}
  24. {% endblock %}