custom/plugins/ProcWegmannTheme/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_inner %}
  3.     {% set id = product.id %}
  4.     <div class="product-action">
  5.         {% set isAvailable = not product.isCloseout or (product.availableStock >= product.minPurchase) %}
  6.         {% set displayFrom = product.calculatedPrices.count < 1 %}
  7.         {% set displayBuyButton = isAvailable and displayFrom and product.childCount <= 0 %}
  8.         {% if displayBuyButton and config('core.listing.allowBuyInListing') and context.customer %}
  9.             {% block component_product_box_action_buy %}
  10.                 {{ parent() }}
  11.             {% endblock %}
  12.         {% else %}
  13.             {% block component_product_box_action_detail %}
  14.                {{ parent() }}
  15.             {% endblock %}
  16.         {% endif %}
  17.     </div>
  18.     {% block component_product_box_action_meta %}
  19.         {{ parent() }}
  20.     {% endblock %}
  21. {% endblock %}