Jump to content

Hide out of stock products module need it.


Recommended Posts

2 minutes ago, StrefaBiznesu said:

Looks fine. But I don't see any cron job. If someone but any product I want that this product be hidden, not disable.

Is this module hide it automatically?

Not see it on demo.

The cron job it's not necessary, the products are hidden automatically.

Please write us at https://www.idnovate.com/en/contact-us  and we configure an example for you 😉

 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
On 6/30/2022 at 2:42 PM, StrefaBiznesu said:

Hi.

I'm searching for a module that will automatically hide out of stock products. Without disable it.

So I can still see it with a link. But it will not appear on store

Would be great if it have cron option or timer.

Hi.

I know a hook called filterProductSearch.

This is what you should do:

1. Create a module and register this hook.

2. Write a method to loop over products.

3. Write another method which checks a single product and based on any condition returns true or false.

Link to comment
Share on other sites

17 hours ago, stifler97 said:

Hi.

I know a hook called filterProductSearch.

This is what you should do:

1. Create a module and register this hook.

2. Write a method to loop over products.

3. Write another method which checks a single product and based on any condition returns true or false.

The problem with this hook is that many modules don't use it.

Link to comment
Share on other sites

3 hours ago, idnovate.com said:

The problem with this hook is that many modules don't use it.

Yes actually I understand what you mean. Now I am trying to override the listing controllers and I think that is the key to do so.

At first I had problems with overriding and found a solution in this post

Now I am looking for a way to filter search result in this post

Edited by stifler97 (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...