0

I wanted to show all out of products at front store, so I went Store> Configuration > Catalog > Inventory and set yes Display Out of Stock Products option

But I have to hide certain out of stock products manually. So Default Magento 2 provides functionality where hide some products at item level configuration ? If yes, how ? If any extension please let me know. I am tired but I could not find the solution for this.

I am using community magento 2.4.0

3
  • Can you disable them? Mar 23, 2021 at 2:14
  • @AdarshKhatri I do not want to disable them Mar 23, 2021 at 2:48
  • Magento default doesn't have this feature, you need to write code for it
    – Jimmy
    Mar 23, 2021 at 4:05

3 Answers 3

1

I know its very late to respond now, but anyone else looking for solution, one can set visibility to not visible individually or search only if want them to keep visible in search. that will hide product from front end.

2
  • it won't work with configurable's child item Jul 26, 2021 at 13:45
  • if you are not displaying configurable child products separately, then you can disable them, so technically you can use mixed solution, for simple products set visibility and for configurable child product set status to disabled (if not shown separately) Jul 26, 2021 at 13:58
0

I have created one custom attribute show_item and filter custom attribute by override vendor\magento\module-catalog\Model\Layer\Category\CollectionFilter.php

-2

You can use this extension to solve your problem: https://marketplace.magento.com/mediarox-module-out-of-stock-last.html

2
  • 1
    I asked for hide certain out of stock products,but your extension shows out of stock products in last.It means it will be show all the out of stock products.Please correct your answer.I will be wait your answer Mar 24, 2021 at 13:36
  • This is not an answer and it is just adv for selling a not that much usable module!!
    – Korbin
    Apr 4, 2022 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.