I have two collection pages that only contains information about the different product groups. In the bottom of the page, I have a button that says “products” that leads the customers to the collection pages with the products.
But, in these two collection pages with no products, it says “no products found”, of course since the collection doesnt have any products linked to it; So, what I basically want is to hide/ or remove the product grid from these two pages but keep it if there is >0 products in the collection. Im using Craft theme.
If you don’t want to delete these collection pages
You can use the redirect feature
So that when customers click on it, it will be redirected to another page
I dont want to delete these pages, but somehow remove the product grid (inside the red circle in attached image) in those collection pages that doesnt have any linked products. I someone could help me to see if some code could do this for me.