vendor/crehler/arrangements/src/Resources/views/storefront/component/product/card/action.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@CrehlerMojeBambinoEngine/storefront/component/product/card/action.html.twig' %}
  2. {% block component_product_box_action_inner %}
  3.     {% set id = product.id %}
  4.     {% set isArrangementOrInspiration = (product.extensions.arrangement is not null) or (product.extensions.inspiration is not null) %}
  5.     {% if config("core.listing.allowBuyInListing") %}
  6.         <div class="product-action-container">
  7.             <div class="product-action {% if isArrangementOrInspiration %}is-arrangement-inspiration{% endif %}">
  8.                 {% set isVariant = product.parentId is not null %}
  9.                 {% set isParent = product.childCount > 0 %}
  10.                 {% set isAvailable = not product.isCloseout or (product.availableStock >= product.minPurchase) %}
  11.                 {% block component_product_box_action_buy %}
  12.                     {% if isArrangementOrInspiration %}
  13. {#                        TODO#}
  14. {#                        <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"#}
  15. {#                           title="{{ "bambino.productBox.showProductDetails"|trans|raw }}"#}
  16. {#                           class="btn btn-light btn-quickview">#}
  17. {#                            {% sw_icon 'eye-open' %}#}
  18. {#                            <span class="label">{{ "bambino.productBox.showProductDetails"|trans|raw }}</span>#}
  19. {#                        </a>#}
  20.                     {% else %}
  21.                         {{ parent() }}
  22.                     {% endif %}
  23.                 {% endblock %}
  24.             </div>
  25.         </div>
  26.     {% endif %}
  27. {% endblock %}