{# @var productListing \Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\ProductList\ProductListInterface #} {# @var result Knp\Component\Pager\Pagination\SlidingPagination #} {# @var item \App\Model\Product\Car #} {# @var filterService \Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterService #} {# @var filterDefinition \Pimcore\Model\DataObject\FilterDefinition #} {% if(category) %} {% endif %}
{% if( pimcore_device().isPhone ) %}
{% endif %}
{% if(filterDefinition.filters|length > 0) %} {% for filter in filterDefinition.filters %} {% set filterMarkup = filterService.filterFrontend(filter, productListing, currentFilter) %} {{ filterMarkup | raw }} {% endfor %} {% endif %}
{% if( pimcore_device().isPhone ) %}
{% endif %}
{% for item in results %}
{% include 'product/product_teaser.html.twig' with {'product': item} %}
{% endfor %}
{% include 'includes/pagination.html.twig' %}
{% do pimcore_inline_script().appendScript(" $('#js_filterfield .custom-checkbox input, #js_filterfield .custom-radio input').on('change', function() { $('#js_filterfield').submit(); }); ") %}