custom/plugins/CoeHidePriceForCustomerGroup/src/Resources/views/storefront/page/product-detail/buy-widget-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
  2. {% block page_product_detail_buy_button_container %}
  3.     {% if not coeHideAddToCartButtons and not coeShowAddToCartTextReplace %}
  4.         {{ parent() }}
  5.     {% endif %}
  6.     {% if coeShowAddToCartTextReplace and not coeHideAddToCartButtons%}
  7.         <div class="col-8">
  8.             {% if coeShowAddToCartRedirect %}
  9.                 {% sw_include '@Storefront/storefront/component/product/redirect-button.html.twig' with {
  10.                     path: coeShowAddToCartRedirect
  11.                 } %}
  12.             {% else %}
  13.                 <button class="btn btn-primary btn-block"
  14.                         title="{{ "coeHidePrice.cartReplacement"|trans|striptags }}">
  15.                     {{ "coeHidePrice.cartReplacement"|trans|sw_sanitize }}
  16.                 </button>
  17.             {% endif %}
  18.         </div>
  19.     {% endif %}
  20. {% endblock %}
  21. {% block page_product_detail_buy_quantity_container %}
  22.     {% if not coeHideAddToCartButtons %}
  23.         {{ parent() }}
  24.     {% endif %}
  25. {% endblock %}
  26. {% block page_product_detail_buy_container %}
  27.     {{ parent() }}
  28.     {% if coeShowAddToCartTextReplace and coeHideAddToCartButtons%}
  29.         {% if coeShowAddToCartRedirect %}
  30.             {% sw_include '@Storefront/storefront/component/product/redirect-button.html.twig' with {
  31.                 path: coeShowAddToCartRedirect
  32.             } %}
  33.         {% else %}
  34.             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  35.                 type: 'info',
  36.                 content: 'coeHidePrice.cartReplacement'|trans
  37.             } %}
  38.         {% endif %}
  39.     {% endif %}
  40. {% endblock %}