<div class="product-price-table"> {% if product.calculatedPrices|length > 1 %} <div class="category-price-table-container"> <div class="category-price-table-container-inner"> <table class="category-price-table"> <thead class="product-block-prices-head"> {% block page_product_detail_price_block_table_head_inner %} <tr class="product-block-prices-row"> <th scope="col" class="product-block-prices-cell"> {{ "detail.dataColumnQuantity"|trans|sw_sanitize }} </th> <th scope="col" class="product-block-prices-cell"> {{ "detail.dataColumnPrice"|trans|sw_sanitize }} </th> {% if page.product.calculatedPrice.referencePrice %} <th scope="col" class="product-block-prices-cell"> {{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }} </th> {% endif %} </tr> {% endblock %} </thead> <tbody class="product-block-prices-body"> {% set isFirstLoop = true %} {% for price in product.calculatedPrices %} {% set abStaffel = product.minPurchase %} {% if loop.index > 1 %} {% set idx = loop.index - 2 %} {% set pArr = product.calculatedPrices %} {% set abStaffel = pArr.elements[idx].quantity + 1 %} {% if abStaffel >= product.minPurchase %} <tr class="product-block-prices-row staffelRow noselect{% if isFirstLoop %} active{% endif %}" data-sr="{{ abStaffel }}" data-pr="{{ price.unitPrice }}" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <th scope="row" class="product-block-prices-cell product-block-prices-cell-thin"> <meta itemprop="priceCurrency" content="{{ page.header.activeCurrency.translated.shortName }}" /> <meta itemprop="price" content="{{ price.unitPrice }}" /> <link itemprop="availability" href="https://schema.org/InStock" /> {{ "detail.priceDataInfoFrom"|trans|sw_sanitize }} <span class="product-block-prices-quantity">{{ abStaffel }}</span> </th> <td class="product-block-prices-cell"> {% sw_include '@Storefront/storefront/component/product/block-price.html.twig' with { price: price } only %} </td> {% if price.referencePrice is not null %} <td class="product-block-prices-cell product-block-prices-cell-thin"> {{ price.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }} / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }} </td> {% endif %} </tr> {% set isFirstLoop = false %} {% endif %} {% endif %} {% endfor %} </tbody> </table> </div> </div> {% endif %} </div>