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ä
| Tuotemerkki | themes/shop/THEME/brand-list.html |
| Kampanja | themes/shop/THEME/campaign-list.html |
| Tuotelista | themes/shop/THEME/product-list.html |
| Näyteikkuna | themes/shop/THEME/category-front.html |
| Etusivu | 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 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
beforeandafterattributes, 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
beforeandafterattributes 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.'
