cancel
Showing results for 
Search instead for 
Did you mean: 

Product Visibility Rules

Former Member
0 Kudos

Hi all, I'm looking at the product visibility rules here: https://wiki.hybris.com/display/release5/Catalog+Guide#CatalogGuide-VisibilityofProductsforCustomers and it says that if the category is not visible to a group (e.g. customergroup) then the products in that category should not be visible.

I've tried this by having a product in a category that is not visible to customergroup and whilst I get an error trying to access the category through the front end I can still search for the products and see results and then see the product details page. The breadcrumb on the PDP just says home > product name but I've confirmed through hMC that the product is actually only in the category that is no longer visible.

Am I misunderstanding the rules or is it a bug in hybris? I know there's a similar question out there about product visibility rules but I'm not sure why this doesn't work.

Thanks,

Matt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Matt,

You also need to restrict SOLR to not return the results, essentially you have to replicate the search restriction in the Solr Query. The following link can hopefully help you, which I think you may have seen.

https://answers.sap.com/questions/12748355/how-to-restrict-product-listing-for-customers.html

Thanks, Craig.

Former Member
0 Kudos

Thanks Craig. Even though SOLR has got it's search results from the index, is there no further interaction from a hybris point of view to validate that list of products then? If not then I wonder when those visibility rules mentioned in the wiki are valid?

Thanks though,

Matt

Former Member
0 Kudos

It's a problem which has occurred through the growth of the platform unfortunately and needing this type of search functionality. The Category Page is fine in it's entirety but I agree there could be a section on working with SOLR. It does force you to think about other requirements such as customising SOLR which isn't a bad thing.

You can find information on customising SOLR here:

https://wiki.hybris.com/display/release5/SolrFacetSearch+Usage#SolrFacetSearchUsage-AddingSearchCond...

Hope this helps, Craig.

Former Member
0 Kudos

The page is talking about product visibility when viewing a product directly from hybris however it is important to know that by default we export the products to Solr using a customer user so the same search restrictions apply at export time which means the visibility should be more or less the same even when getting the products from Solr.

You would need to reindex the entire product catalog if you wanted to change the category visibility.

Answers (0)