{% block component_line_item_quantity %} {% if redirectTo is not defined %} {% set redirectTo = 'frontend.checkout.cart.page' %} {% endif %} {% if formAction is not defined %} {% set formAction = path('frontend.checkout.line-item.change-quantity', { id: lineItem.id }) %} {% endif %} {% if showQuantitySelect is not defined %} {% set showQuantitySelect = true %} {% endif %} {# @var quantityInformation \Shopware\Core\Checkout\Cart\LineItem\QuantityInformation #} {% set quantityInformation = lineItem.quantityInformation %} {% if quantityInformation.maxPurchase %} {% set maxQuantity = quantityInformation.maxPurchase %} {% else %} {% set maxQuantity = config('core.cart.maxQuantity') %} {% endif %} {% set DOWNLOAD_STATE = constant('Shopware\\Core\\Content\\Product\\State::IS_DOWNLOAD') %} {% set isDigital = lineItem.states is defined and DOWNLOAD_STATE in lineItem.states and (DOWNLOAD_STATE not in lineItem.states or quantityInformation.maxPurchase === 1) %} {% block component_line_item_quantity_inner %}