{% sw_extends '@Storefront/storefront/component/product/card/action.html.twig' %}
{% block component_product_box_action_buy %}
{% if not product.extensions.ennoDigitalProductSettings.isDigital %}
{# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
<form action="{{ path('frontend.checkout.line-item.add') }}"
method="post"
class="buy-widget"
data-add-to-cart="true">
{% block component_product_box_action_buy_csrf %}
{{ parent() }}
{% endblock %}
{% block component_product_box_action_form %}
{{ parent() }}
{% endblock %}
</form>
{% endif %}
{% endblock %}