Prints a URL address for deselecting all selected product filters.

Kuvaus

The tag is available starting from the Basic parcel.

Also read the detailed instructions for implementing product 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 these two 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 escape characters to the content printed by the tag, making it easier to use the content in JavaScript code or JSON objects.

Sallitut arvot:
  • true: the attribute adds escape characters before quotation marks
  • false: the attribute does nothing
  • json: the attribute adds escape characters to the output, allowing the content to be used in JSON markup.
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.'