Checkbox for customer to show all items or only in stock items

1 month ago
I would like the ability for customers to select whether they see all items, or just in-stock items. Like a checkbox in the _CatalogSelectors section that when selected, only shows products which are in stock (hiding out of stock items).
I have already modified the ProductLoadAllPaged stored procedure with a @HideOutOfStock bit parameter and appropriate filtering statements.
Now I would like to add the appropriate code in nopcommerce to make use of that.
2 days ago
Hi, I know I'm a little late, but I've thought of something you could try.

I think you could do whatever you want using "Specification Attributes". You can create a specification called "Stock" and two attributes: "In Stock" and "Out of Stock".
When you add it to the product, you must set "Allow filtering" to true.
This is what it would look like:

Greetings, and I hope you find it useful!