Prints a URL address for deselecting all selected product filters.
Kuvaus
The tag is available starting from the Basic plan.
See the detailed instructions on how to implement product filters in a theme.
Syntaksi
{ProductListFiltersClearURL}
Näkyvyys
Toimii näkyvyydessä: kampanja, tuotemerkki, tuoteryhmä
Brand | themes/shop/THEME/brand-list.html |
Campaign | themes/shop/THEME/campaign-list.html |
Product list | themes/shop/THEME/product-list.html |
Display window | themes/shop/THEME/category-front.html |
Front page | themes/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:
{ProductListFilters(
after: {{
{ProductListFiltersClearURL(
before: '<a href="',
after: '">{%ProductFiltersRemove}</a>'
)}
}}
)}
{Products}
In this example, the link for resetting product filters is added at the end of the product filter list via the {ProductListFilters}
tag's after
attribute. The {ProductListFiltersClearURL}
tag's before
and after
attributes add a link element around the URL.
Attribuutit
after/before:
By using the
after
andbefore
attributes you can define content that is output either after or before the tag's output.Allowed values:The HTML and Interface markup
E.g.
before:
'<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'after:
'<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'
If the tag does not produce any content, neither the content of the
after
andbefore
attributes will be output.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:The HTML and Interface markup
E.g.
or:
'Sisältöä ei löytynyt.'