Jump to content

How to disable category using CRON


sasorobic

Recommended Posts

Hello.

 

We have a module that imports data from our supplier every hour...

 

But there are a couple of categories what we dont want to be enabled. they can exist but it must be disabled and all products in that categories too...

 

any way to acomplish that using cron?

 

thanks

 

 

Link to comment
Share on other sites

You could just make a tiny php file and call that from your cron.

 

After the login data it could contain mysql commands like "update ps_category set active=0 where id_category in ("11","23")"

I suppose you also will want to add commands to disable the products.

Link to comment
Share on other sites

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...