Is there a way to Hide a Commerce Category on the ...
# suitecommerce
w
Is there a way to Hide a Commerce Category on the Web Site but Make it Accessible Through its Descriptive URL? I've found a help topic about this, but it is directed at site builder, attempting to follow similar steps with SCA Commerce Categories does not appear to work in the same manner
s
In what way will it be hidden? No link to it in the navigation?
w
correct
I've attempted to make a hidden parent category with a sub category that is not hidden, and populated the sub category with items
still get a "page not found" when going to /hiddensub/shownsub
s
OK, I don't think there's a specific mechanism for that. You'll likely either need to manually create your own nav bar, write some JS to hide it, or use something like personalised catalog views
w
Thanks for your quick response. I will look into personalized catalog views
s
OK. FYI, PCV is SCA 19.2+ or SC only
w
Right. I'm on 2018.2 currently for this project. I don't know if you have the ability to submit feature request. But a way to ‘hide’ the category in the website and it still be accessible through a link (sent in an email). would be a great feature if so.
s
I think you could easy modify
Categories.makeNavigationTab()
to just remove a list of categories you don't want shown in the nav bar
r
We actually did a customisation to achieve this. Basically added a custom field on the commerce categories then updated the code to check if the value was set and show it in the nav. So on our site we have a top level cat called Grey Flooring https://www.ukflooringdirect.co.uk/grey-flooring But it does not show in the main nav