EN IT
Open2b version 7.8

Filters

Below are the variables filters and appliedFilters used to show filters that let customers filter products, and the Breadcrumb type that represents, as a breadcrumb, a currently applied filter.

Note

Filters are available in the Advanced and Advanced B2B editions.

var (

    // Currently applied filters. Clicking a filter removes it.
    appliedFilters []AppliedFilter

    // Filters customers can use to filter displayed products.
    filters []Filter

)

They are defined in the following pages: blog-post.html, change-password.html, contact-us.html, index.html, login.html, newsletter-subscription.html, remember-password.html, share.html, sign-up.html, sign-up-user.html, user-data.html, cart.html, department.html, new-releases.html, producer.html, promotions.html, search.html and in all generic pages.

Example

<ul>
  {% for filter in appliedFilters %}
  <li>{{ filter }}</li>
  {% end %}
</ul>