Developer forum

Forum » Ecommerce - Standard features » How to hide products in list but show them in related group

How to hide products in list but show them in related group

Ivan Marijanović
Ivan Marijanović
Reply

Hi

We have a client who has a group of products that cannot be sold by itself. So we put them in group we are not rendering in menus and we are showing htis products as related products that can be only added to cart together with main product (for example if custome is buying 10 sqm of floor he can select coating to apply to the main products so this coating is added to cart in same qty as main product). 

Now we have issue that we do not redner group whith this products but when user clicks on all products they are listed and they also show in search results. How to hide them from this lists but show them only in this related products list?

Thank you in advance?

Ivan


Replies

 
Nicolai Pedersen
Reply

You can create a custom product field "hide in product lists" and enable that on products you do not want to show in search results.

On the query that is publishing your products, you can add an expression that filter products out with this checkbox set.

 
Ivan Marijanović
Ivan Marijanović
Reply

Hi Nicolai

 

But wouldn't then those product be hidden also from realted products feed that we need?

 

Ivan

 
Nicolai Pedersen
Reply

Should not. Depends on how you set up the related products. Using regular related products loop it will not be hidden.

If you use the Rapido async loaded list, you might have to adjust the related query. But it should work as is.

 

You must be logged in to post in the forum