{{ cookie:set user_id="test" }} {{ section:head }} {{ if get:q }} {{ elseif get:wishlist == 1 }} {{ elseif not get:filters.brand || (get:filters | count > 1 && get:filters.brand | count >= 1) }} {{ else }} {{ unless get:filters.brand | count === 1 && (get:page == 1 || get:page == null) }} {{ /unless }} {{ /if }} {{ /section:head }}
Filters wissen
Filters
Filters wissen
Filters
{{ if get:wishlist }}{{ /if }} {{ filters }}
{{ field.label }}
{{ if field.label === 'Prijs' }} {{ sorted_values_asc = values | sort }} {{ sorted_values_desc = values | sort | reverse }}
{{ minvar = field.key + '-min' }} {{ maxvar = field.key + '-max' }}
{{ sorted_values_asc[0] }} - € {{ sorted_values_desc[0] }}
{{ else }} {{ values }} {{ if value || value === 0 }}
{{ /if }} {{ /values }} {{ /if }}
{{ /filters }}
{{ if get:wishlist }}

Mijn Wensenlijst

{{ elseif get:q }}

{{ get:q }}

{{ else }} {{ if get:filters.brand | count === 1 }} {{ taxonomy:brands :title:contains="get:filters.brand[0]" }} {{ partial:partials/bard :content="content" }} {{ /taxonomy:brands }} {{ else }} {{ partial:partials/bard :content="page_content" }} {{ /if }} {{ /if }} {{ if get:filters || get:wishlist }} {{ collection:products paginate="15" as="products" id:in="{ facets:ids }" sort="{ get:sort ? get:sort : 'price:asc' }" query_scope="{ get:wishlist ? 'wishlist' : ((get:filters.price-min && get:filters.price-max) ? 'price_between' : '') }" price_min="{ get:filters.price-min }" price_max="{ get:filters.price-max }" title:contains="{ get:q }" condition:in="{ get:filters.condition ? (get:filters.condition | join('|')) : '' }" brand:in="{ get:filters.brand ? (get:filters.brand | join('|')) : '' }" in_stock:in="{ get:filters.in_stock ? (get:filters.in_stock | join('|')) : '' }" gear_system:in="{ get:filters.gear_system ? (get:filters.gear_system | join('|')) : '' }" fuel_type:in="{ get:filters.fuel_type ? (get:filters.fuel_type | join('|')) : '' }" energy_label:in="{ get:filters.energy_label ? (get:filters.energy_label | join('|')) : '' }" lease_duration:in="{ get:filters.lease_duration ? (get:filters.lease_duration | join('|')) : '' }" km_per_year:in="{ get:filters.km_per_year ? (get:filters.km_per_year | join('|')) : '' }" body_type:in="{ get:filters.body_type ? (get:filters.body_type | join('|')) : '' }" number_of_doors:in="{ get:filters.number_of_doors ? (get:filters.number_of_doors | join('|')) : '' }" }} {{ partial:partials/products_list }} {{ /collection:products }} {{ else }} {{ cache for="24 hours" key="prod:{ get:page }:{ get:sort }:{ get:q }" }} {{ collection:products paginate="15" as="products" sort="{ get:sort ? get:sort : 'price:asc' }" title:contains="{ get:q }" }} {{ partial:partials/products_list }} {{ /collection:products }} {{ /cache }} {{ /if }}