Skip to content

PriceFilter

The PriceFilter object represents a price filter in the storefront.

classDiagram
  direction LR
  class PriceFilter{
    string name
    bool isActive
    string priceFromUrlKey
    string priceToUrlKey
    ?float priceFrom
    ?float priceTo
  }

Properties

Attribute name Type Description
name string The name of the price filter.
isActive bool Returns true if price filter is active.
priceFromUrlKey string Represents url key of 'price from' value.
priceToUrlKey string Represents url key of 'price to' value.
priceFrom float|null Represents 'price from' value.
priceTo float|null Represents 'price to' value.

Examples

name property

{{ priceFilter.name }}
example name

isActive property

{{ priceFilter.isActive }}
true

priceFromUrlKey property

{{ priceFilter.priceFromUrlKey }}
/pricefrom/2.03

priceToUrlKey property

{{ priceFilter.priceToUrlKey }}
/priceto/4.56

priceFrom property

{{ priceFilter.priceFrom }}
2.03

priceTo property

{{ priceFilter.priceTo }}
4.56