Is there a way in disabling a product by checking its custom attribute?
example scenario: 'date_expiration' if date_expiration < today the product status will be disabled.
I have tried creating a custom front_end template for Magento_Catalog, that checks attribute date_expiration when expiration met it will redirect to homepage. I know this is not good solution because it will appear on catalog list.