Jump to content

disable products on no active main cat


Recommended Posts

Hi,

 

I may be looking the wrong places, but is it correct that it is NOT possible to make products unaccessible (eg show 404) if no active categories are attached to that product?

Lets say we have some products for easter, I simply deactive the easter category, and the products will then no longer be possible to access. As it is default the product URL still exists, so from eg. Google its possible to access the product and purchase it.

 

What im looking for could be as simple as "IF default category on product is disabled, then show 404 when accessing the product url" - or maybe more simple change the template to hide/remove the buy button.

 

How to fix that? 

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