1

I have a product that I want to hide on the front-end but if you have the direct URL I want the product to be accessible and have stock.

What is the best way to achieve this?

I was thinking of wrapping an IF statement around the product content in category grid etc and checking if the product has a custom attribute that says hidden. Is this a crazy way of doing this?

2 Answers 2

2

You can remove the product from all categories and make the visibility field Catalog. This will remove it from search results also.
And you will still have access to it if you have the correct url.

0

I would just not include that product in the category. If you don't include it in your category then that product will not appear there.

If you want to do it in the code, then your way to do it seems the best option.

2
  • Thanks for the reply. The product will still show when a user searches for it. No worries will do what I've mentioned. :) Jun 27, 2016 at 20:40
  • @MikeTimTurner to exclude it from search you can select Catalog in visibility attribute, rather than Catalog and search. Jun 27, 2016 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.