custom/plugins/FroshProductCompare/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_buy %}
  3.     {{ parent() }}
  4.     {% if app.request.attributes.get('_route') != 'frontend.compare.content' %}
  5.         {% block component_product_box_action_add_to_compare_button %}
  6.             {% sw_include '@Storefront/storefront/component/product/card/compare-button.html.twig' %}
  7.         {% endblock %}
  8.     {% endif  %}
  9. {% endblock %}
  10. {% block component_product_box_action_detail %}
  11.     {{ parent() }}
  12.     {% if app.request.attributes.get('_route') != 'frontend.compare.content' %}
  13.         {% block component_product_box_action_detail_add_to_compare_button %}
  14.             {% sw_include '@Storefront/storefront/component/product/card/compare-button.html.twig' %}
  15.         {% endblock %}
  16.     {% endif %}
  17. {% endblock %}