{% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
{% block element_product_listing_pagination_nav_actions %}
<div class="cms-element-product-listing-actions row justify-content-between">
<div class="col-md-auto productstotal">
{% if searchResult.page == 1%}
{% set current_from = 1 %}
{% else %}
{% set current_from = ((searchResult.page -1) * searchResult.limit) + 1 %}
{% endif %}
{% if searchResult.total < searchResult.limit %}
{% set pagetotal = searchResult.total %}
{% else %}
{% set pagetotal = searchResult.page * searchResult.limit %}
{% if pagetotal > searchResult.total %}
{% set pagetotal = searchResult.total %}
{% endif%}
{% endif %}
{{ current_from }} bis {{ pagetotal }} von {{ searchResult.total }}
</div>
<div class="col-md-auto">
{% block element_product_listing_pagination_nav_top %}
{% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
entities: searchResult,
criteria: searchResult.criteria
} %}
{% endblock %}
</div>
<div class="col-md-auto">
{% block element_product_listing_sorting %}
{% sw_include '@Storefront/storefront/component/sorting.html.twig' with {
current: searchResult.sorting,
sortings: searchResult.availableSortings
} %}
{% endblock %}
</div>
</div>
{% endblock %}