By default, the product search filters all products, including both active and inactive products. If you prefer to display only active products by default, you can adjust this setting in the configurations.
- Navigate to Configuration -> Products -> Generic Product Settings.
- Activate the toggle switch labeled "Filter the search by active as default."
- Publish changes
- This adjustment ensures that the product search is automatically filtered to display only active products by default.