Skip to content

Magento 2 Smile ElasticSuite Layered Navigation: Combine “In Stock” and “Pre Sale” filter to show single section with radio input functionality

I’m working on a Magento 2 project that uses Smile ElasticSuite for layered navigation. I want to customize filter options on the category page with the following behavior:

Display a single filter group titled

  • In Stock (filter by in_stock = 1, attribute_id: 819)

  • Pre Sale (filter by is_pre_sale = 1, attribute_id: 999)

Merge these two existing filter attributes into a single custom section using radio buttons

Current Situation:

In Stock and Pre Sale are already separate filters in the sidebar, each with their own checkbox.

What’s the recommended way to override the original two filters and replace them with this unified radio filter view?