Hi Nicolas,
Hmm, that's not the response I expected. I'm somehow trying to understand your statement, but it doesn't want to sink in. Why, in a branded world, is the brand less important than other product details (description, price, images, etc)? Why then offering the brand/manufacturer 'layer' and not make it a custom field? Why does selecting a brand (of all product details) cause the product to display, even though a 'higher priority' condition should result in it not showing? Why different rules for brand listings than for (other) product listings (after all, under brands it is also a product listing module showing what should typically be hidden)?
See, it's not about using unpublished categories "for a product that you never want to be listed on a products listing", as you're assuming. If I wanted to do this, the product would never get entered in the first place, or remain itself unpublished. (Oh well, following your argument, even an unpublished product should probably be listed under its brand, if it has one selected...
)
Instead, let's look at this from a practical angle, please, instead of philosophies and assumptions: Unpublished categories are required and indispensably necessary for temporary storage of products.
Proof? Here you go, and please correct me if I'm wrong:
In HikaMarket (HM), I let vendors add products, but want to approve them before they are getting published. Because, for obvious reasons, I need to allow a vendor unpublishing a product (but not publishing it), but the ACL in HM allows only both unpublishing and publishing, I already need a workaround for product categories, can not make the regular tree of published categories accessible for vendors, but have to 'route' them to a special unpublished category when they add a product - the unpublished category I call 'stand-by' for this reason. Thankfully, this can be configured easily in HM's backend. Still, 'approval' means moving the new product to the final, published category and making sure the product itself is published, too.
Approval is not a single click only (blame Jerome?
), now I also have to make up a workaround for brands?! I.e. use a custom field only for vendor frontend and admin backend, where vendor enters the brand, then I have to assign the 'real' brand again when approving = moving/publishing? Because HikaShop claims brand listings make only sense if all products are displayed, category unpublished or not
While the workaround via custom field is possible (and presently the only way out), of course, it causes an extra step in the process, promptly requires an extra paragraph in the client's manual (unnecessarily), obviously bears risks for errors/oversights (if nothing else, potentially leading to products not showing up in brand listings even if published), plus I can think of many more throats that your argument won't go down easily, if at all.
So... sorry, but not happy. Long story short, if my lines didn't convince you to come up with something benefitting the masses, what code do I change/amend/delete to hide products with brand not only in regular listings but also in brand listings under the condition that the product category is unpublished?
Again, both sorry and thanks...