Prints a URL address for deselecting all selected product filters.

Kuvaus

The tag is available starting from the Basic plan.

Also read the detailed instructions for implementing product list filters in the theme.

Syntaksi

{ProductListFiltersClearURL}

Näkyvyys

Toimii näkyvyydessä: kampanja, tuotemerkki, tuoteryhmä

Tuotemerkkithemes/shop/THEME/brand-list.html
Kampanjathemes/shop/THEME/campaign-list.html
Tuotelistathemes/shop/THEME/product-list.html
Näyteikkunathemes/shop/THEME/category-front.html
Etusivuthemes/shop/THEME/homepage.html

Implementing product filter reset in a store theme

You can use the {ProductListFiltersClearURL} tag to implement a feature that allows visitors to deselect all selected product filters with a single link. The example below illustrates how to implement the functionality on the product list page:

product-list.html
{ProductListFilters( after: {{ {ProductListFiltersClearURL( before: '<a href="', after: '">{%ProductFiltersRemove}</a>' )} }} )} {Products}

In this example, the reset link for product filters is added at the end of the product filter list with the {ProductListFilters} tag's after attribute. A link element is added around the URL using the {ProductListFiltersClearURL} tag's before and after attributes.

Attribuutit

before/after:

With the before and after attributes, you can define content that is output before or after the content produced by the tag.

Allowed values: text that may contain HTML and Interface markup.

E.g.

  • before: '<p>This markup appears before the tag's own content.</p>'.
  • after: '<p>This appears after the tag's own content.</p>'

If the tag does not produce any content, the content of the before and after attributes will also not be displayed.

escape:

Adds an escape character before quotation marks in the output. The attribute makes it easier to process the tag-produced content when using JavaScript.

Allowed values: true/false. The default value is false.

or:

Defines alternative content that is displayed if the tag itself does not produce any content.

Allowed values: text that may contain HTML and Interface markup.

E.g. or:'Content not found.'