Is there a way forcibly exclude items (by an attribute value) from the list.phtml view in Magento?
We have products that should be cartable, viewable individually but should not be found via searching or navigating to their category.
Is there a way forcibly exclude items (by an attribute value) from the list.phtml
Share
We ended up figuring this out without creating a new module. We created an override to list.php in /app/code/local/mage/catalog/block/product and included the following lines of code:
Just after:
And before:
We also added this same logic to new.php for a new products page so it would filter out products that shouldn’t be visible.
Brad