custom/plugins/KMShop2022/src/Resources/views/storefront/component/product/listing.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
  2.                     {% block element_product_listing_pagination_nav_actions %}
  3.                     
  4.                 
  5.                         
  6.                         <div class="cms-element-product-listing-actions row justify-content-between">
  7.                             <div class="col-md-auto productstotal">
  8.                                 {% if searchResult.page == 1%}
  9.                                     {% set current_from = 1 %}
  10.                                 {% else %}
  11.                                     {% set current_from = ((searchResult.page -1) * searchResult.limit)  + 1 %}
  12.                                 {% endif %}
  13.                                 {% if searchResult.total < searchResult.limit %}
  14.                                     {% set pagetotal = searchResult.total %}
  15.                                 {% else %}
  16.                                     {% set pagetotal = searchResult.page * searchResult.limit  %}
  17.                                     {% if pagetotal > searchResult.total %}
  18.                                         {% set pagetotal = searchResult.total %}
  19.                                     {% endif%}
  20.                                 {% endif %}
  21.                                 {{ current_from }} bis {{ pagetotal }} von {{ searchResult.total }}
  22.                             </div>
  23.                             <div class="col-md-auto">                            
  24.                                 {% block element_product_listing_pagination_nav_top %}
  25.                                     {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  26.                                         entities: searchResult,
  27.                                         criteria: searchResult.criteria
  28.                                     } %}
  29.                                 {% endblock %}
  30.                             </div>
  31.                             <div class="col-md-auto">
  32.                                 {% block element_product_listing_sorting %}
  33.                                     {% sw_include '@Storefront/storefront/component/sorting.html.twig' with {
  34.                                         current: searchResult.sorting,
  35.                                         sortings: searchResult.availableSortings
  36.                                     } %}
  37.                                 {% endblock %}
  38.                             </div>
  39.                         </div>
  40.                     {% endblock %}