Remove/Hide product grid in collection pages with no products

Solved

Remove/Hide product grid in collection pages with no products

Tinagerh
Tourist
4 1 0

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 doesn`t 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. I`m using Craft theme. 

 

Tinagerh_0-1740649919574.png

 

Thanks in advance!

Accepted Solution (1)
Tinagerh
Tourist
4 1 0

This is an accepted solution.

Hi again, 

 

I found a solution by using templates. Thanks again!

View solution in original post

Replies 5 (5)

DaisyVo
Shopify Partner
4430 491 584

Hi @Tinagerh 

 

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

 

https://prnt.sc/mkGzijuIc1N-

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Tinagerh
Tourist
4 1 0

Thanks for your answer. 

 

I don`t want to delete these pages, but somehow remove the product grid (inside the red circle in attached image) in those collection pages that doesn`t have any linked products. I someone could help me to see if some code could do this for me. 

DaisyVo
Shopify Partner
4430 491 584

Hi @Tinagerh 

 

OK, I will try, please send me your website link
and password if you have it

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Tinagerh
Tourist
4 1 0

Hi again,

 

I appreciate your help. It`s kaffecalma.com and euquow

Tinagerh
Tourist
4 1 0

This is an accepted solution.

Hi again, 

 

I found a solution by using templates. Thanks again!