2

Is there a possibility to show "out of stock" product for given period of time (fe. 3 month) and then not showing it anymore ?

2
  • for all section of products???or some products?
    – Amit Bera
    Aug 18, 2014 at 12:35
  • For all products @AmitBera
    – mazikwyry
    Aug 18, 2014 at 22:06

2 Answers 2

2

You can create a new module, that

  1. Adds a new table with product id and it's out of stock becoming date

  2. Fills this table when a product becomes out of stock. Say, you can handle new-order event.

  3. Run a cron job one a day and disable old out of stock products.

1
  • Thanks, but wanted to avoid cronjobs and use build-in solutions. But I'm afraid it's not possible. You're right need to do a workaround.
    – mazikwyry
    Aug 18, 2014 at 22:08
0

Hi You can enable and disable out of stock in frontend from admin. Goto admin>System>Configuration>Catalog>Inventory>Display Out of Stock Products make yes for this Period and after that indexing all index from Index management(admin>System>Index Management).

After expired period again check Display Out of Stock Products make No and indexing again

1
  • this doesn't work for options in configurable products in magento2.
    – PathToLife
    Jan 15, 2019 at 21:53

Your Answer

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

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