custom/plugins/ChespackTheme/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. {# Moved default listing to the filter block #}
  3. {% block element_product_listing_sorting %}{% endblock %}
  4. {# Added data for the counter #}
  5. {% block element_product_listing_row %}
  6.     <div class="row cms-listing-row js-listing-wrapper" data-counter-items="{{ searchResult|length }}" data-counter-total="{{ searchResult.total }}">
  7.         {% if searchResult.total > 0 %}
  8.             {% block element_product_listing_col %}
  9.                 {{ parent() }}
  10.             {% endblock %}
  11.         {% else %}
  12.             {% block element_product_listing_col_empty %}
  13.                 {{ parent() }}
  14.             {% endblock %}
  15.         {% endif %}
  16.     </div>
  17. {% endblock %}