Jump to content

Faceted search, price slider, PS 9


humbert

Recommended Posts

Hello,

 

Price range filter is in default filters in facted serach module.

You can check modules/ps_facetedsearch.php main modules class file getDefaultFilters() method.

Thas must be as below

 

protected function getDefaultFilters()
    {
        return [
            'layered_selection_subcategories' => [
                'label' => 'Sub-categories filter',
            ],
            'layered_selection_stock' => [
                'label' => 'Product stock filter',
            ],
            'layered_selection_condition' => [
                'label' => 'Product condition filter',
            ],
            'layered_selection_manufacturer' => [
                'label' => 'Product brand filter',
            ],
            'layered_selection_weight_slider' => [
                'label' => 'Product weight filter (slider)',
                'slider' => true,
            ],
            'layered_selection_price_slider' => [
                'label' => 'Product price filter (slider)',
                'slider' => true,
            ],
            'layered_selection_extras' => [
                'label' => 'Product extras filter',
            ],
        ];
    }

As you can see layered_selection_price_slider here this code will used in backoffice configuration of Faceted search module when you create new filter template.

If after adding this layered_selection_price_slider line you still not see price range filter in front office, then you might be in catalog mode and show prices is set to no.

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...